[Bug 19870] [Imports]: Ensure import resources are loaded relative to location of import definition

https://www.w3.org/Bugs/Public/show_bug.cgi?id=19870

--- Comment #20 from Adam Klein <adamk@chromium.org> ---
What about hooking adoptNode? There's already a step in the DOM spec for
adopting a Node that says to run the appropriate "base URL change steps" (see
https://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#concept-node-adopt).
If there were a way to detect that the current ownerDocument is an Import
document, it seems like this could be an ideal time to do "something". A
strawman for "something" being:

1. Get the fully-resolved URL for whatever attribute is in question (src, href)
2. Make it relative to the new document's base URL, if possible
3. Set the attribute to the value derived in the previous step

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Thursday, 22 August 2013 21:39:00 UTC