Hacker News new | ask | show | jobs
by pier25 2539 days ago

    script, style { display: block; }
I have no words.
7 comments

This is a discussion forum. Putting things into words is the purpose of commenting. If you can’t, then maybe you shouldn’t.
I did put something into words, didn't I? ;)

Joking aside, I would have thought this was possible.

*never thought
As siblings have commented, it's not clear what reaction is obscured by your lack of words; but, if it's a veiled comment on the inadvisability of doing this, the author beat you to it:

> Warning: All of this doesn’t really follow any best practices for working with html, css or javascript - on the contrary: what we will be doing may look horrible to some people, and rightfully so - so you may not want to try those things at work just yet.

I do - that's great fun. I'm actually a bit surprised that the browser bothers to add text nodes to the DOM tree as normally there wouldn't be any reason to, but it's great to learn that they do, and might be something I'll have a play with one day.
Yeah, I've been writing CSS and HTML for over 20 years and I would have thought these tags were in the actual DOM and could be rendered.
You would or would not have thought? I suspect you forgot a negation.
Thanks, yes I forgot "never".
I was very surprised as well. It’s pretty awesome isn’t it?
Why? What do you mean? Just curious!
I interpret this comment by how I feel about the idea. I have no words to describe how awesome a hack this is!
Why don't you try - because this comment has no value. If you don't like this for some reason, please state why.