thomaspark / scoper

A polyfill for scoped HTML styles elements

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Scoper is ignoring closing </style> tag

Pjino opened this issue · comments

commented

I've been using scoper and it has been working well. But today I got a strange behavior that breaks the code. I have:

<a href="'+pagelink+'" target="_blank"> <img src="'+imgpath+'" class="extLinkImg"> <style scoped> .extLinkImg { width: 35px; height: 35px; margin:10px; } <\style> </a>

And I see in the console that what is being put in the head <style> is:

#scoper-2 .extLinkImg { width: 35px; height: 35px; margin:10px; } <style> </a>

It seems that scoper is not seeing the ending / in the closing tag...
I tried the same code inside a wrapping div and is the same. Do you have any clue why this is happening?

commented

Sorry! Stupid issue: wrong closing tag!!!! (automatic replacement attacking :)