Checks if JS urls are supported by the HTML Sanitizer API.
function checkSanitizer(html) {
document.body.setHTML(html);
return document.body.querySelector('a').protocol === 'javascript:'
}checkSanitizer('<a href="&#$[i];javascript:foo">test</a>') && log[i];
checkSanitizer('<a href="java&#$[i];script:foo">test</a>') && log[i];
checkSanitizer('<a href="javascript&#$[i];:foo">test</a>') && log[i];Chrome 151.0.7922.110 could not complete this vector.
Firefox 153.0 ran this vector and matched nothing.
Microsoft Edge 151.0.4129.59 could not complete this vector.
Safari 26.5 ran this vector and matched nothing.
Chrome 151.0.7922.109 ran this vector and matched nothing.
Firefox 152.0 could not complete this vector.
Microsoft Edge 150.0.4078.65 ran this vector and matched nothing.