Skip to content

Commit

Permalink
fix #83
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengchun committed Jul 31, 2022
1 parent b7a095a commit b77f1ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ func (p *parser) parse() (*Node, error) {
// First, normalize the cache...
cached := strings.ToUpper(string(p.reader.Cache()))
nodeType := TextNode
if strings.HasPrefix(cached, "<![CDATA[") {
if strings.HasPrefix(cached, "<![CDATA[") || strings.HasPrefix(cached, "![CDATA[") {
nodeType = CharDataNode
}

Expand Down

0 comments on commit b77f1ba

Please sign in to comment.