@markuplint/spec-generator 4.0.0 → 4.0.1

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.
Files changed (2) hide show
  1. package/lib/aria.js +6 -1
  2. package/package.json +4 -4
package/lib/aria.js CHANGED
@@ -176,7 +176,12 @@ async function getProps(version, roles) {
176
176
  const { implicitProps } = await getAriaInHtml();
177
177
  const globalStatesAndProperties = new Set($('#global_states li a')
178
178
  .toArray()
179
- .map(el => $(el).attr('href')?.replace('#', ''))
179
+ .map(el => {
180
+ const href = $(el).prop('href');
181
+ const hashIndex = href.indexOf('#');
182
+ const hash = hashIndex === -1 ? undefined : href.slice(hashIndex);
183
+ return hash?.slice(1);
184
+ })
180
185
  .filter((s) => !!s));
181
186
  const arias = [...ariaNameList].sort().map((name) => {
182
187
  const $section = $(`#${name}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@markuplint/spec-generator",
3
- "version": "4.0.0",
3
+ "version": "4.0.1",
4
4
  "description": "Generates @markuplint/html-spec",
5
5
  "repository": "git@github.com:markuplint/markuplint.git",
6
6
  "author": "Yusuke Hirao <yusukehirao@me.com>",
@@ -30,10 +30,10 @@
30
30
  "strip-json-comments": "^5.0.1"
31
31
  },
32
32
  "devDependencies": {
33
- "@markuplint/ml-spec": "4.0.0",
34
- "@markuplint/test-tools": "4.0.0",
33
+ "@markuplint/ml-spec": "4.0.1",
34
+ "@markuplint/test-tools": "4.0.1",
35
35
  "@types/cli-progress": "^3.11.5",
36
36
  "type-fest": "^4.10.2"
37
37
  },
38
- "gitHead": "be4aabe189dc53a717b2fbd58583a03017646251"
38
+ "gitHead": "bf84b391b580a8586fa7acaf56eb2e8114c8e33e"
39
39
  }