2 * Copyright 2008 The Closure Compiler Authors
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 * @fileoverview Definitions for all the extensions over some of the
19 * W3C's XML specifications by Gecko. This file depends on
20 * w3c_xml.js. The whole file has been fully type annotated.
26 * XMLSerializer can be used to convert DOM subtree or DOM document into text.
27 * XMLSerializer is available to unprivileged scripts.
29 * XMLSerializer is mainly useful for applications and extensions based on
30 * Mozilla platform. While it's available to web pages, it's not part of any
31 * standard and level of support in other browsers is unknown.
35 function XMLSerializer() {}
38 * Returns the serialized subtree in the form of a string
39 * @param {Node} subtree
42 XMLSerializer.prototype.serializeToString = function(subtree) {};
45 * The subtree rooted by the specified element is serialized to a byte stream
46 * using the character set specified.
48 * @param {Node} subtree
51 XMLSerializer.prototype.serializeToStream = function(subtree) {};
54 * DOMParser is mainly useful for applications and extensions based on Mozilla
55 * platform. While it's available to web pages, it's not part of any standard and
56 * level of support in other browsers is unknown.
60 function DOMParser() {}
63 * The string passed in is parsed into a DOM document.
66 * var parser = new DOMParser();
67 * var doc = parser.parseFromString(aStr, "text/xml");
69 * @param {string} src The UTF16 string to be parsed.
70 * @param {string} type The content type of the string.
73 DOMParser.prototype.parseFromString = function(src, type) {};