Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /var/www/html/queuepro/node_modules/desandro-matches-selector/ drwxrwxr-x | |
| Viewing file: Select action/file-type: test( 'matchesSelector', function() {
equal( typeof matchesSelector, 'function', 'typeof is function' );
var alpha = document.getElementById('alpha');
equal( matchesSelector( alpha, '#alpha' ), true, '[#alpha] matches #alpha' );
equal( matchesSelector( alpha, '.item' ), true, '[#alpha] matches .item' );
equal( matchesSelector( alpha, 'div' ), true, '[#alpha] matches div' );
equal( matchesSelector( alpha, 'p' ), false, '[#alpha] does not match p' );
equal( matchesSelector( alpha, '.baz' ), false, '[#alpha] does not match .baz' );
equal( matchesSelector( alpha, '#alpha.item' ), true, '[#alpha] matches #alpha.item' );
equal( matchesSelector( alpha, '#alpha, foo'), true, '[#alpha] matches #alpha, foo' );
equal( matchesSelector( alpha, 'foo, .item'), true, '[#alpha] matches foo, .item' );
// orphaned elem
var beta = document.createElement('div');
beta.id = 'beta';
beta.className = 'foo bar';
equal( matchesSelector( beta, 'div' ), true, '[#beta] matches div' );
equal( matchesSelector( beta, '#beta' ), true, '[#beta] matches #beta' );
equal( matchesSelector( beta, '.bar' ), true, '[#beta] matches .bar' );
equal( matchesSelector( beta, 'p' ), false, '[#beta] does not match p' );
equal( matchesSelector( beta, '.baz' ), false, '[#beta] does not match .baz' );
equal( matchesSelector( beta, '#beta.bar' ), true, '[#alpha] matches #alpha.item' );
equal( matchesSelector( beta, '#beta, qux' ), true, '[#beta] matches #beta, qux' );
equal( matchesSelector( beta, '.qux, .bar'), true, '[#alpha] matches .qux, .bar' );
});
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0184 ]-- |