Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Page Visibility API vs Document.visibilityState: remove "unloaded" state? #20283

Closed
weslord opened this issue Sep 4, 2022 · 1 comment · Fixed by #20284
Closed

Page Visibility API vs Document.visibilityState: remove "unloaded" state? #20283

weslord opened this issue Sep 4, 2022 · 1 comment · Fixed by #20284
Labels
Content:WebAPI Web API docs needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened.

Comments

@weslord
Copy link
Contributor

weslord commented Sep 4, 2022

MDN URL

https://developer.mozilla.org/en-US/docs/Web/API/Page_Visibility_API

What specific section or headline is this issue about?

Properties added to the Document interface

What information was incorrect, unhelpful, or incomplete?

The "Page Visibility API" reference lists "unloaded" as one of the possible values of Document.visibilityState, but "unloaded" does not appear in the list on the "Document.visibilityState" reference.

What did you expect to see?

I expect "unloaded" to be listed on both or on neither.

The Page Visibility W3C Recommendation from 2013 lists

enum VisibilityState { "hidden", "visible", "prerender", "unloaded" };

but the current HTML Standard only lists

enum DocumentVisibilityState { "visible", "hidden" };

I assume removing "unloaded" is the right thing to do, but the deprecated value "prerender" is still listed on both pages and in the compatibility table so I figured I'd double-check first.

Do you have any supporting links, references, or citations?

No response

Do you have anything more you want to share?

No response

MDN metadata

Page report details
@github-actions github-actions bot added needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. Content:WebAPI Web API docs labels Sep 4, 2022
@weslord
Copy link
Contributor Author

weslord commented Sep 4, 2022

Per this W3C discussion from 2015, looks like "unloaded" was dropped from the spec before any implementation supported it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:WebAPI Web API docs needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant