From a1cbe45a7add719331dce746eb8603d5b7dada33 Mon Sep 17 00:00:00 2001 From: Schalk Neethling Date: Sat, 8 Aug 2026 22:14:11 +0200 Subject: [PATCH 1/6] Validate spec URL fragments with @webref/xref Check the fragment of every spec URL against the definition and heading anchors that w3c/webref crawls, using the same rules as BCD's spec_url linter (skip fragment-less URLs, strip text fragments, lookup with series: true and standing: good). Unknown fragments warn without failing the build while existing data is cleaned up; flip fragmentErrorsAreFatal to make them errors. npm run test:specs -- --report additionally writes a self-contained HTML report of every fragment check to reports/spec-fragments.html. Progress on #84 Co-Authored-By: Claude Fable 5 --- .gitignore | 3 + .prettierignore | 1 + package-lock.json | 8 +++ package.json | 1 + scripts/spec-fragments.ts | 60 ++++++++++++++++ scripts/specs.ts | 145 ++++++++++++++++++++++++++++++++++++-- scripts/webref-xref.d.ts | 29 ++++++++ 7 files changed, 240 insertions(+), 7 deletions(-) create mode 100644 scripts/spec-fragments.ts create mode 100644 scripts/webref-xref.d.ts diff --git a/.gitignore b/.gitignore index bede255a91d..96c7dfd7cfb 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,6 @@ data.proposed.json # Ignore files created & used by pages & 11ty /_site/** + +# Local spec URL fragment reports (npm run test:specs -- --report) +reports/ diff --git a/.prettierignore b/.prettierignore index 4d3b79a7e8c..37a0b11137d 100644 --- a/.prettierignore +++ b/.prettierignore @@ -14,3 +14,4 @@ towards-features.md /features/draft /scripts/schema.ts /scripts/specs.ts +/reports diff --git a/package-lock.json b/package-lock.json index 738f3aabf60..cc69f3308e0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20,6 +20,7 @@ "@types/caniuse-lite": "^1.0.4", "@types/node": "^22.20.1", "@types/yargs": "^17.0.35", + "@webref/xref": "^1.2.11", "ajv": "^8.20.0", "caniuse-lite": "^1.0.30001810", "cheerio": "^1.2.0", @@ -1449,6 +1450,13 @@ "integrity": "sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g==", "dev": true }, + "node_modules/@webref/xref": { + "version": "1.2.11", + "resolved": "https://registry.npmjs.org/@webref/xref/-/xref-1.2.11.tgz", + "integrity": "sha512-f7Floj+3w5p0uNcpgWDgSeOlZzjYtVF5uRYowHK8yovJLxxbRUjS4ZHNeP8Zpf45t3c6bMm6Ac5q9Tdko4t+MA==", + "dev": true, + "license": "MIT" + }, "node_modules/abort-controller": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", diff --git a/package.json b/package.json index 050bdc95a49..855f5d3eeb9 100644 --- a/package.json +++ b/package.json @@ -48,6 +48,7 @@ "@types/caniuse-lite": "^1.0.4", "@types/node": "^22.20.1", "@types/yargs": "^17.0.35", + "@webref/xref": "^1.2.11", "ajv": "^8.20.0", "caniuse-lite": "^1.0.30001810", "cheerio": "^1.2.0", diff --git a/scripts/spec-fragments.ts b/scripts/spec-fragments.ts new file mode 100644 index 00000000000..fbe5c902726 --- /dev/null +++ b/scripts/spec-fragments.ts @@ -0,0 +1,60 @@ +// Fragment-level validation of spec URLs against @webref/xref, which knows the +// definition and heading anchors of every spec crawled by w3c/webref. +// +// The rules deliberately mirror BCD's spec_url linter so that both projects +// accept the same URLs. See: +// https://github.com/mdn/browser-compat-data/blob/main/lint/linter/test-spec-urls.js +// https://github.com/web-platform-dx/web-features/issues/84 + +import * as xref from "@webref/xref"; +import type { XrefMatch, LookupOptions } from "@webref/xref"; + +type LookupFunction = (url: string, options?: LookupOptions) => XrefMatch[]; + +export type FragmentResult = + | { status: "valid"; matches: XrefMatch[] } + | { status: "invalid" } + | { status: "skipped"; reason: "no-fragment" | "text-fragment-only" }; + +let initialized = false; + +/** + * Check a spec URL's fragment against webref's known anchors. Returns the + * matching webref entries on success (each names its spec's shortname), rather + * than a bare boolean, so callers can cross-reference with web-specs. + * + * Page-level validity (is this a spec web-features may cite at all?) is out of + * scope here; check that separately against web-specs. + */ +export function validateSpecFragment( + url: URL, + lookup: LookupFunction = xref.lookup, +): FragmentResult { + if (lookup === xref.lookup && !initialized) { + xref.setup(); + initialized = true; + } + + let target = new URL(url); + + if (!target.hash) { + return { status: "skipped", reason: "no-fragment" }; + } + + // A text fragment (`#:~:text=…`) can't be validated, but a section id + // preceding it (`#section:~:text=…`) can. + if (target.hash.includes(":~:text=")) { + const sectionId = target.hash.split(":~:text=")[0].replace(/^#/, ""); + if (!sectionId) { + return { status: "skipped", reason: "text-fragment-only" }; + } + target = new URL(target); + target.hash = sectionId; + } + + const matches = lookup(target.toString(), { + series: true, + standing: "good", + }); + return matches.length ? { status: "valid", matches } : { status: "invalid" }; +} diff --git a/scripts/specs.ts b/scripts/specs.ts index 3a6b638e69e..35171a98613 100644 --- a/scripts/specs.ts +++ b/scripts/specs.ts @@ -1,10 +1,17 @@ import assert from "node:assert/strict"; +import fs from "node:fs"; +import path from "node:path"; import webSpecs from 'web-specs' with { type: 'json' }; import winston from "winston"; import { features } from '../index.ts'; import { isOrdinaryFeatureData } from "../type-guards.ts"; +import { validateSpecFragment, type FragmentResult } from "./spec-fragments.ts"; + +// Fragment mismatches warn instead of failing the build while the existing +// data is cleaned up. Flip to true to make them errors. See issue #84. +const fragmentErrorsAreFatal = false; const logger = winston.createLogger({ level: "warn", @@ -246,18 +253,18 @@ const defaultAllowlist: allowlistItem[] = [ ] ]; -function isOK(url: URL, allowlist: allowlistItem[] = defaultAllowlist) { +function isOK(url: URL, allowlist: allowlistItem[] = defaultAllowlist): "web-specs" | "allowlist" | false { for (const specUrl of specUrls) { if (specUrl.origin === url.origin && specUrl.pathname === url.pathname) { // that is, specUrl and url are the same, with the exception of the hash or query (`search`) string - return true; + return "web-specs"; } } for (const [specUrl, message] of allowlist) { if (specUrl === url.toString()) { logger.warn(`${specUrl}: ${message}`); - return true; + return "allowlist"; } } @@ -274,6 +281,15 @@ function testIsOK() { }; testIsOK(); +function testValidateSpecFragment() { + assert.equal(validateSpecFragment(new URL("https://tc39.es/ecma262/multipage/")).status, "skipped"); + assert.equal(validateSpecFragment(new URL("https://html.spec.whatwg.org/multipage/#:~:text=living%20standard")).status, "skipped"); + assert.equal(validateSpecFragment(new URL("https://html.spec.whatwg.org/multipage/custom-elements.html#custom-elements")).status, "valid"); + assert.equal(validateSpecFragment(new URL("https://html.spec.whatwg.org/multipage/custom-elements.html#custom-elements:~:text=custom")).status, "valid"); + assert.equal(validateSpecFragment(new URL("https://html.spec.whatwg.org/multipage/custom-elements.html#not-a-real-anchor")).status, "invalid"); +}; +testValidateSpecFragment(); + /** * Print an array of potential spec URLs. @@ -291,6 +307,95 @@ function suggestSpecs(bad: URL): void { let checkedFeatures = 0; let checkedSpecs = 0; let errors = 0; +let fragmentWarnings = 0; + +interface FragmentReportRow { + feature: string; + url: string; + result: FragmentResult; +} +const fragmentReport: FragmentReportRow[] = []; + +/** + * Categorize a fragment check result for reporting. Bikeshed's generated + * `#ref-for-…` ids get their own bucket: they're not definition or heading + * ids, so webref doesn't know them, and they're brittle links anyway. + */ +function fragmentCategory({ url, result }: FragmentReportRow): string { + if (result.status === "invalid") { + return new URL(url).hash.startsWith("#ref-for-") ? "invalid (ref-for)" : "invalid"; + } + if (result.status === "skipped") { + return `skipped (${result.reason})`; + } + return "valid"; +} + +/** + * Render the fragment check results as a self-contained HTML report. + */ +function formatFragmentReport(rows: FragmentReportRow[]): string { + const escape = (s: string) => s.replace(/&/g, "&").replace(//g, ">").replace(/"/g, """); + const categories = new Map(); + for (const row of rows) { + const category = fragmentCategory(row); + categories.set(category, (categories.get(category) ?? 0) + 1); + } + const sortedCategories = [...categories.entries()].sort(([a], [b]) => a.localeCompare(b)); + const summary = sortedCategories + .map(([category, count]) => `
${count}
${escape(category)}
`) + .join("\n"); + const options = sortedCategories + .map(([category]) => ``) + .join("\n"); + const tableRows = rows + .map((row) => { + const category = fragmentCategory(row); + const specs = row.result.status === "valid" + ? [...new Set(row.result.matches.map((m) => m.entry.spec))].join(", ") + : ""; + return `${escape(row.feature)}${escape(row.url)}${escape(category)}${escape(specs)}`; + }) + .join("\n"); + return ` + + + +web-features spec URL fragment report + +

