diff --git a/plans/hs-conformance-scoreboard.md b/plans/hs-conformance-scoreboard.md index 7315be7f..eadff348 100644 --- a/plans/hs-conformance-scoreboard.md +++ b/plans/hs-conformance-scoreboard.md @@ -43,7 +43,7 @@ Remaining: ~248 tests | 20 | `repeat` property for-loops + where | pending | (+3 est) | — | | 21 | `possessiveExpression` property access via its | done | +1 | f0c41278 | | 22 | window global fn fallback | blocked | — | — | -| 23 | `me symbol works in from expressions` | done | +1 | (pending) | +| 23 | `me symbol works in from expressions` | done | +1 | 0d38a75b | | 24 | `properly interpolates values 2` | pending | (+1 est) | — | | 25 | parenthesized commands and features | pending | (+1 est) | — | diff --git a/plans/hs-conformance-to-100.md b/plans/hs-conformance-to-100.md index fb10ee2a..367723a6 100644 --- a/plans/hs-conformance-to-100.md +++ b/plans/hs-conformance-to-100.md @@ -163,7 +163,7 @@ Many tests are `SKIP (untranslated)` because `tests/playwright/generate-sx-tests (Reverse chronological — newest at top.) ### 2026-04-24 — cluster 23 me symbol works in from expressions -- **COMMIT** — `HS: closest parent traversal (+1 test)`. `parse-trav` now recognises `parent` as an ident modifier after the `closest` keyword: consumes it and re-invokes itself with kind `closest-parent`, so `closest parent
` produces AST `(closest-parent "div" (me))` instead of `(string-postfix (closest "*" (me)) "parent")` — the latter was the generic trailing-ident-as-unit rule swallowing `parent`. Compiler translates `(closest-parent sel target)` to `(dom-closest (host-get target "parentElement") sel)` so `me` (the element with the `_` attribute) is skipped and only strict ancestors match. Also added `closest-parent` to the `put X into ` inner-html shortcut alongside `next`/`previous`/`closest`. Suite hs-upstream-core/regressions: 10/16 → 11/16. Smoke 0-195: 162/195 → 163/195. +- **0d38a75b** — `HS: closest parent traversal (+1 test)`. `parse-trav` now recognises `parent` as an ident modifier after the `closest` keyword: consumes it and re-invokes itself with kind `closest-parent`, so `closest parent
` produces AST `(closest-parent "div" (me))` instead of `(string-postfix (closest "*" (me)) "parent")` — the latter was the generic trailing-ident-as-unit rule swallowing `parent`. Compiler translates `(closest-parent sel target)` to `(dom-closest (host-get target "parentElement") sel)` so `me` (the element with the `_` attribute) is skipped and only strict ancestors match. Also added `closest-parent` to the `put X into ` inner-html shortcut alongside `next`/`previous`/`closest`. Suite hs-upstream-core/regressions: 10/16 → 11/16. Smoke 0-195: 162/195 → 163/195. ### 2026-04-24 — cluster 8 select returns selected text (cherry-picked from worktree) - **0b9bbc7b** — `HS: select returns selected text (+1 test)`. Runtime `hs-get-selection` prefers `window.__test_selection` stash and falls back to `getSelection().toString()`. Compiler rewrites `(ref "selection")` to `(hs-get-selection)`. Generator detects `document.createRange() + getElementById(ID).firstChild + setStart/setEnd` and emits a single `host-set!` on `window.__test_selection` with the resolved substring, sidestepping a propagating DOM range/text-node mock. Runner resets `__test_selection` between tests. Suite hs-upstream-select: 3/4 → 4/4.