Re: [w3c/webcomponents] Should <link rel="stylesheet"> work inside shadow DOM? (#530)

Hmm, making <link> to work when not connected? that sounds very surprising.
Since <link> has had the requirement for the element to be in document before loading, that is what I'd expect for shadow DOM too (that element is connected to the document). That would give some consistency.

Would be super weird if creating a random (not in document) DOM subtree and link in it, wouldn't load the stylesheet, but then using that same subtree, on some element in it do el.shadowRoot.innerHTML = "<link rel=stylesheet href=..>"; would actually load the stylesheet.

So, yes, we need connected-ness here.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/530#issuecomment-233261928

Received on Monday, 18 July 2016 08:08:17 UTC