@markuplint/selector 5.0.0-alpha.1 → 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 CHANGED
@@ -3,6 +3,12 @@
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
+
6
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)
7
13
 
8
14
  **Note:** Version bump only for package @markuplint/selector
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.1",
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.1",
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": "78a295e73a097a1ce09c777c06fa21ab68136387"
40
+ "gitHead": "31ccf1e81443ea3f93597d287595211f1823ddcf"
41
41
  }