Files
DOMPurify/test/happydom-node-runner.js
Cure53andGitHub 54c6c1bf2a fix: better handing of TT policy wipes & nodeName detection (#1443)
* fix: attempting to fix an issue with nodeName checks on happy-dom

* test: added happy-dom tests but just so we have them, too broken still

* fix: implemented better handling of Trusted Type policy wipes via config

* fix: further hardened the TT-related attack surface and added tests

* fix: hardened IN_PLACE a bit further against exotic elements
test: added test-coverage for IN_PLACE and DOM clobbering
2026-06-06 11:37:42 +02:00

25 lines
480 B
JavaScript

/* jshint node: true, esnext: true */
/* global QUnit */
'use strict';
global.QUnit = require('qunit');
const qunitTap = require('qunit-tap');
const argument = process.argv[2];
qunitTap(QUnit, (line) => {
if (/^not ok/.test(line)) {
process.exitCode = 1;
return console.log('\n', line);
}
if (argument === '--dot') {
return process.stdout.write('.');
}
console.log(line);
});
const startQUnit = require('./happydom-node');
startQUnit().then(() => {});