Files
servo/tests/wpt/meta/sanitizer-api/idlharness.https.window.js.ini
Kingsley Yung 430105468f script: Add or remove elements in sanitizer (#44481)
Implement the `allowElement`, `removeElement` and
`replaceElementWithChildren` methods of the `Sanitizer` interface, which
add or remove elements in a sanitizer.

Specification:
- https://wicg.github.io/sanitizer-api/#dom-sanitizer-allowelement
- https://wicg.github.io/sanitizer-api/#dom-sanitizer-removeelement
-
https://wicg.github.io/sanitizer-api/#dom-sanitizer-replaceelementwithchildren

Testing: Covered by WPT tests in `sanitizer-api/` subdirectory.
Additionally, some tests in `sanitizer-basic-filtering.tentative.html`
are changed from ERROR to FAIL because of this implementation.
Fixes: Part of #43948

---------

Signed-off-by: Kingsley Yung <kingsley@kkoyung.dev>
2026-04-24 15:07:01 +00:00

43 lines
1.7 KiB
INI
Vendored

[idlharness.https.window.html]
[Sanitizer interface: operation allowAttribute(SanitizerAttribute)]
expected: FAIL
[Sanitizer interface: operation removeAttribute(SanitizerAttribute)]
expected: FAIL
[Sanitizer interface: operation setComments(boolean)]
expected: FAIL
[Sanitizer interface: operation setDataAttributes(boolean)]
expected: FAIL
[Sanitizer interface: operation removeUnsafe()]
expected: FAIL
[Sanitizer interface: new Sanitizer({}) must inherit property "allowAttribute(SanitizerAttribute)" with the proper type]
expected: FAIL
[Sanitizer interface: calling allowAttribute(SanitizerAttribute) on new Sanitizer({}) with too few arguments must throw TypeError]
expected: FAIL
[Sanitizer interface: new Sanitizer({}) must inherit property "removeAttribute(SanitizerAttribute)" with the proper type]
expected: FAIL
[Sanitizer interface: calling removeAttribute(SanitizerAttribute) on new Sanitizer({}) with too few arguments must throw TypeError]
expected: FAIL
[Sanitizer interface: new Sanitizer({}) must inherit property "setComments(boolean)" with the proper type]
expected: FAIL
[Sanitizer interface: calling setComments(boolean) on new Sanitizer({}) with too few arguments must throw TypeError]
expected: FAIL
[Sanitizer interface: new Sanitizer({}) must inherit property "setDataAttributes(boolean)" with the proper type]
expected: FAIL
[Sanitizer interface: calling setDataAttributes(boolean) on new Sanitizer({}) with too few arguments must throw TypeError]
expected: FAIL
[Sanitizer interface: new Sanitizer({}) must inherit property "removeUnsafe()" with the proper type]
expected: FAIL