Commit 135b1d7
committed
Add AdvancedHTMLParser.AdvancedHTMLParser.setDoctype function, to allow you to set the doctype (versus having to use parser.doctype = "DOCTYPE html" ). When you parse a page that contains a doctype, it will still be detected and used in the same way. You can also pass None to this function to clear the doctype, and not output a doctype tag in AdvancedHTMLParser.getHTML
1 parent 9d49f4d commit 135b1d7
1 file changed
+17
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
290 | 306 | | |
291 | 307 | | |
292 | 308 | | |
| |||
1120 | 1136 | | |
1121 | 1137 | | |
1122 | 1138 | | |
| 1139 | + | |
1123 | 1140 | | |
1124 | 1141 | | |
1125 | 1142 | | |
| |||
0 commit comments