You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
309 B
11 lines
309 B
4 years ago
|
var wows = require('vows');
|
||
|
var DOMParser = require('xmldom').DOMParser;
|
||
|
|
||
|
|
||
|
wows.describe('errorHandle').addBatch({
|
||
|
'simple': function() {
|
||
|
var parser = new DOMParser();
|
||
|
var doc = parser.parseFromString('<html><body title="1<2"></body></html>', 'text/html');
|
||
|
console.log(doc+'');
|
||
|
}
|
||
|
}).run();
|