Files
servo/tests/wpt/meta/sanitizer-api/sanitizer-modifiers.tentative.html.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

31 lines
955 B
INI
Vendored

[sanitizer-modifiers.tentative.html]
[sanitizer.allowAttribute() with global attributes]
expected: FAIL
[sanitizer.allowAttribute() with global removeAttributes]
expected: FAIL
[sanitizer.allowAttribute() with global attributes and elements]
expected: FAIL
[sanitizer.allowAttribute() with global removeAttributes and element's attributes]
expected: FAIL
[sanitizer.allowAttribute() with global removeAttributes and element's removeAttributes]
expected: FAIL
[sanitizer.removeAttribute() with global attributes]
expected: FAIL
[sanitizer.removeAttribute() with global removeAttributes]
expected: FAIL
[sanitizer.removeAttribute() with global attributes and elements]
expected: FAIL
[sanitizer.removeAttribute() with global removeAttributes and element's attributes]
expected: FAIL
[sanitizer.removeAttribute() with global removeAttributes and element's removeAttributes]
expected: FAIL