4 ms·
I wasn't going to mention the invalid HTML. Thank you for doing it.
by assimpleaspossi 3y ago
I wasn't going to mention the invalid HTML. Thank you for doing it.
- xp84 3y agoI thought we all agreed to ignore validity a while back when XHTML gave way to HTML5.
- pests 3y agoHow is XHTML any more valid than HTML 5?
- tredre3 3y agoXHTML had to be valid XML, that was the entire shtick. Comparatively HTML5 is very lenient in its spec. Browsers are even more lenient in their implementation.
- pests 3y agoIt has a pretty well defined spec. It's just not XML, and I think that's okay. Do you have any examples of undefined or linient rules? I'm a big fan of optional closing tags that HTML5 has. Can do stuff like: <h2> Todo List <ul> <li> Do task A <li> Do task B <p> Dear Diary, ... Almost as easy as markdown. Couldn't get this working with XML.
- userbinator 3y agoIndeed, the fact that HTML5 specified the exact way to turn any stream of bytes into a DOM means that "error" cases are really just academic/theoretical.