Sha256: 9263f11f0bc31f9d36b1d33aefe559079e5489389764c17eb537949e44a925ca

Contents?: true

Size: 764 Bytes

Versions: 45

Compression:

Stored size: 764 Bytes

Contents

require(__dirname).test({
  xml :
  "<root>"+
    "<child>" +
      "<haha />" +
    "</child>" +
    "<monkey>" +
      "=(|)" +
    "</monkey>" +
  "</root>",
  expect : [
    ["opentag", {
     "name": "ROOT",
     "attributes": {},
     "isSelfClosing": false
    }],
    ["opentag", {
     "name": "CHILD",
     "attributes": {},
     "isSelfClosing": false
    }],
    ["opentag", {
     "name": "HAHA",
     "attributes": {},
     "isSelfClosing": true
    }],
    ["closetag", "HAHA"],
    ["closetag", "CHILD"],
    ["opentag", {
     "name": "MONKEY",
     "attributes": {},
     "isSelfClosing": false
    }],
    ["text", "=(|)"],
    ["closetag", "MONKEY"],
    ["closetag", "ROOT"],
    ["end"],
    ["ready"]
  ],
  strict : false,
  opt : {}
});

Version data entries

45 entries across 45 versions & 3 rubygems

Version Path
ela-4.1.6 node_modules/sax/test/self-closing-child.js
ela-4.1.5 node_modules/sax/test/self-closing-child.js
ela-4.1.4 node_modules/sax/test/self-closing-child.js
ela-4.1.3 node_modules/sax/test/self-closing-child.js
ela-4.1.2 node_modules/sax/test/self-closing-child.js
ela-4.1.1 node_modules/sax/test/self-closing-child.js
ela-4.1.0 node_modules/sax/test/self-closing-child.js
ela-4.0.0 node_modules/sax/test/self-closing-child.js
ela-3.4.3 node_modules/sax/test/self-closing-child.js
ela-3.4.2 node_modules/sax/test/self-closing-child.js
ela-3.4.0 node_modules/sax/test/self-closing-child.js
ela-3.3.1 node_modules/sax/test/self-closing-child.js
ela-3.3.0 node_modules/sax/test/self-closing-child.js
ela-3.2.0 node_modules/sax/test/self-closing-child.js
ela-3.1.1 node_modules/sax/test/self-closing-child.js
ela-3.1.0 node_modules/sax/test/self-closing-child.js
ela-3.0.0 node_modules/sax/test/self-closing-child.js
ela-2.0.0 node_modules/sax/test/self-closing-child.js
ela-1.1.0 node_modules/sax/test/self-closing-child.js
stylus-source-0.54.5 vendor/node_modules/sax/test/self-closing-child.js