We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
li
1 parent 71283f0 commit 9275b21Copy full SHA for 9275b21
lib/github.json
@@ -8,10 +8,6 @@
8
"id"
9
],
10
"ancestors": {
11
- "li": [
12
- "ol",
13
- "ul"
14
- ],
15
"tbody": [
16
"table"
17
@@ -60,8 +56,6 @@
60
56
"h4",
61
57
"h5",
62
58
"h6",
63
- "h7",
64
- "h8",
65
59
"br",
66
"b",
67
"i",
test.js
@@ -448,10 +448,11 @@ test('sanitize()', function (t) {
448
})
449
450
st.test('`li`', function (sst) {
451
+
452
sst.deepEqual(
453
sanitize(h('li', 'alert(1)')),
- u('text', 'alert(1)'),
454
- 'should not allow `li` outside list'
+ h('li', 'alert(1)'),
455
+ 'should allow `li` outside list'
456
)
457
458
0 commit comments