Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I was wondering this as well - would be interested in the answer.

Years since I've really dabbled in WYSIWYG editing JS, but the best I can think of us to use a reset CSS file namespaced for the `div` (or whatever container) in question.



Yup that's more or less the only way I have seen in the wild.

The Scoped Polyfill https://github.com/PM5544/scoped-polyfill does just this and gets you most of the way there.

> It does so by prepending the styleRules selectorText with id's




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: