News for hackers. Stuff that matters.
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.