reffy 18.3.2 → 18.4.0

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.3.2",
3
+ "version": "18.4.0",
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.2.0",
40
+ "puppeteer": "24.2.1",
41
41
  "semver": "^7.3.5",
42
- "web-specs": "3.39.0",
42
+ "web-specs": "3.41.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.6",
49
+ "rollup": "4.34.8",
50
50
  "undici": "^7.0.0"
51
51
  },
52
52
  "overrides": {
@@ -289,8 +289,8 @@ export default function (spec, idToHeading = {}) {
289
289
 
290
290
  const shortname = (typeof spec === 'string') ? spec : spec.shortname;
291
291
  switch (shortname) {
292
- case "CSS21":
293
- preProcessCSS21();
292
+ case "CSS2":
293
+ preProcessCSS2();
294
294
  break;
295
295
  case "html":
296
296
  preProcessHTML();
@@ -738,7 +738,15 @@ function preProcessHTML() {
738
738
  });
739
739
  }
740
740
 
741
- function preProcessCSS21() {
741
+ /**
742
+ * CSS 2.1 does not use the definitions data model and needs to be processed
743
+ * to create the right definitions.
744
+ *
745
+ * Note: CSS 2.2 does follow the definitions data model, but does not contain
746
+ * any element that matches the `span.index-def` selector, so the function is
747
+ * a no-op for CSS 2.2 and that's a good thing.
748
+ */
749
+ function preProcessCSS2() {
742
750
  document.querySelectorAll('span.index-def')
743
751
  .forEach(span => {
744
752
  // Definition ID is to be found in a nearby anchor