DescriptionCorrectly handle accessing a replaced Attr object's attribute value.
If element.setAttributeNode(attr) is performed on an "element" with
an attribute that matches "attr.name", that attribute's value is
updated and attr is attached to "element".
Later accesses of "attr.value" must continue to resolve to "element"'s
underlying attribute, matching (local) names following the case
sensitivity of the element.
A normalized local name was previously assumed for the attribute,
leading to crashing conditions on both setting and getting "attr.value".
Address by having Attr record the local name of the element attribute
it is attached to and use that when looking up the attribute.
R=adamk@chromium.org
BUG=376718
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=175556
Patch Set 1 #
Total comments: 2
Patch Set 2 : Have Attr track local name of attached attribute, if needed. #
Total comments: 2
Patch Set 3 : Add setAttributeNode() FIXME #
Messages
Total messages: 13 (0 generated)
|