mirror of
https://github.com/servo/servo
synced 2026-04-25 17:15:48 +02:00
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>
13 lines
248 B
INI
Vendored
13 lines
248 B
INI
Vendored
[sanitizer-config.tentative.html]
|
|
[SanitizerConfig comments field.]
|
|
expected: FAIL
|
|
|
|
[SanitizerConfig dataAttributes field.]
|
|
expected: FAIL
|
|
|
|
[Test attribute addition.]
|
|
expected: FAIL
|
|
|
|
[Test attribute removal.]
|
|
expected: FAIL
|