DescriptionsetAttributeNode() does not properly normalize case.
setAttributeNode() verifies for existing attributes in a case sensitive manner.
Thus, it would add another attribute if specified in a case different from the
existing one. Instead, like setAttribute(), it too should modify the existing
attribute's value.
Added a new method: matchesIgnoringCaseForLocalName() which should be called
only when trying to do a localname comparison ignoring case.
Layout testcase added for verifying the behavior for both html as well as xhtml
documents.
WebKit changeset: http://trac.webkit.org/changeset/154054
R=eseidel@chromium.org, ojan@chromium.org, esprehn@chromium.org
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=156179
Patch Set 1 #
Total comments: 2
Patch Set 2 : submitting patch with small name changes. #
Messages
Total messages: 9 (0 generated)
|