[Bug 20976] Define Node.baseURI properly

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

--- Comment #20 from Elliott Sprehn <esprehn@gmail.com> ---
I talked with folks over here and adding baseURI to ShadowRoot is enough for
all the current use cases except the one Erik mentioned. Since we can always
add the attribute version of baseURI in the future on top of ShadowRoot's
support I think we should go that route. Walking up the tree of containing
ShadowRoots can also be made faster than walking up the tree of parent
Elements.

I also think we should avoid speccing this to be dynamic. In practice browsers
are not very dynamic with resource urls already. Instead, at the point where a
resource is fetched, we should resolve the URL against the current baseURI of
the scope (ShadowRoot or Document).

ex.

root.baseURI = "http://foo/"
img1.src = "a.png";
root.appendChild(img1);
root.baseURI = "http://bar/"
img2.src = "b.png";
root.appendChild(img2);

img1.src == "http://foo/a.png"
img2.src == "http://bar/b.png"

How does that sound Anne/Boris?

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

Received on Monday, 11 November 2013 21:16:18 UTC