mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 18:50:50 +00:00
LibWeb: Change Document.{hidden,visibilityState} spec links to HTML
The page visibility API was moved to HTML here: 9bed042ab3
This commit is contained in:
parent
652042e680
commit
23ef6e1a9e
Notes:
sideshowbarker
2024-07-18 01:30:55 +09:00
Author: https://github.com/Lubrsi
Commit: 23ef6e1a9e
Pull-request: https://github.com/SerenityOS/serenity/pull/10781
1 changed files with 2 additions and 2 deletions
|
@ -1089,13 +1089,13 @@ Bindings::LocationObject* Document::location()
|
|||
return window().wrapper()->location_object();
|
||||
}
|
||||
|
||||
// https://w3c.github.io/page-visibility/#hidden-attribute
|
||||
// https://html.spec.whatwg.org/multipage/interaction.html#dom-document-hidden
|
||||
bool Document::hidden() const
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
// https://w3c.github.io/page-visibility/#visibilitystate-attribute
|
||||
// https://html.spec.whatwg.org/multipage/interaction.html#dom-document-visibilitystate
|
||||
String Document::visibility_state() const
|
||||
{
|
||||
return hidden() ? "hidden" : "visible";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue