mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Add XMLDocument object
This commit is contained in:
parent
831979d6a7
commit
adf8b359bb
18 changed files with 169 additions and 73 deletions
|
@ -17,9 +17,9 @@ interface DOMImplementation {
|
|||
DocumentType createDocumentType(DOMString qualifiedName, DOMString publicId,
|
||||
DOMString systemId);
|
||||
[NewObject, Throws]
|
||||
Document createDocument(DOMString? namespace,
|
||||
[TreatNullAs=EmptyString] DOMString qualifiedName,
|
||||
optional DocumentType? doctype = null);
|
||||
XMLDocument createDocument(DOMString? namespace,
|
||||
[TreatNullAs=EmptyString] DOMString qualifiedName,
|
||||
optional DocumentType? doctype = null);
|
||||
[NewObject]
|
||||
Document createHTMLDocument(optional DOMString title);
|
||||
|
||||
|
|
13
components/script/dom/webidls/XMLDocument.webidl
Normal file
13
components/script/dom/webidls/XMLDocument.webidl
Normal file
|
@ -0,0 +1,13 @@
|
|||
/* -*- 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/. */
|
||||
/*
|
||||
* The origin of this IDL file is:
|
||||
* https://dom.spec.whatwg.org/#interface-document
|
||||
* https://html.spec.whatwg.org/multipage/#the-document-object
|
||||
*/
|
||||
|
||||
// https://dom.spec.whatwg.org/#interface-document
|
||||
[Constructor]
|
||||
interface XMLDocument : Document {};
|
Loading…
Add table
Add a link
Reference in a new issue