Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: 3afefcc5f9348463406812ccd2ffab3dae4749a4 https://github.com/WebKit/WebKit/commit/3afefcc5f9348463406812ccd2ffab3dae4749a4 Author: Michael[tm] Smith <m...@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@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 _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes