Out of order streaming with <template for>
Categories
(Core :: DOM: HTML Parser, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox160 | --- | fixed |
People
(Reporter: noam.j.rosenthal, Assigned: helmut)
References
(Blocks 2 open bugs)
Details
(Keywords: parity-chrome)
Attachments
(2 external files, 1 obsolete file)
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/150.0.0.0 Safari/537.36
Steps to reproduce:
See https://github.com/whatwg/html/pull/11818 and https://github.com/mozilla/standards-positions/issues/1369
Comment 1•4 months ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::DOM: Security' component, but is not confident enough to move the bug to that component.
Updated•2 months ago
|
Updated•2 months ago
|
Updated•1 month ago
|
Updated•1 month ago
|
| Assignee | ||
Comment 2•1 month ago
|
||
Add a dom.template_for.enabled pref (default off) implementing the
declarative partial updates proposal:
- Parse pref-gated HTML <?...> bogus comments as ProcessingInstruction
nodes so <?marker>, <?start> and <?end> patch targets exist in the
DOM, and serialize HTML processing instructions with "?>". - Give HTMLTemplateElement an htmlFor reflection of the for attribute
plus marker lookup and patching state. A parser-inserted
<template for> removes the old content between the markers, redirects
parser output into the target before the end marker, and drops the
markers when the template element is popped. - Suppress patching when the parsed fragment will be sanitized after
parsing, so setHTML and setHTMLUnsafe with a sanitizer cannot patch
content the sanitizer would have removed. When the sanitizer runs
while parsing, it already sees tokens before patching. - Update the template-for WPT metadata: enable the prefs, drop the
feature-off expectations, and document the remaining expected
failures: missing stream/setter APIs, the pagehide timing spec gap
(whatwg/html#13036), and three upstream test issues.
| Assignee | ||
Comment 3•1 month ago
|
||
Working on this - implementation is up for review as https://phabricator.services.mozilla.com/D331109, behind the dom.template_for.enabled pref (off by default). The HTML parser changes go through the upstream htmlparser repo first: https://github.com/validator/htmlparser/pull/130.
Updated•1 month ago
|
| Assignee | ||
Comment 4•1 month ago
|
||
Add the dom.template_for.enabled pref (default off, on in fuzzing
builds) and reflect the template "for" content attribute as
HTMLTemplateElement.htmlFor, gated on the pref. Import the upstream
reflect-html-for WPT.
This is the IDL surface for out-of-order streaming with <template for>;
the parser and patching land on top.
Updated•1 month ago
|
Updated•1 month ago
|
Updated•1 month ago
|
Updated•1 month ago
|
Updated•1 month ago
|
| Assignee | ||
Comment 5•1 month ago
|
||
Updated•1 month ago
|
Updated•1 month ago
|
Comment 7•1 month ago
|
||
| bugherder | ||
Comment 8•1 month ago
|
||
Bug was resolved, but the web-feature template-for (definition file) is not yet marked as supported in Firefox.
Feature bugs are usually automatically closed once the corresponding web-features are marked as supported; this typically happens after the feature reaches release.
Updated•1 month ago
|
Comment 9•1 month ago
|
||
I've moved the web-feature metadata to a meta bug for the bot to track, so we can re-close this one.
Updated•1 month ago
|
Updated•11 hours ago
|
Description
•