diff --git a/content/base/src/DocumentFragment.h b/content/base/src/DocumentFragment.h index c1ca920f9a29..3485afbd7782 100644 --- a/content/base/src/DocumentFragment.h +++ b/content/base/src/DocumentFragment.h @@ -40,6 +40,8 @@ public: using FragmentOrElement::GetFirstChild; using nsINode::QuerySelector; using nsINode::QuerySelectorAll; + // Make sure bindings can see our superclass' protected GetElementById method. + using nsINode::GetElementById; // nsISupports NS_DECL_ISUPPORTS_INHERITED diff --git a/content/base/test/mochitest.ini b/content/base/test/mochitest.ini index 223d2b02c815..442012a07393 100644 --- a/content/base/test/mochitest.ini +++ b/content/base/test/mochitest.ini @@ -532,6 +532,7 @@ support-files = [test_elementTraversal.html] [test_fileapi.html] [test_fileapi_slice.html] +[test_getElementById.html] [test_html_colors_quirks.html] [test_html_colors_standards.html] [test_html_in_xhr.html] diff --git a/content/base/test/test_getElementById.html b/content/base/test/test_getElementById.html new file mode 100644 index 000000000000..b0c2b01dbfc6 --- /dev/null +++ b/content/base/test/test_getElementById.html @@ -0,0 +1,58 @@ + + + + + + Test for Bug 933193 + + + + +Mozilla Bug 933193 +

+ +
+
+ + + diff --git a/dom/webidl/DocumentFragment.webidl b/dom/webidl/DocumentFragment.webidl index 45efb2968610..0f814666fb64 100644 --- a/dom/webidl/DocumentFragment.webidl +++ b/dom/webidl/DocumentFragment.webidl @@ -13,13 +13,7 @@ [Constructor] interface DocumentFragment : Node { - // NEW - /* - FIXME: not implemented yet - - void prepend((Node or DOMString)... nodes); - void append((Node or DOMString)... nodes); - */ + Element? getElementById(DOMString elementId); }; // http://www.w3.org/TR/2012/WD-selectors-api-20120628/#interface-definitions