Comment Information Items
Comments are intended for human consumption; processing instructions are reserved for application data. The main curiosity here is that the Infoset doesn’t believe in comments within DTDs, perhaps on the grounds that they’d need to be associated with the declarations they describe. (Some DTD documentation tools rely on magic comment syntax, much like javadoc.)
Property |
Callbacks |
Explanation |
---|---|---|
[content] |
|
The characters identified in this callback are the contents of the comment. |
[parent] |
|
When |
Some legacy applications use comments to represent the sort of information that processing instructions were designed to hold; an example is wrapping of CSS rendering hints in HTML comments.
Get SAX2 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.