Skip to content

Support live named access in WPT Window fixtures - #95

Closed
cowboyd wants to merge 1 commit into
dom-default-viewfrom
wpt-window-named-access
Closed

cowboyd wants to merge 1 commit into
dom-default-viewfrom
wpt-window-named-access

Conversation

@cowboyd

@cowboyd cowboyd commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

Add live Window named properties to the WPT runner from #87 so fixture scripts can resolve both window.inp and bare inp from an element's ID.

A proxy in the worker global's prototype chain resolves single-element IDs and eligible HTML name attributes against the current document tree. Existing globals take precedence, assignments shadow named access, and cleanup restores the original prototype. The consumer and fixture scripts continue to share one JavaScript realm.

Multiple matches requiring a live HTMLCollection and child browsing-context names fail explicitly until those capabilities are supported. This supplies the named-element prerequisite for the nested-inert fixtures in #78.

Type of change

  • Bug fix
  • Feature
  • Refactor (no behavior change)
  • Documentation
  • Performance improvement
  • Tests
  • Chore (dependencies, CI, tooling)

Checklist

  • I have added a changeset (not needed for private test infrastructure)

AI-generated code disclosure

  • This PR includes AI-generated code

@cowboyd
cowboyd added this pull request to stack #88 November 18, 2026 02:24
@pkg-pr-new

pkg-pr-new Bot commented Nov 18, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/bombshell-dev/ui/@clack/ui@95

commit: d829470

@cowboyd cowboyd closed this Nov 18, 2026
@cowboyd
cowboyd removed this pull request from stack #88 November 18, 2026 02:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant