reffy 18.4.1 → 18.4.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reffy",
3
- "version": "18.4.1",
3
+ "version": "18.4.2",
4
4
  "description": "W3C/WHATWG spec dependencies exploration companion. Features a short set of tools to study spec references as well as WebIDL term definitions and references found in W3C specifications.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -37,16 +37,16 @@
37
37
  "ajv-formats": "3.0.1",
38
38
  "commander": "13.1.0",
39
39
  "fetch-filecache-for-crawling": "5.1.1",
40
- "puppeteer": "24.3.1",
40
+ "puppeteer": "24.4.0",
41
41
  "semver": "^7.3.5",
42
- "web-specs": "3.42.0",
42
+ "web-specs": "3.43.0",
43
43
  "webidl2": "24.4.1"
44
44
  },
45
45
  "devDependencies": {
46
46
  "mocha": "11.1.0",
47
47
  "respec": "35.2.2",
48
48
  "respec-hljs": "2.1.1",
49
- "rollup": "4.34.9",
49
+ "rollup": "4.35.0",
50
50
  "undici": "^7.0.0"
51
51
  },
52
52
  "overrides": {
@@ -341,7 +341,9 @@ export default function (spec, idToHeading = {}) {
341
341
  // (pending a proper dfns curation process, see:
342
342
  // https://github.com/w3c/webref/issues/789)
343
343
  .filter(node => {
344
- const link = node.querySelector('a[href^="http"]');
344
+ const link =
345
+ node.querySelector('a[href^="http"]') ??
346
+ node.closest('a[href^="http"]');
345
347
  return !link ||
346
348
  (node.textContent.trim() !== link.textContent.trim()) ||
347
349
  (link.href === 'https://www.w3.org/TR/CSS2/syndata.html#vendor-keywords');