Closed josht-jpg closed 9 months ago
I've been thinking about this -- I think it needs more work because the escaping rules within a CDATA
are different from outside. So we'll need to propagate the information whether text data was from CDATA
or from a normal text node.
Closing this in favor of #50.
Handling Cdata sections.
Currently, if a
Cdata
token is encountered, we'll meet the following error:unexpected token: Cdata
. This should be fixed by accounting forCdata
tokens in the implementation ofIterator
forContext
.From my understanding of
Cdata
sections, I believe we are only concerned with the text inside anyCdata
section. My knowledge of XML is very limited, so I could be wildly off with this approach.Cheers!