From d93c8da7d74d51f87a2254adf848ac5fd171338f Mon Sep 17 00:00:00 2001 From: Anthony Ramine Date: Fri, 11 Sep 2015 02:32:58 +0200 Subject: [PATCH] Fix Element missing attributes Attributes classList and attributes are [SameObject]. --- components/script/dom/webidls/Element.webidl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/script/dom/webidls/Element.webidl b/components/script/dom/webidls/Element.webidl index f2f18a5cc0b..f54fd0cf04e 100644 --- a/components/script/dom/webidls/Element.webidl +++ b/components/script/dom/webidls/Element.webidl @@ -28,10 +28,10 @@ interface Element : Node { attribute DOMString id; [Pure] attribute DOMString className; - [Constant] + [SameObject] readonly attribute DOMTokenList classList; - [Constant] + [SameObject] readonly attribute NamedNodeMap attributes; DOMString? getAttribute(DOMString name); DOMString? getAttributeNS(DOMString? namespace, DOMString localName);