tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

gecko_xml.js (2281B)


      1 /*
      2 * Copyright 2008 The Closure Compiler Authors
      3 *
      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
      7 *
      8 *     http://www.apache.org/licenses/LICENSE-2.0
      9 *
     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.
     15 */
     16 
     17 /**
     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.
     21 *
     22 * @externs
     23 */
     24 
     25 /**
     26 * XMLSerializer can be used to convert DOM subtree or DOM document into text.
     27 * XMLSerializer is available to unprivileged scripts.
     28 *
     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.
     32 *
     33 * @constructor
     34 */
     35 function XMLSerializer() {}
     36 
     37 /**
     38 * Returns the serialized subtree in the form of a string
     39 * @param {Node} subtree
     40 * @return {string}
     41 */
     42 XMLSerializer.prototype.serializeToString = function(subtree) {};
     43 
     44 /**
     45 * The subtree rooted by the specified element is serialized to a byte stream
     46 * using the character set specified.
     47 *
     48 * @param {Node} subtree
     49 * @return {Object}
     50 */
     51 XMLSerializer.prototype.serializeToStream = function(subtree) {};
     52 
     53 /**
     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.
     57 *
     58 * @constructor
     59 */
     60 function DOMParser() {}
     61 
     62 /**
     63 * The string passed in is parsed into a DOM document.
     64 *
     65 * Example:
     66 *  var parser = new DOMParser();
     67 *  var doc = parser.parseFromString(aStr, "text/xml");
     68 *
     69 * @param {string} src The UTF16 string to be parsed.
     70 * @param {string} type The content type of the string.
     71 * @return {Document}
     72 */
     73 DOMParser.prototype.parseFromString = function(src, type) {};