aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/webidls/Element.webidl
diff options
context:
space:
mode:
authorbors-servo <release+servo@mozilla.com>2014-02-27 11:14:27 -0500
committerbors-servo <release+servo@mozilla.com>2014-02-27 11:14:27 -0500
commitab72c473cde0cd69a44dc274d3ecf18207af785c (patch)
tree52774d8f8c13bef46b1ad0dbb492f4c9ed87a7ae /src/components/script/dom/webidls/Element.webidl
parent1a171129dc870194bb266f952cfb99cb8fb6d522 (diff)
parent59416c943101b7402721e2c8dc7bc06a925abcc9 (diff)
downloadservo-ab72c473cde0cd69a44dc274d3ecf18207af785c.tar.gz
servo-ab72c473cde0cd69a44dc274d3ecf18207af785c.zip
auto merge of #1774 : Ms2ger/servo/element-noops, r=jdm
Diffstat (limited to 'src/components/script/dom/webidls/Element.webidl')
-rw-r--r--src/components/script/dom/webidls/Element.webidl38
1 files changed, 2 insertions, 36 deletions
diff --git a/src/components/script/dom/webidls/Element.webidl b/src/components/script/dom/webidls/Element.webidl
index c0f2ff5535c..6c393f00067 100644
--- a/src/components/script/dom/webidls/Element.webidl
+++ b/src/components/script/dom/webidls/Element.webidl
@@ -54,54 +54,20 @@ interface Element : Node {
[Throws]
HTMLCollection getElementsByTagNameNS(DOMString? namespace, DOMString localName);
HTMLCollection getElementsByClassName(DOMString classNames);
-
- // Selectors API
- /**
- * Returns whether this element would be selected by the given selector
- * string.
- *
- * See <http://dev.w3.org/2006/webapi/selectors-api2/#matchesselector>
- */
- [Throws]
- boolean mozMatchesSelector(DOMString selector);
-
};
// http://dev.w3.org/csswg/cssom-view/#extensions-to-the-element-interface
partial interface Element {
ClientRectList getClientRects();
ClientRect getBoundingClientRect();
-
- // scrolling
- void scrollIntoView(optional boolean top = true);
- // None of the CSSOM attributes are [Pure], because they flush
- attribute long scrollTop; // scroll on setting
- attribute long scrollLeft; // scroll on setting
- readonly attribute long scrollWidth;
- readonly attribute long scrollHeight;
-
- readonly attribute long clientTop;
- readonly attribute long clientLeft;
- readonly attribute long clientWidth;
- readonly attribute long clientHeight;
};
// http://domparsing.spec.whatwg.org/#extensions-to-the-element-interface
partial interface Element {
[Throws,TreatNullAs=EmptyString]
- attribute DOMString innerHTML;
+ readonly attribute DOMString innerHTML;
[Throws,TreatNullAs=EmptyString]
- attribute DOMString outerHTML;
- [Throws]
- void insertAdjacentHTML(DOMString position, DOMString text);
-};
-
-// http://www.w3.org/TR/selectors-api/#interface-definitions
-partial interface Element {
- [Throws]
- Element? querySelector(DOMString selectors);
- /*[Throws]
- NodeList querySelectorAll(DOMString selectors);*/
+ readonly attribute DOMString outerHTML;
};
/*Element implements ChildNode;