Click here to download the Blitz Browser!

WPT

wpt / sanitizer-api / sanitizer-config.html

Spec: HTML Sanitizer API ↗

Runs: Chrome 155.0.8039.0 (wpt@2b4dfe72c, 2026-09-03) | Firefox 157.0a1 (wpt@2b4dfe72c, 2026-09-03) | Safari 251 preview (wpt@5ce815a83, 2026-08-27) | Ladybird 1.0-56c61 (wpt@ed1909ed6, 2026-09-03) | Servo Servo 0.6 (wpt@09159dcb3, 2026-09-02) | Blitz 188486089 (wpt@a95401e4e, 2026-09-02)

View on the Blitz WPT dashboard | Open test on wpt.live | wpt.fyi

ChromeFirefoxSafariLadybirdServoBlitz
Total71/7162/710/710/7171/71NOT RUN
SubtestChromeFirefoxSafariLadybirdServoBlitz
Sanitizer constructor without config.PASSPASSFAILFAILPASS
Sanitizer constructor with empty config.PASSPASSFAILFAILPASS
Sanitizer constructor with null as config.PASSPASSFAILFAILPASS
Sanitizer constructor with undefined as config.PASSPASSFAILFAILPASS
Sanitizer constructor with config ignore unknown values.PASSPASSFAILFAILPASS
SanitizerConfig comments field.PASSPASSFAILFAILPASS
SanitizerConfig dataAttributes field.PASSPASSFAILFAILPASS
SanitizerConfig, normalization: elements: ["div"]PASSPASSFAILFAILPASS
SanitizerConfig, normalization: elements: [{"name":"b"}]PASSPASSFAILFAILPASS
SanitizerConfig, normalization: elements: [{"name":"b","namespace":null}]PASSPASSFAILFAILPASS
SanitizerConfig, normalization: elements: [{"name":"b","namespace":""}]PASSPASSFAILFAILPASS
SanitizerConfig, normalization: elements: [{"name":"p","namespace":"http://www.w3.org/1999/xhtml"}]PASSPASSFAILFAILPASS
SanitizerConfig, normalization: elements: [{"name":"bla","namespace":"http://fantasy.org/namespace"}]PASSPASSFAILFAILPASS
SanitizerConfig, normalization: removeElements: ["div"]PASSPASSFAILFAILPASS
SanitizerConfig, normalization: removeElements: [{"name":"b"}]PASSPASSFAILFAILPASS
SanitizerConfig, normalization: removeElements: [{"name":"b","namespace":null}]PASSPASSFAILFAILPASS
SanitizerConfig, normalization: removeElements: [{"name":"b","namespace":""}]PASSPASSFAILFAILPASS
SanitizerConfig, normalization: removeElements: [{"name":"p","namespace":"http://www.w3.org/1999/xhtml"}]PASSPASSFAILFAILPASS
SanitizerConfig, normalization: removeElements: [{"name":"bla","namespace":"http://fantasy.org/namespace"}]PASSPASSFAILFAILPASS
SanitizerConfig, normalization: replaceWithChildrenElements: ["div"]PASSPASSFAILFAILPASS
SanitizerConfig, normalization: replaceWithChildrenElements: [{"name":"b"}]PASSPASSFAILFAILPASS
SanitizerConfig, normalization: replaceWithChildrenElements: [{"name":"b","namespace":null}]PASSPASSFAILFAILPASS
SanitizerConfig, normalization: replaceWithChildrenElements: [{"name":"b","namespace":""}]PASSPASSFAILFAILPASS
SanitizerConfig, normalization: replaceWithChildrenElements: [{"name":"p","namespace":"http://www.w3.org/1999/xhtml"}]PASSPASSFAILFAILPASS
SanitizerConfig, normalization: replaceWithChildrenElements: [{"name":"bla","namespace":"http://fantasy.org/namespace"}]PASSPASSFAILFAILPASS
SanitizerConfig, normalization: processingInstructions: ["target-1"]PASSFAILFAILFAILPASS
SanitizerConfig, normalization: processingInstructions: [{"target":"target-1"}]PASSFAILFAILFAILPASS
SanitizerConfig, normalization: removeProcessingInstructions: ["target-1"]PASSFAILFAILFAILPASS
SanitizerConfig, normalization: removeProcessingInstructions: [{"target":"target-1"}]PASSFAILFAILFAILPASS
SanitizerConfig, normalization: attributes: ["href"]PASSPASSFAILFAILPASS
SanitizerConfig, normalization: attributes: [{"name":"href","namespace":null}]PASSPASSFAILFAILPASS
SanitizerConfig, normalization: attributes: [{"name":"href","namespace":""}]PASSPASSFAILFAILPASS
SanitizerConfig, normalization: attributes: [{"name":"href","namespace":"https://www.w3.org/1999/xlink"}]PASSPASSFAILFAILPASS
SanitizerConfig, normalization: removeAttributes: ["href"]PASSPASSFAILFAILPASS
SanitizerConfig, normalization: removeAttributes: [{"name":"href","namespace":null}]PASSPASSFAILFAILPASS
SanitizerConfig, normalization: removeAttributes: [{"name":"href","namespace":""}]PASSPASSFAILFAILPASS
SanitizerConfig, normalization: removeAttributes: [{"name":"href","namespace":"https://www.w3.org/1999/xlink"}]PASSPASSFAILFAILPASS
Test elements addition.PASSPASSFAILFAILPASS
Test elements removal.PASSPASSFAILFAILPASS
Test elements replacewithchildren.PASSPASSFAILFAILPASS
Test processingInstructions addition.PASSFAILFAILFAILPASS
Test processingInstructions removal.PASSFAILFAILFAILPASS
Test attribute addition.PASSPASSFAILFAILPASS
Test attribute removal.PASSPASSFAILFAILPASS
Test attribute-per-element sets (i.e. overwrites).PASSPASSFAILFAILPASS
Test removeAttribute-per-element sets (i.e. overwrites).PASSPASSFAILFAILPASS
Both elements and removeElements should not be allowed.PASSPASSFAILFAILPASS
Both attributes and removeAttributes should not be allowed.PASSPASSFAILFAILPASS
Both processingInstructions and removeProcessingInstructions should not be allowed.PASSFAILFAILFAILPASS
config[elements] should not allow duplicatesPASSPASSFAILFAILPASS
config[removeElements] should not allow duplicatesPASSPASSFAILFAILPASS
config[replaceWithChildrenElements] should not allow duplicatesPASSPASSFAILFAILPASS
config[attributes] should not allow duplicatesPASSPASSFAILFAILPASS
config[removeAttributes] should not allow duplicatesPASSPASSFAILFAILPASS
config[processingInstructions] should not allow duplicate targetsPASSFAILFAILFAILPASS
config[removeProcessingInstructions] should not allow duplicate targetsPASSFAILFAILFAILPASS
config[replaceWithChildrenElements] should not allow non-replaceable elementsPASSPASSFAILFAILPASS
config[elements] and config[replaceWithChildrenElements] should not intersectPASSPASSFAILFAILPASS
config[removeElements] and config[replaceWithChildrenElements] should not intersectPASSPASSFAILFAILPASS
Duplicates in element[attributes] with config[attributes] should not be allowed.PASSPASSFAILFAILPASS
Duplicates in element[removeAttributes] with config[attributes] should not be allowed.PASSPASSFAILFAILPASS
config[attributes] and element[attributes] should not intersect.PASSPASSFAILFAILPASS
element[removeAttributes] should be a subset of config[attributes]PASSPASSFAILFAILPASS
element[attributes] with a data attribute must not co-exist with config[dataAttributes] set to true.PASSPASSFAILFAILPASS
config[attributes] with a data attribute must not co-exist with config[dataAttributes] set to true.PASSPASSFAILFAILPASS
element[attributes] and element[removeAttributes] should not both exist with config[removeAttributes].PASSPASSFAILFAILPASS
Duplicates in element[attributes] with config[removeAttributes] should not be allowed.PASSPASSFAILFAILPASS
Duplicates in element[removeAttributes] with config[removeAttributes] should not be allowed.PASSPASSFAILFAILPASS
config[removeAttributes] and element[attributes] should not intersect.PASSPASSFAILFAILPASS
config[removeAttributes] and element[removeAttributes] should not intersect.PASSPASSFAILFAILPASS
Can not use config[dataAttributes] and config[removeAttributes] together.PASSPASSFAILFAILPASS