forked fromhtml5lib/html5lib-python
- Notifications
You must be signed in to change notification settings - Fork0
Commit6bc4fc4
committed
Re-enable Genshi treewalker.
The Genshi treewalker was never fully updated when support fornamespaces was added to treewalkers. This finally fixes this, allowingall tests to once again pass.This removes the ignoring of children of void elements as the commonlyused treewalkers don't support this and there was some subtle bug Icouldn't see in the code. Given most don't support this, this seemslike little loss. (You will, however, still get an error from thetreewalker if a void element has children.)1 parent3dabe2c commit6bc4fc4
File tree
2 files changed
+33
-32
lines changed- html5lib
- tests
- treewalkers
2 files changed
+33
-32
lines changedLines changed: 13 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
127 | 127 |
| |
128 | 128 |
| |
129 | 129 |
| |
130 |
| - | |
131 |
| - | |
132 |
| - | |
133 |
| - | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
134 | 133 |
| |
135 | 134 |
| |
136 | 135 |
| |
137 | 136 |
| |
138 |
| - | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
139 | 143 |
| |
140 | 144 |
| |
141 | 145 |
| |
| |||
150 | 154 |
| |
151 | 155 |
| |
152 | 156 |
| |
153 |
| - | |
154 |
| - | |
155 |
| - | |
156 |
| - | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
157 | 161 |
| |
158 | 162 |
| |
159 | 163 |
| |
|
Lines changed: 20 additions & 23 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
| 3 | + | |
3 | 4 |
| |
4 | 5 |
| |
5 | 6 |
| |
6 | 7 |
| |
7 | 8 |
| |
8 | 9 |
| |
9 |
| - | |
| 10 | + | |
10 | 11 |
| |
11 | 12 |
| |
12 | 13 |
| |
13 |
| - | |
14 |
| - | |
| 14 | + | |
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
18 |
| - | |
19 |
| - | |
20 |
| - | |
21 |
| - | |
22 |
| - | |
23 |
| - | |
24 |
| - | |
25 |
| - | |
26 |
| - | |
27 |
| - | |
28 |
| - | |
| 18 | + | |
| 19 | + | |
29 | 20 |
| |
| 21 | + | |
| 22 | + | |
30 | 23 |
| |
31 |
| - | |
32 |
| - | |
33 |
| - | |
34 |
| - | |
35 |
| - | |
| 24 | + | |
| 25 | + | |
36 | 26 |
| |
37 | 27 |
| |
38 | 28 |
| |
39 | 29 |
| |
40 |
| - | |
| 30 | + | |
41 | 31 |
| |
42 | 32 |
| |
43 |
| - | |
44 |
| - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
45 | 42 |
| |
46 | 43 |
| |
47 | 44 |
| |
48 | 45 |
| |
49 |
| - | |
| 46 | + | |
50 | 47 |
| |
51 | 48 |
| |
52 | 49 |
| |
|
0 commit comments
Comments
(0)