René's URL Explorer Experiment


Title: id(web/editor): task_list parseDOM reads el.start unvalidated — the #2005 ordered_list fix does not cover ordered task lists; fractional/negative starts save as bullet lists, hex/scientific starts are reinterpreted · Issue #4100 · developing-today/code · GitHub

Open Graph Title: id(web/editor): task_list parseDOM reads el.start unvalidated — the #2005 ordered_list fix does not cover ordered task lists; fractional/negative starts save as bullet lists, hex/scientific starts are reinterpreted · Issue #4100 · developing-today/code

X Title: id(web/editor): task_list parseDOM reads el.start unvalidated — the #2005 ordered_list fix does not cover ordered task lists; fractional/negative starts save as bullet lists, hex/scientific starts are reinterpreted · Issue #4100 · developing-today/code

Description: Problem In the id web editor, the task_list node's parseDOM rule for

    reads the list start from the DOM's own el.start reflection instead of the validated parseOrderedListStart helper that #2005 / PR #4078 added for the sibling order...

    Open Graph Description: Problem In the id web editor, the task_list node's parseDOM rule for

      reads the list start from the DOM's own el.start reflection instead of the validated parseOrderedListStart helper that #200...

      X Description: Problem In the id web editor, the task_list node's parseDOM rule for <ol> reads the list start from the DOM's own el.start reflection instead of the validated parseOrderedListStart he...

      Opengraph URL: https://github.com/developing-today/code/issues/4100

      X: @github

      direct link

      Domain: github.com

      IPv4 address: 140.82.113.3


      Hey, it has json ld scripts:
      {"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"id(web/editor): task_list parseDOM reads el.start unvalidated — the #2005 ordered_list fix does not cover ordered task lists; fractional/negative starts save as bullet lists, hex/scientific starts are reinterpreted","articleBody":"## Problem\n\nIn the `id` web editor, the `task_list` node's `parseDOM` rule for `\u003col>` reads the list start from the DOM's own `el.start` reflection instead of the validated `parseOrderedListStart` helper that #2005 / PR #4078 added for the sibling `ordered_list` rule in the same file — so ordered **task** lists still admit every start value that fix was created to reject:\n\n- `pkgs/id/web/src/editor.ts:210-218` — both branches of the task_list `\u003col>` rule return `{ order: el.start }`. `el.start` is whatever the DOM implementation makes of the raw attribute; nothing checks it is a plain non-negative decimal integer.\n- `pkgs/id/web/src/editor.ts:46-57,118` — `parseOrderedListStart` (plain `\\d+`, safe-integer, fallback 1) is applied only to `ordered_list`. The `task_list` attrs (`editor.ts:203`) declare `order: { default: null }` with no validation.\n- `pkgs/id/src/web/markdown.rs:4378` — on save, the codec reads task_list `attrs.order` via `as_u64()`: a negative or fractional order reads as `None`, and the list is rebuilt as a **bullet** task list (markdown.rs:4379-4390). A pasted ordered task list silently loses its ordering on save.\n- `pkgs/id/web/src/editor.ts:220-227` — the task_list `toDOM` emits `start=\"\u003corder>\"` for any order ≠ 1, so a stored `-3` or `2.5` round-trips into the rendered HTML verbatim until the save drops the ordering entirely.\n\n## Verified this run (2026-11-01, main `ceba688a`; laptop clone at `7a0da2fc`, `editor.ts` md5 `82283862fb30369b0bc9864a49c2568d` identical on both)\n\nProbe on the laptop (`~/git/fleet/probe-2026-11-01-laneA-tasklist-start/`, happy-dom — the DOM implementation of the repo's own test suite, `pkgs/id/web/vitest.config.ts` — reading `el.start` exactly as editor.ts:214/216 does, against `parseOrderedListStart`, the helper copied verbatim):\n\n| start attr | task_list `el.start` → saves as | ordered_list `parseOrderedListStart` |\n|---|---|---|\n| (absent) | 1 → ordered from 1 | 1 |\n| `5` / `0` / `42` | 5 / 0 / 42 → preserved | 5 / 0 / 42 |\n| `2.5` | 2.5 → **bullet** (as_u64 None) | 1 |\n| `-3` | -3 → **bullet** (as_u64 None) | 1 |\n| `\"\"` | 0 → ordered from 0 | 1 |\n| `0x10` | 16 → **saved as 16** (reinterpreted) | 1 |\n| `1e3` | 1000 → **saved as 1000** (reinterpreted) | 1 |\n| `9007199254740993` | 9007199254740992 → saved rounded | 1 |\n\nIn a spec-compliant browser `el.start` is the IDL signed-long reflection, whose details differ (it truncates `2.5` to 2, parses `0x10` as 0, clamps huge values to 2147483647) — but it still bypasses the fallback-to-1 rule, still truncates instead of rejecting, and still admits negatives that the u64 codec cannot represent. Neither reflection is the validated read #2005 established.\n\n## Why it matters\n\nThis is the residual half of #2005 in the same schema: the plain ordered list was hardened, the ordered task list — which shares the `\u003col start>` surface and the same u64 save codec — was not. Pasted web content is the realistic source (task lists copied from rendered HTML carry whatever `start` the source page had), and the failure shapes are the two #2005/#2010 classics: silent reinterpretation (`0x10` → 16) and silent loss on save (negative/fractional → bullet list). Distinct from #2010 (image width/height `Number()` in the same file) — different node, different expression, different downstream failure.\n\n## Acceptance criteria\n\n- [ ] The task_list `\u003col>` parseDOM rule derives `order` from `parseOrderedListStart(el.getAttribute(\"start\"))` (or an equivalent validated read): only a plain non-negative decimal integer within safe range is preserved (0 included); malformed, fractional, negative, hex/scientific, empty, or unsafe values fall back to 1, exactly as `ordered_list` — in both branches (class-matched and checkbox-detected).\n- [ ] Tests mirroring the #2005 `ordered_list start parsing` block cover the task_list rule's getAttrs for the same value set (`5`, `0`, `42` preserved; `abc`, `2.5`, `0x10`, `1e3`, empty, `-3`, `9007199254740993` → 1; absent → 1).\n- [ ] The editor test suite passes (`bun run test` in `pkgs/id/web` or CI equivalent).\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-11-02T00:53:45Z","url":"https://github.com/developing-today/code/issues/4100"}

      react-profiling0
      react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
      route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
      route-controllervoltron_issues_fragments
      route-actionissue_layout
      fetch-noncev2:35c80e20-decc-7d6c-7f6e-7774dd7db765
      current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
      request-idB250:1139E2:106D5EF:15FD4A2:6B0656A1
      html-safe-noncee9237f5c06288c09c9751ffa4f20050ef0c901ca82bd58b114c9312089c554ab
      visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMjUwOjExMzlFMjoxMDZENUVGOjE1RkQ0QTI6NkIwNjU2QTEiLCJ2aXNpdG9yX2lkIjoiNzk0NTMxNjM1MjYzNjkwMTAyNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
      visitor-hmaca61105d0474f14f58f6430f27c6060efee71fcf486a3b4c8b5d11a28a2b72789
      hovercard-subject-tagissue:6154176524
      github-keyboard-shortcutsrepository,issues,copilot
      google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
      octolytics-urlhttps://collector.github.com/github/collect
      analytics-location///voltron/issues_fragments/issue_layout
      fb:app_id1401488693436528
      apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/4100/issue_layout
      twitter:imagehttps://opengraph.githubassets.com/687e2b05af887e3bdc95678ea7a45ff092ea63a2f24baf282285c7c2dbba1c8d/developing-today/code/issues/4100
      twitter:cardsummary_large_image
      og:imagehttps://opengraph.githubassets.com/687e2b05af887e3bdc95678ea7a45ff092ea63a2f24baf282285c7c2dbba1c8d/developing-today/code/issues/4100
      og:image:altProblem In the id web editor, the task_list node's parseDOM rule for
        reads the list start from the DOM's own el.start reflection instead of the validated parseOrderedListStart helper that #200...
      og:image:width1200
      og:image:height600
      og:site_nameGitHub
      og:typeobject
      og:author:usernamedezren39
      hostnamegithub.com
      expected-hostnamegithub.com
      None6324e6ac990fb6befbec840cc0e102a1071c339bfe8f9826bb12de2e3ba1d297
      turbo-cache-controlno-preview
      go-importgithub.com/developing-today/code git https://github.com/developing-today/code.git
      octolytics-dimension-user_id26439447
      octolytics-dimension-user_logindeveloping-today
      octolytics-dimension-repository_id627308783
      octolytics-dimension-repository_nwodeveloping-today/code
      octolytics-dimension-repository_publictrue
      octolytics-dimension-repository_is_forkfalse
      octolytics-dimension-repository_network_root_id627308783
      octolytics-dimension-repository_network_root_nwodeveloping-today/code
      turbo-body-classeslogged-out env-production page-responsive
      disable-turbofalse
      browser-stats-urlhttps://api.github.com/_private/browser/stats
      browser-errors-urlhttps://api.github.com/_private/browser/errors
      release7f0aa75f4141d440c6110dc31af7ea7797abb6c4
      ui-targetfull
      theme-color#1e2327
      color-schemelight dark
      react-app-nameissues

      Links:

      Skip to contenthttps://github.com/developing-today/code/issues/4100#start-of-content
      https://github.com/
      Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeveloping-today%2Fcode%2Fissues%2F4100
      GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
      CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
      ActionsCI/CD and automationhttps://github.com/features/actions
      Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
      CodespacesCloud development environmentshttps://github.com/features/codespaces
      Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
      Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
      All Featureshttps://github.com/features
      Documentationhttps://docs.github.com/en
      Traininghttps://learn.github.com/skills
      Certificationshttps://learn.github.com/credentials
      Build with Copilothttps://github.com/features/ai
      Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
      Integrationshttps://github.com/marketplace
      Trending reposhttps://github.com/trending
      GitHub Sponsorshttps://github.com/open-source/sponsors
      Developer articleshttps://github.com/resources/articles
      ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
      Enterpriseshttps://github.com/enterprise
      Teamhttps://github.com/team
      Startupshttps://github.com/enterprise/startups
      Nonprofitshttps://github.com/solutions/industry/nonprofits
      Healthcarehttps://github.com/solutions/industry/healthcare
      Financial serviceshttps://github.com/solutions/industry/financial-services
      Manufacturinghttps://github.com/solutions/industry/manufacturing
      Governmenthttps://github.com/solutions/industry/government
      See all industrieshttps://github.com/solutions/industry
      Why GitHubhttps://github.com/why-github
      Customer Storieshttps://github.com/customer-stories
      Business insightshttps://github.com/solutions/executive-insights
      Trust Centerhttps://github.com/trust-center
      GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
      Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
      Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
      Documentationhttps://docs.github.com/en
      Resource centerhttps://github.com/resources
      Bloghttps://github.blog/
      Events & webinarshttps://github.com/resources/events
      Community Forumhttps://github.com/orgs/community/discussions
      Customer Storieshttps://github.com/customer-stories
      Integrationshttps://github.com/marketplace
      Customer supporthttps://help.github.com/
      Traininghttps://learn.github.com/skills
      GitHub Statushttps://www.githubstatus.com/
      Abouthttps://github.com/about
      Partnershttps://github.com/partners
      Changeloghttps://github.blog/changelog/
      GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
      Pricinghttps://github.com/pricing
      Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeveloping-today%2Fcode%2Fissues%2F4100
      Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=developing-today%2Fcode
      Reloadhttps://github.com/developing-today/code/issues/4100
      Reloadhttps://github.com/developing-today/code/issues/4100
      Reloadhttps://github.com/developing-today/code/issues/4100
      developing-todayhttps://github.com/developing-today
      codehttps://github.com/developing-today/code
      Codehttps://github.com/developing-today/code
      Issues1.1k (1.1k)https://github.com/developing-today/code/issues
      Pull requests176 (176)https://github.com/developing-today/code/pulls
      Discussionshttps://github.com/developing-today/code/discussions
      Actionshttps://github.com/developing-today/code/actions
      Projectshttps://github.com/developing-today/code/projects
      Wikihttps://github.com/developing-today/code/wiki
      Security and qualityhttps://github.com/developing-today/code/security
      Insightshttps://github.com/developing-today/code/insights
      https://github.com/developing-today/code
      New issuehttps://github.com/login?return_to=https://github.com/developing-today/code/issues/4100
      New issuehttps://github.com/login?return_to=https://github.com/developing-today/code/issues/4100
      #4101https://github.com/developing-today/code/pull/4101
      id(web/editor): task_list parseDOM reads el.start unvalidated — the #2005 ordered_list fix does not cover ordered task lists; fractional/negative starts save as bullet lists, hex/scientific starts are reinterpretedhttps://github.com/developing-today/code/issues/4100#top
      #4101https://github.com/developing-today/code/pull/4101
      app/idhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22app%2Fid%22
      effort/xshttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22effort%2Fxs%22
      kind/bughttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22kind%2Fbug%22
      priority/lowhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22priority%2Flow%22
      source/creatorhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22source%2Fcreator%22
      https://github.com/dezren39
      dezren39https://github.com/dezren39
      on Nov 2, 2026https://github.com/developing-today/code/issues/4100#issue-6154176524
      #2005https://github.com/developing-today/code/issues/2005
      #4078https://github.com/developing-today/code/pull/4078
      #2005https://github.com/developing-today/code/issues/2005
      #2005https://github.com/developing-today/code/issues/2005
      #2005https://github.com/developing-today/code/issues/2005
      #2010https://github.com/developing-today/code/issues/2010
      #2010https://github.com/developing-today/code/issues/2010
      id(web/editor): ordered_list parseDOM bare Number() lets NaN/fractional start through — pasted lists silently renumber from 1 on save #2005https://github.com/developing-today/code/issues/2005
      dezren39https://github.com/dezren39
      kind/bughttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22kind%2Fbug%22
      status/in-progresshttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fin-progress%22
      source/creatorhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22source%2Fcreator%22
      priority/lowhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22priority%2Flow%22
      app/idhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22app%2Fid%22
      work/self-assignedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22work%2Fself-assigned%22
      effort/xshttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22effort%2Fxs%22
      on Nov 2, 2026https://github.com/developing-today/code/issues/4100#event-34864403395
      https://github.com/dezren39
      dezren39https://github.com/dezren39
      on Nov 2, 2026https://github.com/developing-today/code/issues/4100#issuecomment-6566491912
      id(web/editor): ordered_list parseDOM bare Number() lets NaN/fractional start through — pasted lists silently renumber from 1 on save #2005https://github.com/developing-today/code/issues/2005
      id(web/editor): ordered_list parseDOM bare Number() lets NaN/fractional start through — pasted lists silently renumber from 1 on save #2005https://github.com/developing-today/code/issues/2005
      dezren39https://github.com/dezren39
      on Nov 2, 2026https://github.com/developing-today/code/issues/4100#event-34864722477
      Merge pull request #4101 from developing-today/creator-a/4100-tasklis…https://github.com/developing-today/code/commit/d963623747f04b6a1860551df1bed92b6fe60a4a
      #4101https://github.com/developing-today/code/pull/4101
      d963623https://github.com/developing-today/code/commit/d963623747f04b6a1860551df1bed92b6fe60a4a
      dezren39https://github.com/dezren39
      completedhttps://github.com/developing-today/code/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
      #4101https://github.com/developing-today/code/pull/4101
      on Nov 2, 2026https://github.com/developing-today/code/issues/4100#event-34864723310
      https://github.com/dezren39
      dezren39https://github.com/dezren39
      on Nov 2, 2026https://github.com/developing-today/code/issues/4100#issuecomment-6566575155
      id(web/editor): ordered_list parseDOM bare Number() lets NaN/fractional start through — pasted lists silently renumber from 1 on save #2005https://github.com/developing-today/code/issues/2005
      fix(id-web): validate task_list start in parseDOM (#4100) #4101https://github.com/developing-today/code/pull/4101
      d963623https://github.com/developing-today/code/commit/d963623747f04b6a1860551df1bed92b6fe60a4a
      id(web): search-panel test expects aria-label 'Replace all' but implementation renders 'Replace all matches' — full web suite red on main #3243https://github.com/developing-today/code/issues/3243
      fix(id-web): validate task_list start in parseDOM (#4100) #4101https://github.com/developing-today/code/pull/4101
      dezren39https://github.com/dezren39
      status/in-progresshttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fin-progress%22
      work/self-assignedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22work%2Fself-assigned%22
      on Nov 2, 2026https://github.com/developing-today/code/issues/4100#event-34864752150
      Sign up for freehttps://github.com/signup?return_to=https://github.com/developing-today/code/issues/4100
      Sign in to commenthttps://github.com/login?return_to=https://github.com/developing-today/code/issues/4100
      app/idhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22app%2Fid%22
      effort/xshttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22effort%2Fxs%22
      kind/bughttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22kind%2Fbug%22
      priority/lowhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22priority%2Flow%22
      source/creatorhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22source%2Fcreator%22
      https://github.com
      Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
      Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
      Securityhttps://github.com/security
      Statushttps://www.githubstatus.com/
      Communityhttps://github.community/
      Docshttps://docs.github.com/
      Contacthttps://support.github.com?tags=dotcom-footer

      Response headers:
      Servergithub.com
      Content-Typetext/html; charset=utf-8
      Cache-Controlmax-age=0, private, must-revalidate

      Viewport: width=device-width


      URLs of crawlers that visited me.