13 lines
322 B
JavaScript
13 lines
322 B
JavaScript
|
// split high-order numeric attributes into surrogate pairs
|
||
|
require(__dirname).test
|
||
|
( { xml : '<a>🔥</a>'
|
||
|
, expect :
|
||
|
[ [ 'opentag', { name: 'A', attributes: {}, isSelfClosing: false } ]
|
||
|
, [ 'text', '\ud83d\udd25' ]
|
||
|
, [ 'closetag', 'A' ]
|
||
|
]
|
||
|
, strict : false
|
||
|
, opt : {}
|
||
|
}
|
||
|
)
|