Skip to content

Fix HTMLFormElement target example#44333

Open
ded-furby wants to merge 4 commits into
mdn:mainfrom
ded-furby:fix-htmlformelement-target-frames
Open

Fix HTMLFormElement target example#44333
ded-furby wants to merge 4 commits into
mdn:mainfrom
ded-furby:fix-htmlformelement-target-frames

Conversation

@ded-furby
Copy link
Copy Markdown

Description

Replace the invalid document.frames example on the HTMLFormElement.target page with window.frames.

Motivation

document.frames is not a valid API on modern pages, and a maintainer confirmed in the issue that the example should use frames or window.frames instead. This keeps the example accurate without changing the rest of the page.

Additional details

Validated the edited markdown with prettier --check and git diff --check.

Related issues and pull requests

Fixes #44330

@ded-furby ded-furby requested a review from a team as a code owner June 2, 2026 07:46
@ded-furby ded-furby requested review from pepelsbey and removed request for a team June 2, 2026 07:46
@github-actions github-actions Bot added Content:WebAPI Web API docs size/xs [PR only] 0-5 LoC changed labels Jun 2, 2026
@xBZZZZ
Copy link
Copy Markdown
Contributor

xBZZZZ commented Jun 2, 2026

window.frames is just window with extra steps (window.frames === window)

Comment thread files/en-us/web/api/htmlformelement/target/index.md Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:WebAPI Web API docs size/xs [PR only] 0-5 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

document.frames doesn't exist

4 participants