Skip to content

Commit 41fd8db

Browse files
committed
Add more ignored elements
* `<basefont>` * `<bgsound>` * `<col>` * `<command>` * `<content>` * `<datalist>` * `<dialog>` * `<input>` * `<keygen>` * `<link>` * `<menu>` * `<menuitem>` * `<meta>` * `<optgroup>` * `<option>` * `<select>` * `<shadow>` * `<spacer>`
1 parent a26b1c5 commit 41fd8db

File tree

34 files changed

+193
-0
lines changed

34 files changed

+193
-0
lines changed

lib/handlers/index.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,30 @@ exports.text = require('./text');
88
exports.comment = require('./comment');
99

1010
exports.area =
11+
exports.basefont =
12+
exports.bgsound =
1113
exports.caption =
14+
exports.col =
1215
exports.colgroup =
16+
exports.command =
17+
exports.content =
18+
exports.datalist =
19+
exports.dialog =
1320
exports.head =
21+
exports.input =
22+
exports.keygen =
23+
exports.link =
1424
exports.map =
1525
exports.math =
26+
exports.menu =
27+
exports.menuitem =
28+
exports.meta =
29+
exports.optgroup =
30+
exports.option =
1631
exports.script =
32+
exports.select =
33+
exports.shadow =
34+
exports.spacer =
1735
exports.style =
1836
exports.svg =
1937
exports.template =

test/fixtures/basefont/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<basefont color="#FF0000" face="Helvetica" size="+2" />

test/fixtures/basefont/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/basefont/index.md

Whitespace-only changes.

test/fixtures/bgsound/index.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<bgsound src="sound1.mid">
2+
3+
<bgsound src="sound2.au" loop="infinite">

test/fixtures/bgsound/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/bgsound/index.md

Whitespace-only changes.
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
<p>Table with colgroup</p>
2+
<table>
3+
<colgroup span="4"></colgroup>
4+
<tr>
5+
<th>Countries</th>
6+
<th>Capitals</th>
7+
<th>Population</th>
8+
<th>Language</th>
9+
</tr>
10+
<tr>
11+
<td>USA</td>
12+
<td>Washington D.C.</td>
13+
<td>309 million</td>
14+
<td>English</td>
15+
</tr>
16+
<tr>
17+
<td>Sweden</td>
18+
<td>Stockholm</td>
19+
<td>9 million</td>
20+
<td>Swedish</td>
21+
</tr>
22+
</table>
23+
24+
<p>Table with colgroup and col</p>
25+
<table>
26+
<colgroup>
27+
<col style="background-color: #0f0">
28+
<col span="2">
29+
</colgroup>
30+
<tr>
31+
<th>Lime</th>
32+
<th>Lemon</th>
33+
<th>Orange</th>
34+
</tr>
35+
<tr>
36+
<td>Green</td>
37+
<td>Yellow</td>
38+
<td>Orange</td>
39+
</tr>
40+
</table>
41+
42+
<p>Simple table with caption</p>
43+
<table>
44+
<caption>Awesome caption</caption>
45+
<tr>
46+
<th>Lime</th>
47+
<th>Lemon</th>
48+
<th>Orange</th>
49+
</tr>
50+
<tr>
51+
<td>Green</td>
52+
<td>Yellow</td>
53+
<td>Orange</td>
54+
</tr>
55+
</table>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"fragment": true
3+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
Table with colgroup
2+
3+
| Countries | Capitals | Population | Language |
4+
| --------- | --------------- | ----------- | -------- |
5+
| USA | Washington D.C. | 309 million | English |
6+
| Sweden | Stockholm | 9 million | Swedish |
7+
8+
Table with colgroup and col
9+
10+
| Lime | Lemon | Orange |
11+
| ----- | ------ | ------ |
12+
| Green | Yellow | Orange |
13+
14+
Simple table with caption
15+
16+
| Lime | Lemon | Orange |
17+
| ----- | ------ | ------ |
18+
| Green | Yellow | Orange |

0 commit comments

Comments
 (0)