- Notifications
You must be signed in to change notification settings - Fork302
Commit4834f64
committed
Remove the "XHTML" Serializer.
This never did what it claimed, and never actually guaranteed itsoutput was well-formed XML, and hence provided little of use.(The only thing it was good at was producing stylized HTML, and thiscan be done by manually setting the relevant options without havinga misleadingly named module.)If you want XHTML, use one of the tree-builders that supports itnatively. These are DOM (with most DOM implementations, inc. thestandard library minidom with its Node.toxml function) andElementTree (ElementTree.tostring gives XML). Neither simpletree northe deprecated BeautifulSoup tree-builders support this.If you want polyglot, there is no solution. I (personally) would behappy to add a polyglot serializer to html5lib if one is written.1 parent3e50aad commit4834f64
File tree
3 files changed
+8
-41
lines changed- html5lib
- serializer
- tests
3 files changed
+8
-41
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
7 | | - | |
| 6 | + | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
15 | | - | |
16 | | - | |
17 | 14 | | |
18 | | - | |
| 15 | + | |
19 | 16 | | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
| 89 | + | |
94 | 90 | | |
95 | 91 | | |
96 | 92 | | |
97 | 93 | | |
98 | 94 | | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | 95 | | |
103 | 96 | | |
104 | 97 | | |
105 | | - | |
| 98 | + | |
106 | 99 | | |
107 | 100 | | |
108 | 101 | | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | 102 | | |
119 | 103 | | |
120 | 104 | | |
| |||
131 | 115 | | |
132 | 116 | | |
133 | 117 | | |
134 | | - | |
| 118 | + | |
135 | 119 | | |
136 | 120 | | |
137 | 121 | | |
138 | | - | |
| 122 | + | |
139 | 123 | | |
140 | 124 | | |
141 | 125 | | |
| |||
149 | 133 | | |
150 | 134 | | |
151 | 135 | | |
152 | | - | |
| 136 | + | |
153 | 137 | | |
154 | 138 | | |
155 | 139 | | |
| |||
190 | 174 | | |
191 | 175 | | |
192 | 176 | | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
| 177 | + | |
0 commit comments
Comments
(0)