mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02: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:
committed by
Andreas Kling
parent
652042e680
commit
23ef6e1a9e
Notes:
sideshowbarker
2024-07-18 01:30:55 +09:00
Author: https://github.com/Lubrsi Commit: https://github.com/SerenityOS/serenity/commit/23ef6e1a9ee Pull-request: https://github.com/SerenityOS/serenity/pull/10781
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user