Update the <link>'s link status
authorbenjamin@webkit.org <benjamin@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 20 Oct 2014 07:31:09 +0000 (07:31 +0000)
committerbenjamin@webkit.org <benjamin@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 20 Oct 2014 07:31:09 +0000 (07:31 +0000)
commit0e45e453299350dd0652f6759c8088fc4acb98d9
treed1c34ddf15e128a1d54234ac9640ed41662c66f2
parentffd51aec2e39d94020dfb3706ac3e99085749170
Update the <link>'s link status
https://bugs.webkit.org/show_bug.cgi?id=137861

Reviewed by Chris Dumez.

Source/WebCore:

In the latest HTML spec, <link> has the link status
if it has a 'href' attribute, exactly like <a> and <area>:
    https://html.spec.whatwg.org/multipage/scripting.html#selector-link

This patch updates WebKit accordingly.

Tests: fast/css/link-basics.html
       fast/selectors/link-basics-xhtml.xhtml
       fast/selectors/link-basics.html
       fast/selectors/webkit-any-link-basics.html

* html/HTMLLinkElement.cpp:
(WebCore::HTMLLinkElement::parseAttribute):

LayoutTests:

* fast/css/link-basics-expected.html: Added.
* fast/css/link-basics.html: Added.
* fast/selectors/link-basics-expected.txt: Added.
* fast/selectors/link-basics-xhtml-expected.txt: Added.
* fast/selectors/link-basics-xhtml.xhtml: Added.
* fast/selectors/link-basics.html: Added.
* fast/selectors/resources/html-link-type-tests.js: Added.
(testHTMLElement):
(testHTMLTagsForLink):
* fast/selectors/webkit-any-link-basics-expected.txt: Added.
* fast/selectors/webkit-any-link-basics.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@174878 268f45cc-cd09-0410-ab3c-d52691b4dbfc
12 files changed:
LayoutTests/ChangeLog
LayoutTests/fast/css/link-basics-expected.html [new file with mode: 0644]
LayoutTests/fast/css/link-basics.html [new file with mode: 0644]
LayoutTests/fast/selectors/link-basics-expected.txt [new file with mode: 0644]
LayoutTests/fast/selectors/link-basics-xhtml-expected.txt [new file with mode: 0644]
LayoutTests/fast/selectors/link-basics-xhtml.xhtml [new file with mode: 0644]
LayoutTests/fast/selectors/link-basics.html [new file with mode: 0644]
LayoutTests/fast/selectors/resources/html-link-type-tests.js [new file with mode: 0644]
LayoutTests/fast/selectors/webkit-any-link-basics-expected.txt [new file with mode: 0644]
LayoutTests/fast/selectors/webkit-any-link-basics.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/html/HTMLLinkElement.cpp