Skip to content

Commit b859a12

Browse files
authored
Add support for <noscript> to children
Closes GH-44. Reviewed-by: Christian Murphy <christian.murphy.42@gmail.com>
1 parent d2d96c1 commit b859a12

File tree

4 files changed

+11
-1
lines changed

4 files changed

+11
-1
lines changed

lib/handlers/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ exports.menu = ignore
5656
exports.menuitem = ignore
5757
exports.meta = ignore
5858
exports.nextid = ignore
59-
exports.noscript = ignore
6059
exports.object = ignore
6160
exports.optgroup = ignore
6261
exports.option = ignore
@@ -88,6 +87,7 @@ exports.ins = all
8887
exports.marquee = all
8988
exports.meter = all
9089
exports.nobr = all
90+
exports.noscript = all
9191
exports.output = all
9292
exports.progress = all
9393
exports.slot = all

test/fixtures/noscript/index.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<script>
2+
// Some code.
3+
</script>
4+
<noscript>
5+
<p>Some <em>HTML</em>.</p>
6+
</noscript>

test/fixtures/noscript/index.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"fragment": true
3+
}

test/fixtures/noscript/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Some _HTML_.

0 commit comments

Comments
 (0)