From cbd52d48fa2524beb37b506b55a315b49f026a1e Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Sat, 7 Jul 2018 11:24:38 +0200 Subject: Make the page visibility API pref-controlled. This resolves #607. --- dom/webidl/Document.webidl | 3 +++ 1 file changed, 3 insertions(+) (limited to 'dom/webidl') diff --git a/dom/webidl/Document.webidl b/dom/webidl/Document.webidl index 0b8c278fe..904b1fb77 100644 --- a/dom/webidl/Document.webidl +++ b/dom/webidl/Document.webidl @@ -277,8 +277,11 @@ partial interface Document { // https://w3c.github.io/page-visibility/#extensions-to-the-document-interface partial interface Document { + [Pref="dom.visibilityAPI.enabled"] readonly attribute boolean hidden; + [Pref="dom.visibilityAPI.enabled"] readonly attribute VisibilityState visibilityState; + [Pref="dom.visibilityAPI.enabled"] attribute EventHandler onvisibilitychange; }; -- cgit v1.2.3 From d4c0def3b80d6dd4359985e400a7282ce198c228 Mon Sep 17 00:00:00 2001 From: janekptacijarabaci Date: Tue, 10 Jul 2018 07:19:28 +0200 Subject: DOM - Element - add support for Element.toggleAttribute() --- dom/webidl/Element.webidl | 2 ++ 1 file changed, 2 insertions(+) (limited to 'dom/webidl') diff --git a/dom/webidl/Element.webidl b/dom/webidl/Element.webidl index ca5f1b35c..97eb4ffe0 100644 --- a/dom/webidl/Element.webidl +++ b/dom/webidl/Element.webidl @@ -41,6 +41,8 @@ interface Element : Node { [Pure] DOMString? getAttributeNS(DOMString? namespace, DOMString localName); [Throws] + boolean toggleAttribute(DOMString name, optional boolean force); + [Throws] void setAttribute(DOMString name, DOMString value); [Throws] void setAttributeNS(DOMString? namespace, DOMString name, DOMString value); -- cgit v1.2.3 From e6af24eb6c1defe0fd221326029d49fa1858ad14 Mon Sep 17 00:00:00 2001 From: janekptacijarabaci Date: Wed, 11 Jul 2018 07:54:50 +0200 Subject: Add event.srcElement (the alias for event.target) Issue #622 --- dom/webidl/Event.webidl | 2 ++ 1 file changed, 2 insertions(+) (limited to 'dom/webidl') diff --git a/dom/webidl/Event.webidl b/dom/webidl/Event.webidl index f87dc195c..70a0ef513 100644 --- a/dom/webidl/Event.webidl +++ b/dom/webidl/Event.webidl @@ -17,6 +17,8 @@ interface Event { readonly attribute DOMString type; [Pure] readonly attribute EventTarget? target; + [Pure, BinaryName="target"] + readonly attribute EventTarget? srcElement; [Pure] readonly attribute EventTarget? currentTarget; -- cgit v1.2.3