thomaspark / scoper

A polyfill for scoped HTML styles elements

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Disable wrapping body elements

ridgeworks opened this issue · comments

scoper.js attempts to wrap elements where the scoped style element is a direct descendant, which effectively eliminates the applicability of the style content. I think it's fairly safe to just leave these style elements as is since they apply to the whole body.

I know this is an unusual case with an obvious manual workaround, but I'm auto generating the html and I don't always know where the scoped styles are going to be placed in the document.

Thanks for the suggestion. Wrapping body with another element is definitely not desired, and leaving style as-is for this case is a good solution.

Great. And thanks for a very useful polyfill.

On Mar 15, 2016, at 8:05 PM, Thomas Park notifications@github.com wrote:

Thanks for the suggestion. Wrapping body with another element is definitely not desired, and leaving style as-is for this case is a good solution.


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub #3 (comment)