[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 #22 from Morrita Hajime <morrita@google.com> ---
In my understanding, there were kind of consensus that 
<base> will work except having an extra element is ugly.

I start thinking that we can just add the baseURL to ShadowRoot.
It could be able to set either by <base> in a shadow tree, an object property
or 
a constructor parameter.

My preference is to add a parameter to createShadowRoot() so that it can be 
immutable.

---

> var img = new Image();
> img.src = 'foo.png'; // load actually started here.
> appendChild(img); // now the url is different, we start loading a different thing.

I think developer can avoid reloading just by using the absolute URL or
let documents to share same base URL.
Thanks for the inspector, it won't be hard to diagnose the possible problem.

Also, off-tree loading is done only by <img> but not <link> or <script>.
I don't think this is a good case for taste-checking.

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

Received on Wednesday, 28 August 2013 10:01:32 UTC