1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 00:07:36 +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:
Luke Wilde 2021-11-03 16:32:24 +00:00 committed by Andreas Kling
parent 652042e680
commit 23ef6e1a9e

View file

@ -1089,13 +1089,13 @@ Bindings::LocationObject* Document::location()
return window().wrapper()->location_object(); 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 bool Document::hidden() const
{ {
return false; 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 String Document::visibility_state() const
{ {
return hidden() ? "hidden" : "visible"; return hidden() ? "hidden" : "visible";