Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 13d238d72b7e3987830641bdc7f85ade40159ce1
      
https://github.com/WebKit/WebKit/commit/13d238d72b7e3987830641bdc7f85ade40159ce1
  Author: Anne van Kesteren <[email protected]>
  Date:   2025-01-08 (Wed, 08 Jan 2025)

  Changed paths:
    A 
LayoutTests/imported/w3c/web-platform-tests/html/semantics/document-metadata/the-link-element/link-rel-attribute-tokenization-expected.txt
    A 
LayoutTests/imported/w3c/web-platform-tests/html/semantics/document-metadata/the-link-element/link-rel-attribute-tokenization.html
    M 
LayoutTests/imported/w3c/web-platform-tests/html/semantics/document-metadata/the-link-element/resources/w3c-import.log
    M 
LayoutTests/imported/w3c/web-platform-tests/html/semantics/document-metadata/the-link-element/w3c-import.log
    M Source/WebCore/html/LinkRelAttribute.cpp

  Log Message:
  -----------
  LinkRelAttribute doesn't tokenize correctly
https://bugs.webkit.org/show_bug.cgi?id=285508

Reviewed by Ryosuke Niwa.

Make LinkRelAttribute use SortedArrayMap as a backing store for the
link types so we can reuse the logic and thereby make the overall setup
less error prone and fix several bugs in the process.

Also correct tokenizing by recognizing all ASCII whitespace instead of
just newlines and spaces.

* 
LayoutTests/imported/w3c/web-platform-tests/html/semantics/document-metadata/the-link-element/link-rel-attribute-tokenization-expected.txt:
 Added.
* 
LayoutTests/imported/w3c/web-platform-tests/html/semantics/document-metadata/the-link-element/link-rel-attribute-tokenization.html:
 Added.
* 
LayoutTests/imported/w3c/web-platform-tests/html/semantics/document-metadata/the-link-element/resources/w3c-import.log:
* 
LayoutTests/imported/w3c/web-platform-tests/html/semantics/document-metadata/the-link-element/w3c-import.log:
* Source/WebCore/html/LinkRelAttribute.cpp:
(WebCore::linkTypes):
(WebCore::findLinkType):
(WebCore::LinkRelAttribute::LinkRelAttribute):
(WebCore::LinkRelAttribute::isSupported):

Canonical link: https://commits.webkit.org/288639@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to