This repository was archived by the owner on Apr 18, 2023. It is now read-only.
This repository was archived by the owner on Apr 18, 2023. It is now read-only.
HTML tags inside a CDATA block are not ignored. Results in autocompletion not working. #29
Open
Description
I want to use atom-autocomplete-xml for editing XML files that contain snippets of HTML code wrapped in <![CDATA[...]]>
blocks, like in the following:
...
<text>
<![CDATA[
<h1>blah blah</h1>
<br><br>
blah blah
]]>
</text>
...
I would expect that autocompletion should not work when editing the contents of a CDATA block and that, more importantly, the contents of CDATA block should not be interpreted as XML structure. The behavior I am observing is that neither of the above conditioned is fullfilled. Specifically:
- When editing inside the CDATA block, completions are suggested. For example, if the cursor is placed at the end of the
<br><br>
line above, after typing</
autocompletion will suggest</br>
, then again</br>
and finally</text>
. - When editing anywhere after the first CDATA block, tags from my XSD are no longer suggested on typing a single
<
. Moreover, in the status line at the bottom of the atom window, the current path within the XML structure is printed including all the unclosed tags from all the preceding CDATA blocks, e.g..../br/br
.