@asamuzakjp/dom-selector 6.4.2 → 6.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +15 -14
- package/src/js/finder.js +3 -2
package/package.json
CHANGED
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
},
|
|
34
34
|
"types": "types/index.d.ts",
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@asamuzakjp/nwsapi": "^2.3.
|
|
36
|
+
"@asamuzakjp/nwsapi": "^2.3.4",
|
|
37
37
|
"bidi-js": "^1.0.3",
|
|
38
38
|
"css-tree": "^3.1.0",
|
|
39
39
|
"is-potential-custom-element-name": "^1.0.1"
|
|
@@ -42,26 +42,27 @@
|
|
|
42
42
|
"@types/css-tree": "^2.3.10",
|
|
43
43
|
"benchmark": "^2.1.4",
|
|
44
44
|
"c8": "^10.1.3",
|
|
45
|
-
"chai": "^5.
|
|
45
|
+
"chai": "^5.2.0",
|
|
46
46
|
"commander": "^13.1.0",
|
|
47
|
-
"esbuild": "^0.
|
|
48
|
-
"eslint": "^9.
|
|
47
|
+
"esbuild": "^0.25.1",
|
|
48
|
+
"eslint": "^9.22.0",
|
|
49
49
|
"eslint-plugin-import-x": "^4.6.1",
|
|
50
|
-
"eslint-plugin-jsdoc": "^50.6.
|
|
50
|
+
"eslint-plugin-jsdoc": "^50.6.6",
|
|
51
51
|
"eslint-plugin-regexp": "^2.7.0",
|
|
52
|
-
"eslint-plugin-unicorn": "^
|
|
53
|
-
"globals": "^
|
|
54
|
-
"happy-dom": "^
|
|
55
|
-
"
|
|
52
|
+
"eslint-plugin-unicorn": "^57.0.0",
|
|
53
|
+
"globals": "^16.0.0",
|
|
54
|
+
"happy-dom": "^17.4.4",
|
|
55
|
+
"jsdom": "^26.0.0",
|
|
56
|
+
"linkedom": "^0.18.9",
|
|
56
57
|
"mocha": "^11.1.0",
|
|
57
|
-
"neostandard": "^0.12.
|
|
58
|
+
"neostandard": "^0.12.1",
|
|
58
59
|
"sinon": "^19.0.2",
|
|
59
|
-
"tsup": "^8.
|
|
60
|
-
"typescript": "^5.
|
|
60
|
+
"tsup": "^8.4.0",
|
|
61
|
+
"typescript": "^5.8.2",
|
|
61
62
|
"wpt-runner": "^6.0.0"
|
|
62
63
|
},
|
|
63
64
|
"overrides": {
|
|
64
|
-
"jsdom": "
|
|
65
|
+
"jsdom": "$jsdom"
|
|
65
66
|
},
|
|
66
67
|
"scripts": {
|
|
67
68
|
"bench": "node benchmark/bench.js",
|
|
@@ -75,5 +76,5 @@
|
|
|
75
76
|
"tsc": "node scripts/index clean --dir=types -i && npx tsc",
|
|
76
77
|
"update-wpt": "git submodule update --init --recursive --remote"
|
|
77
78
|
},
|
|
78
|
-
"version": "6.4.
|
|
79
|
+
"version": "6.4.3"
|
|
79
80
|
}
|
package/src/js/finder.js
CHANGED
|
@@ -1262,7 +1262,7 @@ export class Finder {
|
|
|
1262
1262
|
let writable;
|
|
1263
1263
|
switch (localName) {
|
|
1264
1264
|
case 'textarea': {
|
|
1265
|
-
if (node.
|
|
1265
|
+
if (node.readOnly || node.hasAttribute('readonly') ||
|
|
1266
1266
|
node.disabled || node.hasAttribute('disabled')) {
|
|
1267
1267
|
readonly = true;
|
|
1268
1268
|
} else {
|
|
@@ -1272,7 +1272,7 @@ export class Finder {
|
|
|
1272
1272
|
}
|
|
1273
1273
|
case 'input': {
|
|
1274
1274
|
if (!node.type || KEY_INPUT_EDIT.includes(node.type)) {
|
|
1275
|
-
if (node.
|
|
1275
|
+
if (node.readOnly || node.hasAttribute('readonly') ||
|
|
1276
1276
|
node.disabled || node.hasAttribute('disabled')) {
|
|
1277
1277
|
readonly = true;
|
|
1278
1278
|
} else {
|
|
@@ -1676,6 +1676,7 @@ export class Finder {
|
|
|
1676
1676
|
case 'current':
|
|
1677
1677
|
case 'fullscreen':
|
|
1678
1678
|
case 'future':
|
|
1679
|
+
case 'has-slotted':
|
|
1679
1680
|
case 'modal':
|
|
1680
1681
|
case 'muted':
|
|
1681
1682
|
case 'past':
|