diff --git a/tests/cases/std-sanitize.json b/tests/cases/std-sanitize.json index a0d4070..c083491 100644 --- a/tests/cases/std-sanitize.json +++ b/tests/cases/std-sanitize.json @@ -354,11 +354,14 @@ }, { "config": { - "dropAttributes": { - "style": [ - "p" - ] - } + "dropAttributes": [ + { + "name": "style", + "elements": [ + "p" + ] + } + ] }, "input": [ "
Click.
Click.
" @@ -380,11 +383,12 @@ }, { "config": { - "dropAttributes": { - "id": [ - "*" - ] - } + "dropAttributes": [ + { + "name": "id", + "elements": "*" + } + ] }, "input": [ "Click.
" @@ -395,11 +399,12 @@ }, { "config": { - "dropAttributes": { - "data-attribute-with-dashes": [ - "*" - ] - } + "dropAttributes": [ + { + "name": "data-attribute-with-dashes", + "elements": "*" + } + ] }, "input": [ "Click.
" @@ -410,11 +415,14 @@ }, { "config": { - "allowAttributes": { - "id": [ - "div" - ] - } + "allowAttributes": [ + { + "name": "id", + "elements": [ + "div" + ] + } + ] }, "input": [ "P
Click.
" @@ -440,16 +449,18 @@ }, { "config": { - "dropAttributes": { - "style": [ - "*" - ] - }, - "allowAttributes": { - "style": [ - "*" - ] - } + "dropAttributes": [ + { + "name": "style", + "elements": "*" + } + ], + "allowAttributes": [ + { + "name": "style", + "elements": "*" + } + ] }, "input": [ "Click.
" @@ -749,11 +760,12 @@ }, { "config": { - "dropAttributes": { - "ID": [ - "*" - ] - } + "dropAttributes": [ + { + "name": "ID", + "elements": "*" + } + ] }, "input": [ "Click.
" @@ -764,11 +776,12 @@ }, { "config": { - "dropAttributes": { - "ID": [ - "*" - ] - } + "dropAttributes": [ + { + "name": "ID", + "elements": "*" + } + ] }, "input": [ "Click.
" @@ -779,11 +792,12 @@ }, { "config": { - "dropAttributes": { - "id": [ - "*" - ] - } + "dropAttributes": [ + { + "name": "id", + "elements": "*" + } + ] }, "input": [ "Click.
" @@ -889,14 +903,18 @@ }, { "config": { - "allowAttributes": { - "hello": [ - "*" - ], - "world": [ - "b" - ] - } + "allowAttributes": [ + { + "name": "hello", + "elements": "*" + }, + { + "name": "world", + "elements": [ + "b" + ] + } + ] }, "input": [ "Click.
Click.
", "inputType": "template-content", @@ -1241,11 +1274,12 @@ }, { "config": { - "dropAttributes": { - "id": [ - "*" - ] - } + "dropAttributes": [ + { + "name": "id", + "elements": "*" + } + ] }, "input": "Click.
", "inputType": "template-content", @@ -1254,11 +1288,12 @@ }, { "config": { - "dropAttributes": { - "data-attribute-with-dashes": [ - "*" - ] - } + "dropAttributes": [ + { + "name": "data-attribute-with-dashes", + "elements": "*" + } + ] }, "input": "Click.
", "inputType": "template-content", @@ -1267,11 +1302,14 @@ }, { "config": { - "allowAttributes": { - "id": [ - "div" - ] - } + "allowAttributes": [ + { + "name": "id", + "elements": [ + "div" + ] + } + ] }, "input": "P
Click.
", "inputType": "template-content", @@ -1293,16 +1332,18 @@ }, { "config": { - "dropAttributes": { - "style": [ - "*" - ] - }, - "allowAttributes": { - "style": [ - "*" - ] - } + "dropAttributes": [ + { + "name": "style", + "elements": "*" + } + ], + "allowAttributes": [ + { + "name": "style", + "elements": "*" + } + ] }, "input": "Click.
", "inputType": "template-content", @@ -1544,11 +1585,12 @@ }, { "config": { - "dropAttributes": { - "ID": [ - "*" - ] - } + "dropAttributes": [ + { + "name": "ID", + "elements": "*" + } + ] }, "input": "Click.
", "inputType": "template-content", @@ -1557,11 +1599,12 @@ }, { "config": { - "dropAttributes": { - "ID": [ - "*" - ] - } + "dropAttributes": [ + { + "name": "ID", + "elements": "*" + } + ] }, "input": "Click.
", "inputType": "template-content", @@ -1570,11 +1613,12 @@ }, { "config": { - "dropAttributes": { - "id": [ - "*" - ] - } + "dropAttributes": [ + { + "name": "id", + "elements": "*" + } + ] }, "input": "Click.
", "inputType": "template-content", @@ -1666,14 +1710,18 @@ }, { "config": { - "allowAttributes": { - "hello": [ - "*" - ], - "world": [ - "b" - ] - } + "allowAttributes": [ + { + "name": "hello", + "elements": "*" + }, + { + "name": "world", + "elements": [ + "b" + ] + } + ] }, "input": "