You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is the latter of the following a "mutating the declarations"
element.style.width = "10px"; element.style.width = "10px"; ?
The reason why this must be defined is to decide what kind of MutationRecords should be created when style attribute is set.
Given that element.setAttribute("style", "width: 10px;"); element.setAttribute("style", "width: 10px;");
creates two MutationRecords, I think for consistency also element.style.width = "10px"; element.style.width = "10px"; should. And that is the behavior in Gecko and Edge (but not in blink)
The text was updated successfully, but these errors were encountered:
Is the latter of the following a "mutating the declarations"
element.style.width = "10px"; element.style.width = "10px"; ?
The reason why this must be defined is to decide what kind of MutationRecords should be created when style attribute is set.
Given that element.setAttribute("style", "width: 10px;"); element.setAttribute("style", "width: 10px;");
creates two MutationRecords, I think for consistency also element.style.width = "10px"; element.style.width = "10px"; should. And that is the behavior in Gecko and Edge (but not in blink)
The text was updated successfully, but these errors were encountered: