Sha256: aad443017140bf19a2e1bb1be01e7290bf8d78771893b98025b48d9583ce6b50
Contents?: true
Size: 535 Bytes
Versions: 20
Compression:
Stored size: 535 Bytes
Contents
"use strict"; const serialize = require("w3c-xmlserializer"); const DOMException = require("domexception/webidl2js-wrapper"); const utils = require("../generated/utils"); exports.implementation = class XMLSerializerImpl { constructor(globalObject) { this._globalObject = globalObject; } serializeToString(root) { try { return serialize(utils.wrapperForImpl(root), { requireWellFormed: false }); } catch (e) { throw DOMException.create(this._globalObject, [e.message, "InvalidStateError"]); } } };
Version data entries
20 entries across 20 versions & 1 rubygems