summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/README.md
blob: ab4a4820afa955e02c03019246226f2e3891e57e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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.