Skip to content

Commit b77f1ba

Browse files
committed
fix #83
1 parent b7a095a commit b77f1ba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

parse.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ func (p *parser) parse() (*Node, error) {
202202
// First, normalize the cache...
203203
cached := strings.ToUpper(string(p.reader.Cache()))
204204
nodeType := TextNode
205-
if strings.HasPrefix(cached, "<![CDATA[") {
205+
if strings.HasPrefix(cached, "<![CDATA[") || strings.HasPrefix(cached, "![CDATA[") {
206206
nodeType = CharDataNode
207207
}
208208

0 commit comments

Comments
 (0)