aboutsummaryrefslogtreecommitdiff
path: root/node_modules/sax/test/emoji.js
blob: aa63a21ed49aca4079847d76a7933f189acf74a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// split high-order numeric attributes into surrogate pairs
require(__dirname).test
  ( { xml : '<a>&#x1f525;</a>'
    , expect :
      [ [ 'opentag', { name: 'A', attributes: {}, isSelfClosing: false } ]
      , [ 'text', '\ud83d\udd25' ]
      , [ 'closetag', 'A' ]
      ]
    , strict : false
    , opt : {}
    }
  )