In HTML, the content of the script and style elements is treated as if it were CDATA, so that & and < are not special except when they occur as the end tag to close the element.
I think DOMText and probably DOMCdataSection are incorrect. Although, mimicking DOMDocument is probably what's intended?
At the very least it should be tokenized as DOMComment.
I've come across a discrepancy between DOMDocument and this lib:
DOMDocument returns
DOMCdataSection
for the<style>
contentmasterminds/html5 return
DOMText
for the<style>
contentDOMDocument treats this has
DOMCdataSection
I think
DOMText
and probablyDOMCdataSection
are incorrect. Although, mimickingDOMDocument
is probably what's intended?At the very least it should be tokenized as
DOMComment
.