:type text: str :rtype: None
(self, text)
| 279 | self.pieces.append('<?%s>' % text) |
| 280 | |
| 281 | def handle_decl(self, text): |
| 282 | """ |
| 283 | :type text: str |
| 284 | :rtype: None |
| 285 | """ |
| 286 | |
| 287 | # called for the DOCTYPE, if present, e.g. |
| 288 | # <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" |
| 289 | # "http://www.w3.org/TR/html4/loose.dtd"> |
| 290 | # Reconstruct original DOCTYPE |
| 291 | self.pieces.append('<!%s>' % text) |
| 292 | |
| 293 | _new_declname_match = re.compile(r'[a-zA-Z][-_.a-zA-Z0-9:]*\s*').match |
| 294 |
nothing calls this directly
no outgoing calls
no test coverage detected