A suite to track Project Diva score statistics and ratings / D4DJ event data.
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.
projectdivar/server/node_modules/xmldom/test/3rd-cases/o3xml.js

22 lines
593 B

var DOMParser = require('xmldom').DOMParser;
require('./mock')
//Compatibility
{
var doc = new DOMParser().parseFromString("<xml/>",'text/xml');
var np = doc.__proto__.__proto__.__proto__;
for(var n in np){
if(/_NODE$/.test(n)){
// console.log(n.replace(/_NODE$/,''),np[n])
np[n.replace(/_NODE$/,'')] = np[n];
}
}
}
require.cache[require.resolve('node-o3-xml')]
= require.cache[require.resolve('./mock')];
require('node-o3-xml').parseFromString = function(xml){
return new DOMParser().parseFromString(xml,'text/xml');
}
require('node-o3-xml/test/test')