Bug 261654 - Re-run <meta name=color-scheme> processing when name attribute or content attribute changes
Summary: Re-run <meta name=color-scheme> processing when name attribute or content att...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: sideshowbarker
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-09-17 08:08 PDT by sideshowbarker
Modified: 2023-11-01 16:35 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sideshowbarker 2023-09-17 08:08:45 PDT
At https://html.spec.whatwg.org/multipage/semantics.html#standard-metadata-names:attr-meta-name-15 the HTML spec requires 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/multipage/semantics.html#standard-metadata-names:page's-supported-color-schemes-2

However, WebKit currently doesn’t conform to that requirement, which causes two of the tests at https://wpt.fyi/results/html/semantics/document-metadata/the-meta-element/color-scheme/meta-color-scheme-attribute-changes.html to fail in Safari.
Comment 1 sideshowbarker 2023-09-17 08:10:08 PDT
Pull request: https://github.com/WebKit/WebKit/pull/17845
Comment 2 Radar WebKit Bug Importer 2023-09-24 08:09:13 PDT
<rdar://problem/115958450>
Comment 3 EWS 2023-11-01 16:35:09 PDT
Committed 270092@main (3afefcc5f934): <https://commits.webkit.org/270092@main>

Reviewed commits have been landed. Closing PR #17845 and removing active labels.