Followup (r234683): Element::getAttribute() should return the first non-null attribut...
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 13 Aug 2018 16:39:14 +0000 (16:39 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 13 Aug 2018 16:39:14 +0000 (16:39 +0000)
commit1e20a2506adff85912422c4da277d81f78104f2b
tree244cd8dd5c02df664c23c4d3925fdf28a432a682
parentbc0bfcdb2291fa5de97f71aab3adcce19461022d
Followup (r234683): Element::getAttribute() should return the first non-null attribute value
https://bugs.webkit.org/show_bug.cgi?id=188419

Patch by Said Abou-Hallawa <sabouhallawa@apple.com> on 2018-08-13
Reviewed by Darin Adler.

Source/WebCore:

Element::getAttribute() should return the first non-null attribute value
since an empty string is a legitimate attribute value.

Test: svg/custom/href-svg-namespace-empty.html

* dom/Element.h:
(WebCore::Element::getAttribute const):

LayoutTests:

* svg/custom/href-svg-namespace-empty-expected.txt: Added.
* svg/custom/href-svg-namespace-empty.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@234803 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/svg/custom/href-svg-namespace-empty-expected.txt [new file with mode: 0644]
LayoutTests/svg/custom/href-svg-namespace-empty.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/dom/Element.h