Web Inspector: Second call to setAttributeNS creates non-prefixed attribute
authordrousso@apple.com <drousso@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 31 Jul 2019 08:53:39 +0000 (08:53 +0000)
committerdrousso@apple.com <drousso@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 31 Jul 2019 08:53:39 +0000 (08:53 +0000)
commit3717f58dc3eb28ace7016b8b22df88d2712a0d6b
tree948524573d7bcd9382fb53d210f8701ded8764ce
parent76c1f2301c907bd6329b18cb68edbe2b8fcc6d71
Web Inspector: Second call to setAttributeNS creates non-prefixed attribute
https://bugs.webkit.org/show_bug.cgi?id=200230
<rdar://problem/53712672>

Reviewed by Joseph Pecoraro.

Source/WebCore:

Original patch by Chris Dumez <cdumez@apple.com>.

Test: inspector/dom/attributeModified.html

* dom/Element.cpp:
(WebCore::Element::didAddAttribute):
(WebCore::Element::didModifyAttribute):
(WebCore::Element::didRemoveAttribute):
Use the fully qualified name, not just the local name, when notifying the inspector frontend
about changes to attributes.

LayoutTests:

* inspector/dom/attributeModified.html: Added.
* inspector/dom/attributeModified-expected.txt: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@248034 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/inspector/dom/attributeModified-expected.txt [new file with mode: 0644]
LayoutTests/inspector/dom/attributeModified.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/dom/Element.cpp