commit | 669573726bb31d8862e98b3843549e5fe0b54d37 | [log] [tgz] |
---|---|---|
author | Fred Drake <fdrake@acm.org> | Fri Mar 16 20:04:57 2001 +0000 |
committer | Fred Drake <fdrake@acm.org> | Fri Mar 16 20:04:57 2001 +0000 |
tree | 5969d357eebd6a8f790fb13d54a86d8e9a0a9f0a | |
parent | 83e01bf6c84719f8977d1ffd721d75d8eda2ddf8 [diff] |
Change RuntimeError to SGMLParseError, which subclasses RuntimeError for backward compatibility. Add support for SGML declaration syntax (<!....>) to some reasonable degree. This does not support everything allowed in SGML, but should work with "real" HTML (internal subset in a DOCTYPE is not handled). The content of the declaration is passed to the .handle_decl() method, which can be overridden by subclasses.