Spec URL fragment report

+

Fragment validation of spec URLs against @webref/xref. +See web-platform-dx/web-features#84.

+
${summary}
+ + + +${tableRows} +
FeatureSpec URLResultwebref spec
+ + +`; +} // Ensure every exception in defaultAllowlist is needed for (const [allowedUrl, message] of defaultAllowlist) { @@ -315,16 +420,42 @@ for (const [id, data] of Object.entries(features)) { logger.error(`Invalid URL "${spec}" found in spec for "${data.name}"`); errors++; } - if (url && !isOK(url)) { - logger.error(`URL for ${id} not in web-specs: ${url.toString()}`); - suggestSpecs(url); - errors++; + if (url) { + const pageResult = isOK(url); + if (!pageResult) { + logger.error(`URL for ${id} not in web-specs: ${url.toString()}`); + suggestSpecs(url); + errors++; + } else if (pageResult === "web-specs") { + // Allowlisted specs aren't in webref, so only web-specs + // matches get their fragment checked. + const result = validateSpecFragment(url); + fragmentReport.push({ feature: id, url: url.toString(), result }); + if (result.status === "invalid") { + logger.warn(`Unknown fragment in spec URL for ${id}: ${url.toString()}\nCheck that the fragment (#) is a definition or heading id in the spec, or link a more current anchor.`); + fragmentWarnings++; + if (fragmentErrorsAreFatal) { + errors++; + } + } + } } checkedSpecs++; } checkedFeatures++; } +if (process.argv.includes("--report")) { + const reportPath = path.join(import.meta.dirname, "..", "reports", "spec-fragments.html"); + fs.mkdirSync(path.dirname(reportPath), { recursive: true }); + fs.writeFileSync(reportPath, formatFragmentReport(fragmentReport)); + console.log(`\nFragment report written to ${path.relative(process.cwd(), reportPath)}`); +} + +if (fragmentWarnings) { + console.log(`\n${fragmentWarnings} spec URL(s) have fragments unknown to @webref/xref (warnings only, see https://github.com/web-platform-dx/web-features/issues/84)`); +} + if (errors) { console.log(`\nChecked ${checkedSpecs} specs in ${checkedFeatures} features, found ${errors} error(s)`); process.exit(1); diff --git a/scripts/webref-xref.d.ts b/scripts/webref-xref.d.ts new file mode 100644 index 00000000000..7547cb4d5b7 --- /dev/null +++ b/scripts/webref-xref.d.ts @@ -0,0 +1,29 @@ +// Type declarations for @webref/xref, which ships no types. +// API: https://github.com/w3c/webref/blob/main/packages-auto/xref/README.md +declare module "@webref/xref" { + interface XrefEntry { + id?: string; + href: string; + title?: string; + linkingText?: string[]; + type?: string; + spec: string; + version: "nightly" | "release"; + } + + interface XrefMatch { + source: "dfns" | "headings"; + entry: XrefEntry; + } + + interface LookupOptions { + standing?: "good" | "pending" | "discontinued"; + version?: "nightly" | "release"; + series?: boolean; + } + + function setup(rootFolder?: string): void; + function lookup(url: string, options?: LookupOptions): XrefMatch[]; + + export { setup, lookup, XrefEntry, XrefMatch, LookupOptions }; +} From 2997415a9cfd2b28f97acd4b2dd00b3dd1251daa Mon Sep 17 00:00:00 2001 From: Schalk Neethling Date: Fri, 4 Sep 2026 12:35:39 +0200 Subject: [PATCH 2/6] Relink spec URL fragments that webref no longer knows Update 28 spec URLs whose fragments are legacy alias ids, renamed anchors, or moved definitions, so they target ids that w3c/webref records. Follows the approach suggested in #84: update links to current ids rather than asking webref to carry legacy aliases. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01Fj5YkGFX6Jy2Db9UWHwxcE --- features/anchor-positioning-transforms.yml | 2 +- features/anchor-positioning.yml | 2 +- features/array-iterators.yml | 2 +- features/background-attachment.yml | 2 +- features/calc.yml | 2 +- features/contain-inline-size.yml | 2 +- features/custom-ellipses.yml | 2 +- features/display-animation.yml | 2 +- features/font-family-math.yml | 2 +- features/font-family-system.yml | 2 +- features/font-family-ui.yml | 2 +- features/gif.yml | 2 +- features/hyphens.yml | 2 +- features/indeterminate.yml | 2 +- features/intl.yml | 2 +- features/iterators.yml | 2 +- features/javascript.yml | 2 +- features/manifest-localization.yml | 2 +- features/map.yml | 4 ++-- features/parse-html-unsafe.yml | 2 +- features/performancetiming.yml | 4 ++-- features/promise.yml | 2 +- features/scope.yml | 2 +- features/text-fit.yml | 2 +- features/typed-array-iterators.yml | 2 +- features/typed-arrays.yml | 1 - features/wasm-bigint.yml | 2 +- 27 files changed, 28 insertions(+), 29 deletions(-) diff --git a/features/anchor-positioning-transforms.yml b/features/anchor-positioning-transforms.yml index b1ace1ed753..f57404fcf74 100644 --- a/features/anchor-positioning-transforms.yml +++ b/features/anchor-positioning-transforms.yml @@ -1,5 +1,5 @@ name: Anchor positioning transforms description: Anchor positioned elements take CSS transforms on their anchor elements into account. -spec: https://drafts.csswg.org/css-anchor-position-1/#anchoring +spec: https://drafts.csswg.org/css-anchor-position-1/#anchor-positioning compat_features: - css.properties.anchor-name.position_after_layout diff --git a/features/anchor-positioning.yml b/features/anchor-positioning.yml index 0c0eee06bd2..640735dfda0 100644 --- a/features/anchor-positioning.yml +++ b/features/anchor-positioning.yml @@ -1,6 +1,6 @@ name: Anchor positioning description: Anchor positioning places an element based on the position of another element. For example, you can place a tooltip next to the content it references. -spec: https://drafts.csswg.org/css-anchor-position-1/#anchoring +spec: https://drafts.csswg.org/css-anchor-position-1/#anchor-positioning caniuse: css-anchor-positioning compat_features: - api.CSSPositionTryDescriptors diff --git a/features/array-iterators.yml b/features/array-iterators.yml index 5cbea431c33..9ebfcc13486 100644 --- a/features/array-iterators.yml +++ b/features/array-iterators.yml @@ -1,7 +1,7 @@ name: Array iterators description: Arrays are iterable with the `for … of` statement and enumerable with the methods `entries()`, `keys()`, and `values()`. spec: - - https://tc39.es/ecma262/multipage/indexed-collections.html#sec-array.prototype-@@iterator + - https://tc39.es/ecma262/multipage/indexed-collections.html#sec-array.prototype-%25symbol.iterator%25 - https://tc39.es/ecma262/multipage/indexed-collections.html#sec-array.prototype.entries - https://tc39.es/ecma262/multipage/indexed-collections.html#sec-array.prototype.keys - https://tc39.es/ecma262/multipage/indexed-collections.html#sec-array.prototype.values diff --git a/features/background-attachment.yml b/features/background-attachment.yml index 22623988d41..7bf64afeada 100644 --- a/features/background-attachment.yml +++ b/features/background-attachment.yml @@ -1,6 +1,6 @@ name: background-attachment description: The `background-attachment` CSS property sets whether an element's background image or gradient moves as the element scrolls. -spec: https://drafts.csswg.org/css-backgrounds-3/#the-background-attachment +spec: https://drafts.csswg.org/css-backgrounds-3/#background-attachment group: background caniuse: background-attachment # TODO: https://github.com/web-platform-dx/web-features/issues/1971 diff --git a/features/calc.yml b/features/calc.yml index 9a32137ab6f..716ba7142f2 100644 --- a/features/calc.yml +++ b/features/calc.yml @@ -1,6 +1,6 @@ name: calc() description: The `calc()` CSS function computes mathematical expressions such a `calc(100%/3 - 1em)`. -spec: https://drafts.csswg.org/css-values-3/#calc-notation +spec: https://drafts.csswg.org/css-values-3/#funcdef-calc group: css caniuse: calc status: diff --git a/features/contain-inline-size.yml b/features/contain-inline-size.yml index df3e0e07ff9..25c1f2b2947 100644 --- a/features/contain-inline-size.yml +++ b/features/contain-inline-size.yml @@ -1,6 +1,6 @@ name: Inline-size containment description: "The `contain: inline-size` CSS declaration prevents the element's inline dimension from being set by the element's contents. This permits the browser to avoid slower layout calculations." -spec: https://drafts.csswg.org/css-contain-3/#containment-inline-size +spec: https://drafts.csswg.org/css-contain-2/#containment-inline-size group: containment compat_features: - css.properties.contain.inline-size diff --git a/features/custom-ellipses.yml b/features/custom-ellipses.yml index 22f93597022..1387c5019eb 100644 --- a/features/custom-ellipses.yml +++ b/features/custom-ellipses.yml @@ -1,5 +1,5 @@ name: Custom ellipses description: The `text-overflow` CSS property with a string value sets the string representing clipped text. -spec: https://drafts.csswg.org/css-overflow-4/#overflow-string +spec: https://drafts.csswg.org/css-overflow-4/#text-overflow compat_features: - css.properties.text-overflow.string diff --git a/features/display-animation.yml b/features/display-animation.yml index 3ef4c1c6fab..401d8245b1a 100644 --- a/features/display-animation.yml +++ b/features/display-animation.yml @@ -2,5 +2,5 @@ name: display animation description: "You can animate elements between `display: none` and any other `display` value or animate between `content-visibility: hidden` and any other `content-visibility` value. This also applies to transitions." spec: - https://drafts.csswg.org/css-display-4/#display-animation - - https://drafts.csswg.org/css-contain-3/#content-visibility-animation + - https://drafts.csswg.org/css-contain-2/#content-visibility-animation group: css diff --git a/features/font-family-math.yml b/features/font-family-math.yml index c004f4e5a23..f547df5cfd0 100644 --- a/features/font-family-math.yml +++ b/features/font-family-math.yml @@ -1,6 +1,6 @@ name: Math font family description: "The `font-family: math` CSS declaration uses the browser default font face for displaying mathematical expressions." -spec: https://drafts.csswg.org/css-fonts-4/#math-def +spec: https://drafts.csswg.org/css-fonts-4/#valdef-font-family-math # TODO: https://github.com/web-platform-dx/web-features/issues/1971 # Status changed: https://github.com/web-platform-dx/web-features/pull/3867 # 2026-03-16 — low → false — Upstream data incorrectly reported that `font-family: math` shipped in Firefox 145. It actually shipped in Firefox 149. diff --git a/features/font-family-system.yml b/features/font-family-system.yml index 7e64a7be344..ce11c5dcb0d 100644 --- a/features/font-family-system.yml +++ b/features/font-family-system.yml @@ -1,6 +1,6 @@ name: System font description: "The `font-family: system-ui` CSS declaration uses the operating system default font for text." -spec: https://drafts.csswg.org/css-fonts-4/#system-ui-def +spec: https://drafts.csswg.org/css-fonts-4/#valdef-font-family-system-ui caniuse: font-family-system-ui compat_features: - css.properties.font-family.system-ui diff --git a/features/font-family-ui.yml b/features/font-family-ui.yml index aa71aae75ec..b9d684edb31 100644 --- a/features/font-family-ui.yml +++ b/features/font-family-ui.yml @@ -1,6 +1,6 @@ name: UI fonts description: The `ui-serif`, `ui-sans-serif`, `ui-monospace` and `ui-rounded` values for the `font-family` CSS property use device-default user interface fonts for text. -spec: https://drafts.csswg.org/css-fonts-4/#ui-serif-def +spec: https://drafts.csswg.org/css-fonts-4/#valdef-font-family-ui-serif caniuse: extended-system-fonts group: fonts compat_features: diff --git a/features/gif.yml b/features/gif.yml index 3067136431b..f058fe06206 100644 --- a/features/gif.yml +++ b/features/gif.yml @@ -1,6 +1,6 @@ name: GIF description: The GIF (Graphics Interchange Format) image format is a raster graphics file format with animation and lossless compression. spec: - - https://www.w3.org/Graphics/GIF/spec-gif89a.txt#top + - https://www.w3.org/Graphics/GIF/spec-gif89a.txt compat_features: - mediatypes.image.gif diff --git a/features/hyphens.yml b/features/hyphens.yml index 329d00751e8..4c8a261d947 100644 --- a/features/hyphens.yml +++ b/features/hyphens.yml @@ -2,7 +2,7 @@ name: Hyphenation # The description should be revisited when support notes are added. # https://github.com/web-platform-dx/web-features/issues/915 description: The `hyphens` CSS property controls when long words are broken by line wrapping. Although called `hyphens`, the property applies to word-splitting behavior across languages, such as customary spelling changes or the use of other characters. Support for non-English languages varies significantly. -spec: https://drafts.csswg.org/css-text-3/#hyphens-property +spec: https://drafts.csswg.org/css-text-3/#propdef-hyphens caniuse: css-hyphens group: css compat_features: diff --git a/features/indeterminate.yml b/features/indeterminate.yml index 75db3eac555..bd8487cde50 100644 --- a/features/indeterminate.yml +++ b/features/indeterminate.yml @@ -1,7 +1,7 @@ name: ":indeterminate" description: The `:indeterminate` CSS pseudo-class selects any form element whose state is indeterminate, such as checkboxes that have been set to an indeterminate state with JavaScript, or radio buttons which are members of a group in which all radio buttons are unchecked. spec: - - https://drafts.csswg.org/selectors-4/#indeterminate + - https://drafts.csswg.org/selectors-4/#indeterminate-pseudo - https://html.spec.whatwg.org/multipage/semantics-other.html#selector-indeterminate group: forms caniuse: css-indeterminate-pseudo diff --git a/features/intl.yml b/features/intl.yml index 755e5af74b8..7388c756c3a 100644 --- a/features/intl.yml +++ b/features/intl.yml @@ -1,7 +1,7 @@ name: Intl description: "The `Intl` API provides language sensitive string comparison, number formatting, date and time formatting, and more." group: intl -spec: https://tc39.es/ecma402/#introduction +spec: https://tc39.es/ecma402/ caniuse: internationalization status: compute_from: javascript.builtins.Intl diff --git a/features/iterators.yml b/features/iterators.yml index b56d9c21634..2eac4a39486 100644 --- a/features/iterators.yml +++ b/features/iterators.yml @@ -3,7 +3,7 @@ description: The `for...of` loop operates on a sequence of values sourced from a group: iterators snapshot: ecmascript-2015 spec: - - https://tc39.es/ecma262/multipage/control-abstraction-objects.html#sec-%iteratorprototype%-object + - https://tc39.es/ecma262/multipage/control-abstraction-objects.html#sec-%25iterator.prototype%25-object - https://tc39.es/ecma262/multipage/ecmascript-language-statements-and-declarations.html#sec-for-in-and-for-of-statements status: compute_from: javascript.statements.for_of diff --git a/features/javascript.yml b/features/javascript.yml index 2d655aea7cb..6e826a4e2bf 100644 --- a/features/javascript.yml +++ b/features/javascript.yml @@ -1,6 +1,6 @@ name: JavaScript (initial core language support) description: JavaScript is a programming language that runs in browsers, usually through the `