Bug 261654
| Summary: | Re-run <meta name=color-scheme> processing when name attribute or content attribute changes | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | sideshowbarker <mike> |
| Component: | DOM | Assignee: | sideshowbarker <mike> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | akeerthi, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
sideshowbarker
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.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
sideshowbarker
Pull request: https://github.com/WebKit/WebKit/pull/17845
Radar WebKit Bug Importer
<rdar://problem/115958450>
EWS
Committed 270092@main (3afefcc5f934): <https://commits.webkit.org/270092@main>
Reviewed commits have been landed. Closing PR #17845 and removing active labels.