mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Introduce NonElementParentNode
This is the interface where Document.getElementById() belong.
This commit is contained in:
parent
c0381c7325
commit
3f5b3053b9
2 changed files with 13 additions and 1 deletions
11
components/script/dom/webidls/NonElementParentNode.webidl
Normal file
11
components/script/dom/webidls/NonElementParentNode.webidl
Normal file
|
@ -0,0 +1,11 @@
|
|||
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
// https://dom.spec.whatwg.org/#nonelementparentnode
|
||||
[NoInterfaceObject,
|
||||
Exposed=Window]
|
||||
interface NonElementParentNode {
|
||||
Element? getElementById(DOMString elementId);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue