News for hackers. Stuff that matters.
Re:Show HN: TopLevel – A New Way to JavaScript Your HTML by kristopolous on Thursday June 05, 2014 @01:57AM (#7850439)
The only other way I know to break the interpreter is if you force a bad character encoding of a different bit width.

I have yet to get it working as reliably across the same wide range of browsers.

As far as it disappearing; In order for that to happen one browser group will have to take the first step of intentionally breaking legacy webpages - it seems antithetical to the "render as much as possible" features arm-race nature of the browser world.

Then again, I've been wrong plenty of times before.

Re:Show HN: TopLevel – A New Way to JavaScript Your HTML by user24 on Thursday June 05, 2014 @03:05AM (#7850607)
Could a textarea tag work too?
Re:Show HN: TopLevel – A New Way to JavaScript Your HTML by kristopolous on Thursday June 05, 2014 @03:27AM (#7850659)
not if the document has an existing <textarea> (and thus </textarea>). <plaintext> is rather final ... see here for a demo I just threw together: http://getpostdelete.com/plaintext.html

The HTML interpreter packs up its bags and goes home - you can't "close" a <plaintext> tag if it's existing in a plain HTML page.

However, you can still manipulate it through the DOM.

Re:Show HN: TopLevel – A New Way to JavaScript Your HTML by user24 on Friday June 06, 2014 @02:21AM (#7856435)
Yeah I sort of realised that as I said it. Hmm.