Menu

#250 Inline definitions in DOCTYPE containing '<'/'>' not parsed

v2.0
open
5
2007-08-31
2007-08-31
FB
No

The Lexer does not seem to be able to handle DOCTYPE declarations containing an internal subset of definitions correctly, as the syntax within the squared brackets is SGML like the rest of the document, but here it is part of the tag itself.

For example the DOCTYPE declaration

---
<!DOCTYPE h1 [ <!ENTITY entity "TheText"> ]>
---

is being parsed into a DoctypeTag containing only

---
<!DOCTYPE h1 [ >
---

according to toHtml().

Discussion


Log in to post a comment.