<!DOCTYPE html>
<html>
<body>
<script src="../../resources/js-test.js"></script>
<div id="target"></div>
<script>

description('This tests that -internal- pseudo classes are not exposed');

function runTest() {
    const internalPseudoClasses = [
        ':-internal-direct-focus',
        ':-internal-html-document',
    ];
    for (const pseudo of internalPseudoClasses) {
        shouldThrowErrorName('target.matches("' + pseudo + '")', 'SyntaxError');
    }
    finishJSTest();
}

window.onload = runTest;
</script>
</body>
</html>
