Commit 09dc1a2
committed
Fixes issue 91 by omitting the head element's start tag when the head element is empty.
Also adds checks againts "EmptyTag" when the expected "start tag" might be the one of a "void element" (this is an undocumented mess in html5lib between what should be a StartTag vs. an EmptyTag and a Characters vs. SpaceCharacters token; the "optionaltags" filter expects what is emitted by a treewalker).
Therefore, fixed a few tests that used "EmptyTag" for to represent empty (no child) non-void elements.
--HG--
extra : convert_revision : svn%3Aacbfec75-9323-0410-a652-858a13e371e0/trunk%4012711 parent 3bff377 commit 09dc1a2
1 file changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
35 | 39 | | |
36 | 40 | | |
37 | 41 | | |
| |||
52 | 56 | | |
53 | 57 | | |
54 | 58 | | |
55 | | - | |
| 59 | + | |
56 | 60 | | |
57 | 61 | | |
58 | 62 | | |
| |||
114 | 118 | | |
115 | 119 | | |
116 | 120 | | |
117 | | - | |
| 121 | + | |
118 | 122 | | |
119 | 123 | | |
120 | 124 | | |
| |||
0 commit comments