3 ms·
Why didn't they go the grammar nazi route? Define a spec and if the page doesn't conform, draw an error message. It's really annoying to have this kind of unde
by lordnacho 4y ago
Why didn't they go the grammar nazi route? Define a spec and if the page doesn't conform, draw an error message.
It's really annoying to have this kind of undefined behaviour that might end up being relied upon.
- chrismorgan 4y agoXHTML was an attempt at such strictness. It failed, though you can still use XML syntax for HTML if you choose to (serve it with MIME type application/xhtml+xml instead of text/html). I leave you to research why it failed if you want; plenty has been written on the topic. In the mid-2000s, HTML syntax was finally codified. There is now no undefined behaviour: all inputs have a defined output, however surprising may be, because a lot of it was being relied upon.