[webkit-changes] [WebKit/WebKit] 3afefc: Re-run meta at name=color-scheme processing when name...

sideshowbarker noreply at github.com
Wed Nov 1 16:35:18 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 3afefcc5f9348463406812ccd2ffab3dae4749a4
      https://github.com/WebKit/WebKit/commit/3afefcc5f9348463406812ccd2ffab3dae4749a4
  Author: Michael[tm] Smith <mike at w3.org>
  Date:   2023-11-01 (Wed, 01 Nov 2023)

  Changed paths:
    M LayoutTests/imported/w3c/web-platform-tests/html/semantics/document-metadata/the-meta-element/color-scheme/meta-color-scheme-attribute-changes-expected.txt
    M Source/WebCore/html/HTMLMetaElement.cpp
    M Source/WebCore/html/HTMLMetaElement.h

  Log Message:
  -----------
  Re-run meta at name=color-scheme processing when name attribute or content attribute changes
https://bugs.webkit.org/show_bug.cgi?id=261654

Reviewed by Aditya Keerthi.

This change makes WebKit conform to the requirement at
https://html.spec.whatwg.org/#standard-metadata-names:attr-meta-name-15,
which states that:

> [if] existing meta elements have their name or content attributes
changed, user agents must re-run the above algorithm

…where “above algorithm” is the algorithm at
https://html.spec.whatwg.org/#standard-metadata-names:page's-supported-color-schemes-2

* LayoutTests/imported/w3c/web-platform-tests/html/semantics/document-metadata/the-meta-element/color-scheme/meta-color-scheme-attribute-changes-expected.txt:
* Source/WebCore/html/HTMLMetaElement.cpp:
(WebCore::isNameColorScheme):
(WebCore::HTMLMetaElement::attributeChanged):
(WebCore::HTMLMetaElement::removedFromAncestor):
(WebCore::HTMLMetaElement::process):
* Source/WebCore/html/HTMLMetaElement.h:

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




More information about the webkit-changes mailing list