(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").
Created attachment 395702 [details] Patch
Comment on attachment 395702 [details] Patch r=me
Committed r259651: <https://trac.webkit.org/changeset/259651> All reviewed patches have been landed. Closing bug and clearing flags on attachment 395702 [details].
<rdar://problem/61402774>