6 ms·
Big differences between xhtml and js-strict are: - strict mode is a much more local opt-in, it’s difficult to opt others into strict mode, and thus the likelih
by masklinn 5y ago
Big differences between xhtml and js-strict are:
- strict mode is a much more local opt-in, it’s difficult to opt others into strict mode, and thus the likelihood of respecting strict mode is high
- js is much less subject to embeddings, with xhtml even back then there was a long tail of CMS type content which would suddenly break the page hard and with no actionable recourse for the viewer
- finally strict mode came with a bunch of benefits e.g. new syntax / constructs, etc, for the person opting into strict mode, but unless you were an XML-head with an entire XML-based processing pipeline, what did XHTML give you? Additional pain when authoring content is about all.