[Webkit-unassigned] [Bug 279167] New: [render-blocking] Render blocking for <link> should not match elements that are on a 'stack of open elements' for the parser

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Sep 4 20:46:09 PDT 2024


https://bugs.webkit.org/show_bug.cgi?id=279167

            Bug ID: 279167
           Summary: [render-blocking] Render blocking for <link> should
                    not match elements that are on a 'stack of open
                    elements' for the parser
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: DOM
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: mattwoodrow at apple.com

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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240905/e0ff7752/attachment.htm>


More information about the webkit-unassigned mailing list