Files app: Narrow down queries to <body>
Follow up to CL:1869562 With native HTML Imports removed, the polyfill works by adding the imported content to the <head>, with this document.getElementById() can return elements added in the <head> which isn't intended to be returned. For example in the CL above, a "#delete" <command> was conflicting with a SVG icon <g id="delete">. When native HTML imports were used the imported content would be added to a shadow DOM avoiding this conflict. No change in behaviour, this is a preventive change, so it's covered by current suite of tests. Change-Id: Icfbaf9d690a63059de5d22f28c4f7b81919ff640 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1904554Reviewed-by:Alex Danilo <adanilo@chromium.org> Commit-Queue: Luciano Pacheco <lucmult@chromium.org> Auto-Submit: Luciano Pacheco <lucmult@chromium.org> Cr-Commit-Position: refs/heads/master@{#713732}
Showing
Please register or sign in to comment