We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
You have incorrect coding of the text of the node and attribute.
Your code (dom.js):
function _xmlEncoder(c){ return c == '<' && '<' || c == '>' && '>' || c == '&' && '&' || c == '"' && '"' || '&#'+c.charCodeAt()+';' } ... case ATTRIBUTE_NODE: return buf.push(' ',node.name,'="',node.value.replace(/[<&"]/g,_xmlEncoder),'"'); case TEXT_NODE: return buf.push(node.data.replace(/[<&]/g,_xmlEncoder));
My code (dom.js):
function _xmlEncoder(c) { return c == '<' && '<' || c == '>' && '>' || c == '&' && '&' || c == '"' && '"' || c == "'" && '''; } ... case ATTRIBUTE_NODE: return buf.push(' ',node.name,'="',node.value.replace(/[&"<>\']/g,_xmlEncoder),'"'); case TEXT_NODE: return buf.push(node.data.replace(/[&"<>\']/g,_xmlEncoder));
The text was updated successfully, but these errors were encountered:
No branches or pull requests
You have incorrect coding of the text of the node and attribute.
Your code (dom.js):
My code (dom.js):
The text was updated successfully, but these errors were encountered: