On Wed Aug 21 14:17:19 2024 +0000, Gabriel Ivăncescu wrote:
Are you sure about that? That doesn't run the tests to show it's for html mode in general, even pre ES5. For instance, if I change "html_mode" to a version check for ES5 the tests will still pass, even though it's wrong?
Following that logic, we'd move everything to `documentmode.js`. Otherwise even if there is no version check, tests wouldn't fail if you added one.
"HTML" mode is really a distinction between classic JScript and JS inside MSHTML (that are separate things on Windows, even in quirks mode). So from MSHTML point of view, all its compatibility modes behave the same. If you intend to show a difference, you'd need to add a separate test to jscript/tests.