3 ms·
One of the unexpected use of shadow DOMs for me was a document generated for image resource URLs [1], because the HTML standard apparently specifies the exact D
by lifthrasiir 3y ago
One of the unexpected use of shadow DOMs for me was a document generated for image resource URLs [1], because the HTML standard apparently specifies the exact DOM structure of the generated document except for the `<head>` element [2].
[1] https://github.com/chromium/chromium/blob/f02ca734bf0/third_party/blink/renderer/core/html/image_document.cc#L279-L284 https://github.com/chromium/chromium/blob/f02ca734bf0/third_...
[2] https://html.spec.whatwg.org/multipage/document-lifecycle.html#read-media https://html.spec.whatwg.org/multipage/document-lifecycle.ht...
- unlog 3y agoThe first link is broken, can you please fix it, thanks!
- lifthrasiir 3y agoOh, thank you for pointing that out! I shortened the commit hash to 7 letters (as I often did) but that was not enough to disambiguate them, a new link should work.