Sha256: b8cae043e3601da94d63070bd9f556d77a9a296cc34c4da3a8c868ede0452b71
Contents?: true
Size: 1008 Bytes
Versions: 45
Compression:
Stored size: 1008 Bytes
Contents
// https://github.com/isaacs/sax-js/issues/49 require(__dirname).test ( { xml : "<xml><script>hello world</script></xml>" , expect : [ [ "opentag", { name: "xml", attributes: {}, isSelfClosing: false } ] , [ "opentag", { name: "script", attributes: {}, isSelfClosing: false } ] , [ "text", "hello world" ] , [ "closetag", "script" ] , [ "closetag", "xml" ] ] , strict : false , opt : { lowercasetags: true, noscript: true } } ) require(__dirname).test ( { xml : "<xml><script><![CDATA[hello world]]></script></xml>" , expect : [ [ "opentag", { name: "xml", attributes: {}, isSelfClosing: false } ] , [ "opentag", { name: "script", attributes: {}, isSelfClosing: false } ] , [ "opencdata", undefined ] , [ "cdata", "hello world" ] , [ "closecdata", undefined ] , [ "closetag", "script" ] , [ "closetag", "xml" ] ] , strict : false , opt : { lowercasetags: true, noscript: true } } )
Version data entries
45 entries across 45 versions & 3 rubygems