",
+ "message": "SanitizerAPI with config: Template element, sanitize from document function for "
+ },
+ {
+ "config": {},
+ "input": [
+ "Click."
+ ],
+ "inputType": "document",
+ "output": "Click.",
+ "message": "SanitizerAPI with config: HTMLAnchorElement with javascript protocal, sanitize from document function for "
+ },
+ {
+ "config": {},
+ "input": [
+ "Click."
+ ],
+ "inputType": "document",
+ "output": "Click.",
+ "message": "SanitizerAPI with config: HTMLAnchorElement with javascript protocal start with space, sanitize from document function for "
+ },
+ {
+ "config": {},
+ "input": [
+ "Click."
+ ],
+ "inputType": "document",
+ "output": "Click.",
+ "message": "SanitizerAPI with config: HTMLAnchorElement, sanitize from document function for "
+ },
+ {
+ "config": {},
+ "input": [
+ "Click."
+ ],
+ "inputType": "document",
+ "output": "Click.",
+ "message": "SanitizerAPI with config: HTMLAreaElement with javascript protocal, sanitize from document function for "
+ },
+ {
+ "config": {},
+ "input": [
+ "Click."
+ ],
+ "inputType": "document",
+ "output": "Click.",
+ "message": "SanitizerAPI with config: HTMLAreaElement with javascript protocal start with space, sanitize from document function for "
+ },
+ {
+ "config": {},
+ "input": [
+ "Click."
+ ],
+ "inputType": "document",
+ "output": "Click.",
+ "message": "SanitizerAPI with config: HTMLAreaElement, sanitize from document function for "
+ },
+ {
+ "config": {},
+ "input": [
+ ""
+ ],
+ "inputType": "document",
+ "output": "",
+ "message": "SanitizerAPI with config: HTMLFormElement with javascript action, sanitize from document function for "
+ },
+ {
+ "config": {},
+ "input": [
+ ""
+ ],
+ "inputType": "document",
+ "output": "",
+ "message": "SanitizerAPI with config: HTMLFormElement with javascript action start with space, sanitize from document function for "
+ },
+ {
+ "config": {},
+ "input": [
+ ""
+ ],
+ "inputType": "document",
+ "output": "",
+ "message": "SanitizerAPI with config: HTMLFormElement, sanitize from document function for "
+ },
+ {
+ "config": {},
+ "input": [
+ "Click."
+ ],
+ "inputType": "document",
+ "output": "Click.",
+ "message": "SanitizerAPI with config: HTMLInputElement with javascript formaction, sanitize from document function for "
+ },
+ {
+ "config": {},
+ "input": [
+ "Click."
+ ],
+ "inputType": "document",
+ "output": "Click.",
+ "message": "SanitizerAPI with config: HTMLInputElement with javascript formaction start with space, sanitize from document function for "
+ },
+ {
+ "config": {},
+ "input": [
+ "Click."
+ ],
+ "inputType": "document",
+ "output": "Click.",
+ "message": "SanitizerAPI with config: HTMLInputElement, sanitize from document function for "
+ },
+ {
+ "config": {},
+ "input": [
+ ""
+ ],
+ "inputType": "document",
+ "output": "",
+ "message": "SanitizerAPI with config: HTMLButtonElement with javascript formaction, sanitize from document function for "
+ },
+ {
+ "config": {},
+ "input": [
+ ""
+ ],
+ "inputType": "document",
+ "output": "",
+ "message": "SanitizerAPI with config: HTMLButtonElement with javascript formaction start with space, sanitize from document function for "
+ },
+ {
+ "config": {},
+ "input": [
+ ""
+ ],
+ "inputType": "document",
+ "output": "",
+ "message": "SanitizerAPI with config: HTMLButtonElement, sanitize from document function for "
+ },
+ {
+ "config": {},
+ "input": [
+ "
Some text
Some more text
"
+ ],
+ "inputType": "document",
+ "output": "
Some text
Some more text
",
+ "message": "SanitizerAPI with config: malformed HTML, sanitize from document function for "
+ },
+ {
+ "config": {},
+ "input": [
+ "
Some text
Some more text
"
+ ],
+ "inputType": "document",
+ "output": "
Some text
Some more text
",
+ "message": "SanitizerAPI with config: HTML with comments; comments not allowed, sanitize from document function for "
+ },
+ {
+ "config": {
+ "allowComments": true
+ },
+ "input": [
+ "
Some text
Some more text
"
+ ],
+ "inputType": "document",
+ "output": "
Some text
Some more text
",
+ "message": "SanitizerAPI with config: HTML with comments; allowComments, sanitize from document function for "
+ },
+ {
+ "config": {
+ "allowComments": false
+ },
+ "input": [
+ "
Some text
Some more text
"
+ ],
+ "inputType": "document",
+ "output": "
Some text
Some more text
",
+ "message": "SanitizerAPI with config: HTML with comments; !allowComments, sanitize from document function for "
+ },
+ {
+ "config": {},
+ "input": [
+ "
commentintext
"
+ ],
+ "inputType": "document",
+ "output": "
commentintext
",
+ "message": "SanitizerAPI with config: HTML with comments deeper in the tree, sanitize from document function for "
+ },
+ {
+ "config": {
+ "allowComments": true
+ },
+ "input": [
+ "
commentintext
"
+ ],
+ "inputType": "document",
+ "output": "
commentintext
",
+ "message": "SanitizerAPI with config: HTML with comments deeper in the tree, allowComments, sanitize from document function for "
+ },
+ {
+ "config": {
+ "allowComments": false
+ },
+ "input": [
+ "
commentintext
"
+ ],
+ "inputType": "document",
+ "output": "
commentintext
",
+ "message": "SanitizerAPI with config: HTML with comments deeper in the tree, !allowComments, sanitize from document function for "
+ },
+ {
+ "config": {
+ "allowElements": [
+ "svg"
+ ]
+ },
+ "input": [
+ ""
+ ],
+ "inputType": "document",
+ "output": "",
+ "message": "SanitizerAPI with config: Unknown HTML names (HTMLUnknownElement instances) should not match elements parsed as non-HTML namespaces., sanitize from document function for "
+ },
+ {
+ "config": {
+ "allowElements": [
+ "div",
+ "svg"
+ ]
+ },
+ "input": [
+ ""
+ ],
+ "inputType": "document",
+ "output": "",
+ "message": "SanitizerAPI with config: Unknown HTML names (HTMLUnknownElement instances) should not match elements parsed as non-HTML namespaces when nested., sanitize from document function for "
+ },
+ {
+ "config": {
+ "dropElements": [
+ "I",
+ "DL"
+ ]
+ },
+ "input": [
+ "
balabala
test
"
+ ],
+ "inputType": "document",
+ "output": "
balabala
test
",
+ "message": "SanitizerAPI with config: dropElements list [\"I\", \"DL\"]}, sanitize from document function for "
+ },
+ {
+ "config": {
+ "dropElements": [
+ "i",
+ "dl"
+ ]
+ },
+ "input": [
+ "
balabala
test
"
+ ],
+ "inputType": "document",
+ "output": "
balabala
",
+ "message": "SanitizerAPI with config: dropElements list [\"i\", \"dl\"]}, sanitize from document function for "
+ },
+ {
+ "config": {
+ "dropElements": [
+ "i",
+ "dl"
+ ]
+ },
+ "input": [
+ "
balabala
test
"
+ ],
+ "inputType": "document",
+ "output": "
balabala
",
+ "message": "SanitizerAPI with config: dropElements list [\"i\", \"dl\"]} with uppercase HTML, sanitize from document function for "
+ },
+ {
+ "config": {
+ "dropAttributes": {
+ "ID": [
+ "*"
+ ]
+ }
+ },
+ "input": [
+ "
Click.
"
+ ],
+ "inputType": "document",
+ "output": "
Click.
",
+ "message": "SanitizerAPI with config: dropAttributes list {\"ID\": [\"*\"]} with id attribute, sanitize from document function for "
+ },
+ {
+ "config": {
+ "dropAttributes": {
+ "ID": [
+ "*"
+ ]
+ }
+ },
+ "input": [
+ "
Click.
"
+ ],
+ "inputType": "document",
+ "output": "
Click.
",
+ "message": "SanitizerAPI with config: dropAttributes list {\"ID\": [\"*\"]} with ID attribute, sanitize from document function for "
+ },
+ {
+ "config": {
+ "dropAttributes": {
+ "id": [
+ "*"
+ ]
+ }
+ },
+ "input": [
+ "
Click.
"
+ ],
+ "inputType": "document",
+ "output": "
Click.
",
+ "message": "SanitizerAPI with config: dropAttributes list {\"id\": [\"*\"]} with ID attribute, sanitize from document function for "
+ },
+ {
+ "config": {
+ "dropElements": [
+ 123,
+ "test",
+ "i",
+ "custom-element"
+ ]
+ },
+ "input": [
+ "
",
+ "message": "SanitizerAPI with config: HTML with comments; comments not allowed, sanitize from document fragment function for "
+ },
+ {
+ "config": {
+ "allowComments": true
+ },
+ "input": "
",
+ "message": "SanitizerAPI with config: HTML with comments; allowComments, sanitize from document fragment function for "
+ },
+ {
+ "config": {
+ "allowComments": false
+ },
+ "input": "
",
+ "message": "SanitizerAPI with config: HTML with comments; !allowComments, sanitize from document fragment function for "
+ },
+ {
+ "config": {},
+ "input": "
",
+ "message": "SanitizerAPI with config: HTML with comments deeper in the tree, sanitize from document fragment function for "
+ },
+ {
+ "config": {
+ "allowComments": true
+ },
+ "input": "
",
+ "message": "SanitizerAPI with config: HTML with comments deeper in the tree, allowComments, sanitize from document fragment function for "
+ },
+ {
+ "config": {
+ "allowComments": false
+ },
+ "input": "
",
+ "message": "SanitizerAPI with config: HTML with comments deeper in the tree, !allowComments, sanitize from document fragment function for "
+ },
+ {
+ "config": {
+ "allowElements": [
+ "svg"
+ ]
+ },
+ "input": "",
+ "inputType": "template-content",
+ "output": "",
+ "message": "SanitizerAPI with config: Unknown HTML names (HTMLUnknownElement instances) should not match elements parsed as non-HTML namespaces., sanitize from document fragment function for "
+ },
+ {
+ "config": {
+ "allowElements": [
+ "div",
+ "svg"
+ ]
+ },
+ "input": "",
+ "inputType": "template-content",
+ "output": "",
+ "message": "SanitizerAPI with config: Unknown HTML names (HTMLUnknownElement instances) should not match elements parsed as non-HTML namespaces when nested., sanitize from document fragment function for "
+ },
+ {
+ "config": {
+ "dropElements": [
+ "I",
+ "DL"
+ ]
+ },
+ "input": "
",
+ "message": "SanitizerAPI with config: dropElements with unknown elements and without allowUnknownMarkup, sanitize from document fragment function for "
+ },
+ {
+ "config": {
+ "blockElements": [
+ 123,
+ "test",
+ "i",
+ "custom-element"
+ ]
+ },
+ "input": "
",
+ "message": "SanitizerAPI with config: blockElements with unknown elements and without allowUnknownMarkup, sanitize from document fragment function for "
+ },
+ {
+ "config": {
+ "allowElements": [
+ "p",
+ "test"
+ ]
+ },
+ "input": "
t",
+ "message": "SanitizerAPI with config: blockElements with unknown elements and with allowUnknownMarkup, sanitize from document fragment function for "
+ },
+ {
+ "config": {
+ "allowElements": [
+ "p",
+ "test"
+ ],
+ "allowUnknownMarkup": true
+ },
+ "input": "