Skip to content

Commit

Permalink
Fixing #text and #cdata section outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
nagaozen committed Dec 23, 2014
1 parent d75a4c9 commit a46bf8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/axe/classes/Parsers/json2.asp
Expand Up @@ -851,9 +851,9 @@ if(!JSON) {
} else {
xml.push(">");
for(var i = 0, len = childs.length; i < len; i++) {
if(p === "#text")
if(childs[i] === "#text")
{ xml.push(__sanitize(o[childs[i]])); }
else if(p === "#cdata")
else if(childs[i] === "#cdata")
{ xml.push("<![CDATA[{code}]]>".substitute({"code": o[childs[i]].toString()})); }
else if(p.charAt(0) !== "@")
{ xml.push(__toXML(o[childs[i]], childs[i])); }
Expand Down

0 comments on commit a46bf8d

Please sign in to comment.