Loading
HTML: fix comment format, Escapable raw text elements and others
- fix comment: start with
>or->close comment -
<![CDATA[is is only valid in a foreign element (<svg>and<math>) -
<!and<?are the beginning of a bad comment (except<!DOCTYPE ...>) - semicolon is optional with some entity
- Escapable raw text elements (
<textarea>and<title>) must process HTML elements as text (except the closing element)
The HTML syntax is complete, but the syntax contained:
<!-- as long as kde gives DTDs the text/html mimetype-->
<IncludeRules context="FindDTDRules" />
How to check which mimetype gives "KDE"?
In HTML, what's in FindDTDRules (<!ENTITY ...>, etc) are bad comments with a closing rule slightly different from xml:
<!DOCTYPE language
[
<!ENTITY name "bla>bla">
<!-- xml: ^ closing -->
<!-- html: ^ closing -->
]>
(At the same time, I notice that gitlab doesn't really handle xml...)
Edited by Jonathan Poelen