← v157/add-javascripturls-option-to-sanitizerconfig-and-sanitizer · conformance
critique · rev 1
v157/add-javascripturls-option-to-sanitizerconfig-and-sanitizer
rubric
| dimension | score | severity | evidence |
|---|---|---|---|
| factual-source-fidelity | 5/5 | info | IDL and method steps quoted verbatim from the HTML living standard fetched 2026-11-01 (dynamic-markup-insertion multipage: SanitizerConfig member, setJavascriptURLs steps incl. the changed-state boolean return, canonicalization permissive-default step, safe-default table javascriptURLs false, removeUnsafe force-to-false steps, navigating-URL-attributes check); history from whatwg/html #12686 and merged PR #12898; Chrome state from the ChromeStatus API record (milestone 157, Finch SanitizerJavascriptURLs) and runtime_enabled_features.json5 (SanitizerAPI stable; no dedicated flag entry — stated, not guessed). |
| milestone-mapping | 5/5 | info | Feature id 5169798320357376 confirmed under 'Enabled by default' in the milestone=157 listing (fetched 2026-11-01); slug derived from the exact listing name per invariant #1. |
| completeness | 5/5 | info | The change's whole developer-facing surface is two items — the SanitizerConfig.javascriptURLs member and Sanitizer.setJavascriptURLs() — both inventoried with nine-dimension coverage on the overview (member defaults incl. the safe-vs-permissive split, setter return semantics, sanitization-algorithm effects, removeUnsafe interaction, exposure, examples, compat, security). reference-contract.json claims implementation-sufficient with 2 items and 11 sources. |
| explanation-quality | 5/5 | info | The page centres the two non-obvious contracts: the setter's boolean means changed-not-success, and an omitted member defaults permissively for unsafe methods (the migration hazard called out in security). |
| examples | 4/5 | minor | Four call shapes covering the motivating case, dictionary form, return-value semantics and get() inspection, labelled gendn-authored; not executed locally (environment Chrome predates 157). The embedded showcase playground runs the real API and demonstrates the same contracts live. |
| browser-compat-fallbacks | 5/5 | info | BCD's setJavascriptURLs subfeature exists but records version_added false — the freshness gap vs the 157 listing is shown, not smoothed; host-API Baseline limited (Chrome 146/Firefox 148/no Safari) given for orientation; feature-detection snippet provided. |
| links-validity | 5/5 | info | All non-GitHub links curl-verified 200 on 2026-11-01 (incl. the MDN 404 for setJavascriptURLs cited AS a 404); spec anchors verified present in the fetched multipage source; zero unlinked source labels; target=_blank rel=noopener throughout. |
| accessibility | 4/5 | info | Single h1, sequential h2s, th scope on tables, thead on data tables, role=note baseline banner with aria-label, iframe title, keyboard-scrollable table wrappers (tabindex=0 role=region aria-label), design-system color variables (AA). |
| responsive-ux | 5/5 | info | Matrix pass 2026-11-01: Playwright headless Chromium 1280x800 + 360x740 DPR2 touch, full-page scrolled segments read; hOverflow=0 both classes, zero console errors, zero failed requests; conformance suite GREEN. |
| showcase-demo-relationship | 5/5 | info | Embeds the showcase javascript-url-playground concept (HEAD 200) with the mandatory sandbox/referrerpolicy posture; three sibling concepts linked additively; the embedded demo's own banner text corroborates the page's central claim (the previously-inexpressible setHTMLUnsafe + javascriptURLs:false combination). |
modern-web-guidance consulted
- responsive data table without horizontal overflow on mobile reference page — Semantic table with thead/th scope; scrollable wrapper with tabindex="0" role="region" and an accessible name. (Applied: all four doc-tables wrapped in .table-wrap with tabindex/role/aria-label; three-column compat table verified scrollable and legible at 360px (0px document overflow).)
- embed cross-origin iframe securely sanitize javascript urls XSS — Treat third-party embeds as untrusted (sandbox + referrer limits); document XSS vectors precisely rather than generically. (Applied: gendn-kjq sandbox/referrerpolicy posture on the embed; the security section names the concrete vector (javascript: URLs on navigating attributes) and the concrete hazard (permissive default on unsafe methods) with spec quotes.)
- embedding third party iframe lazy loading performance — Defer offscreen/heavy embeds. (Applied: loading="lazy" iframe below the examples fold; no other third-party content.)
open questions
- Whether Chrome 157 stable ships the option default-on everywhere or behind the SanitizerJavascriptURLs Finch rollout (the record carries a Finch name; no dedicated runtime flag exists to check).
- Whether MDN will document javascriptURLs on its SanitizerConfig/Sanitizer pages soon — when it does, this page should become an MDN stub per the project's no-duplication rule.
- WPT coverage for the option (sanitizer-api tests) was not enumerated this run.
follow-up goals
- [high · targeted-fix] When MDN documents javascriptURLs/setJavascriptURLs (the method URL currently 404s), convert this page to an honest MDN stub per project policy, preserving the route and identity.
- [medium · targeted-fix] When BCD records shipped versions for the setJavascriptURLs subfeature, replace the interim milestone-sourced cells with BCD per-version rows.
- [medium · targeted-fix] Execute the examples (incl. the setter return-value contract) against Chrome 157+ or the WPT sanitizer-api suite and de-hedge the examples note.