michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this file, michael@0: * You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: * michael@0: * The origin of this IDL file is michael@0: * http://domparsing.spec.whatwg.org/#the-xmlserializer-interface michael@0: */ michael@0: michael@0: interface OutputStream; michael@0: michael@0: [Constructor] michael@0: interface XMLSerializer { michael@0: [Throws] michael@0: DOMString serializeToString(Node root); michael@0: michael@0: // Mozilla-specific stuff michael@0: [Throws, ChromeOnly] michael@0: void serializeToStream(Node root, OutputStream stream, DOMString? charset); michael@0: }; michael@0: