3 ms·
That would be an excellent idea if browsers actually stuck to standards and didn't have any bugs. Unfortunately that will never happen, so developers are forced
by axod 18y ago
That would be an excellent idea if browsers actually stuck to standards and didn't have any bugs.
Unfortunately that will never happen, so developers are forced to write invalid code.
Also XHTML doesn't allow tons of useful things.
- olavk 18y agoHow are these things connected? I don't know of any browser bugs where the workaround includes writing non-well formed code. And what useful things does XHTML not allow (which HTML allow)?
- axod 18y agoIn HTML, the noscript element may be used. In XHTML, it is forbidden. document.write() and document.writeln() cannot be used in XHTML, they can in HTML. In XHTML, the use of the innerHTML property requires that the string be a well-formed fragment of XML. Also as far as I remember there are odd things with iframes etc. Also the fact that HTML: <input type=checkbox checked> becomes <input type="checkbox" checked="checked"/> can add quite a bit of unnecessary bloat to a page.