@markuplint/selector 5.0.0-alpha.0 → 5.0.0-alpha.2
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/CHANGELOG.md +10 -0
- package/lib/selector.js +9 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [5.0.0-alpha.2](https://github.com/markuplint/markuplint/compare/v5.0.0-alpha.1...v5.0.0-alpha.2) (2026-02-23)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- **selector:** add MathML namespace selector support ([59c385d](https://github.com/markuplint/markuplint/commit/59c385dedb28c0be2fa9fbbb351e8debd0401412))
|
|
11
|
+
|
|
12
|
+
# [5.0.0-alpha.1](https://github.com/markuplint/markuplint/compare/v5.0.0-alpha.0...v5.0.0-alpha.1) (2026-02-22)
|
|
13
|
+
|
|
14
|
+
**Note:** Version bump only for package @markuplint/selector
|
|
15
|
+
|
|
6
16
|
# [5.0.0-alpha.0](https://github.com/markuplint/markuplint/compare/v4.14.1...v5.0.0-alpha.0) (2026-02-20)
|
|
7
17
|
|
|
8
18
|
### Bug Fixes
|
package/lib/selector.js
CHANGED
|
@@ -450,6 +450,15 @@ class SelectorTarget {
|
|
|
450
450
|
}
|
|
451
451
|
break;
|
|
452
452
|
}
|
|
453
|
+
case 'mml': {
|
|
454
|
+
if (el.namespaceURI !== 'http://www.w3.org/1998/Math/MathML') {
|
|
455
|
+
return {
|
|
456
|
+
specificity,
|
|
457
|
+
matched: false,
|
|
458
|
+
};
|
|
459
|
+
}
|
|
460
|
+
break;
|
|
461
|
+
}
|
|
453
462
|
default: {
|
|
454
463
|
throw new InvalidSelectorError(`The ${namespace} namespace is not supported`);
|
|
455
464
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@markuplint/selector",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.2",
|
|
4
4
|
"description": "Extended W3C Selectors matcher",
|
|
5
5
|
"repository": "git@github.com:markuplint/markuplint.git",
|
|
6
6
|
"author": "Yusuke Hirao <yusukehirao@me.com>",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"clean": "tsc --build --clean tsconfig.build.json"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@markuplint/ml-spec": "5.0.0-alpha.
|
|
30
|
+
"@markuplint/ml-spec": "5.0.0-alpha.2",
|
|
31
31
|
"@types/debug": "4.1.12",
|
|
32
32
|
"debug": "4.4.3",
|
|
33
33
|
"postcss-selector-parser": "7.1.1",
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"@types/jsdom": "27.0.0",
|
|
38
38
|
"jsdom": "28.1.0"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "31ccf1e81443ea3f93597d287595211f1823ddcf"
|
|
41
41
|
}
|