diff options
Diffstat (limited to 'testing/web-platform/tests/html/semantics/scripting-1/the-script-element/README.md')
-rw-r--r-- | testing/web-platform/tests/html/semantics/scripting-1/the-script-element/README.md | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/README.md b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/README.md new file mode 100644 index 0000000000..ab4a4820af --- /dev/null +++ b/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/README.md @@ -0,0 +1,16 @@ +# Script tests + +## Import attributes & JSON/CSS modules + +The import attributes proposal changed the keyword from `assert` to `with`, after that it was already been implemented and shipped in some browsers. Thus, there are some implementations that only support the `assert` syntax and others that only support the `with` syntax. + +For this reason, the import attributes, JSON modules and CSS modules are duplicated to use both keywords: +| `with` keyword | `assert` keyword | +|:----------------------|:---------------------------| +| `./import-attributes` | `./import-assertions` | +| `./json-module` | `./json-module-assertions` | +| `./css-module` | `./css-module-assertions` | + +All changes in one folder should be reflected in the corresponding folder, because the two syntaxes have the same semantics. + +The web compatibility of removing the `assert` keyword is being investigated. If it will be deemed feasible, it will be removed from the proposal and the `assert` tests can be deleted. |