[Bug 20976] Define Node.baseURI properly

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

--- Comment #27 from Adam Klein <adamk@chromium.org> ---
(In reply to Elliott Sprehn from comment #26)
> (In reply to Adam Klein from comment #23)
> > Reviving this thread as I've been working on implementing this in Blink.
> > 
> > (In reply to Elliott Sprehn from comment #20)
> > > 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"
> > 
> > I'm not sure this example works correctly. [...]
> 
> Yeah I fumbled my example, you need to appendChild() first before assigning
> the src.

Seems like a bit of a footgun. And note that

root.innerHTML = '<img src="a.png">'

doesn't even give you the option of doing the right thing (unless we somehow
change how ShadowRoot.innerHTML works).

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

Received on Thursday, 16 January 2014 21:48:48 UTC