Join GitHub today
Fix: Use correct base URL in getElementByUrl #2148
Pull request checklist
Make sure you:
For non-trivial changes, please make sure you also:
Short description of the change(s)
Use the base URL of the document to resolve relative URLs for finding elements, not the URL that was requested.
Fix unhandled errors cause by trying to resolve relative URLs against data-uris.