File: duplicate-attribute.js

package info (click to toggle)
node-trysound-sax 0.2.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 848 kB
  • sloc: xml: 5,972; javascript: 3,815; makefile: 2
file content (18 lines) | stat: -rw-r--r-- 383 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
require(__dirname).test({
  xml: '<span id="hello" id="there"></span>',
  expect: [
    [ 'opentagstart', {
      name: 'SPAN',
      attributes: {}
    } ],
    [ 'attribute', { name: 'ID', value: 'hello' } ],
    [ 'opentag', {
      name: 'SPAN',
      attributes: { ID: 'hello' },
      isSelfClosing: false
    } ],
    [ 'closetag', 'SPAN' ]
  ],
  strict: false,
  opt: {}
})