[Webkit-unassigned] [Bug 210111] New: documentFragment.getElementById() should not work for empty-string IDs

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Apr 7 07:28:02 PDT 2020


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

            Bug ID: 210111
           Summary: documentFragment.getElementById() should not work for
                    empty-string IDs
           Product: WebKit
           Version: Safari 13
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: DOM
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: d at domenic.me

(This is tested using the bots on wpt.fyi; I do not have a Mac available in these working from home times.)

URL: http://wpt.live/dom/nodes/DocumentFragment-getElementById.html

Per spec, documentFragment.getElementById("") should return null, even if there is a <div id=""></div> inside the DocumentFragment. Safari passes the same test for document.getElementById(""): http://wpt.live/dom/nodes/Document-getElementById.html .

Other browsers: Chrome fails, Firefox passes

Spec reference: https://dom.spec.whatwg.org/#concept-id ("value is null or the empty string").

-- 
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/20200407/8673980f/attachment-0001.htm>


More information about the webkit-unassigned mailing list