NEW 279167
[render-blocking] Render blocking for <link> should not match elements that are on a 'stack of open elements' for the parser
https://bugs.webkit.org/show_bug.cgi?id=279167
Summary [render-blocking] Render blocking for <link> should not match elements that a...
Matt Woodrow
Reported 2024-09-04 20:46:09 PDT
https://html.spec.whatwg.org/multipage/links.html#process-internal-resource-link Elements that are still having their children parsed should not match <link rel=expect>. The spec also expects us to reprocess all <link rel=expect> elements each time we pop an element off the stack, which seems slow. The matching of expect elements also depends on the document ready state. It looks like https://html.spec.whatwg.org/multipage/parsing.html#the-end:update-the-current-document-readiness expect the ready state to change before the final elements are popped, so that the reprocessing on pop would clear all remaining links. Our code appears to have already popped all elements before changing the ready state, so this won't work as-is.
Attachments
Radar WebKit Bug Importer
Comment 1 2024-09-11 20:47:11 PDT
Note You need to log in before you can comment on or make changes to this bug.