logoalt Hacker News

vbezhenarlast Sunday at 10:55 AM2 repliesview on HN

> Why?

I don't know why. Try it out. That's the way browsers are coded.

> It isn’t an opinion, it literally is invalid HTML.

It matters not. You're writing HTML for browser to consume, not for validator to accept. And most of webpages are invalid HTML. This very HN page contains 412 errors and warnings according to W3C validator, so the whole point of HTML validness is moot.


Replies

hnlmorglast Sunday at 10:59 AM

> I don't know why. Try it out. That's the way browsers are coded.

I’m not saying you’re wrong, but I’d need more than that to be convinced. Sorry.

> It matters not. You're writing HTML for browser to consume, not for validator to accept.

It matters because you’re arguing a strawman argument.

We weren’t discussing what a browser can render. We were discussing the source code.

So your comment wasn’t a rebuttal of mine. It was a related tangent or addition.

show 1 reply
allreducelast Sunday at 6:18 PM

> You're writing HTML for browser to consume, not for validator to accept.

I'm not a web programmer, but shouldn't one program against the specified interface instead of some edge case behavior of an implementation?