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

Version Path
appmap-0.72.2 ./node_modules/jsdom/lib/jsdom/living/domparsing/XMLSerializer-impl.js
appmap-0.72.1 ./node_modules/jsdom/lib/jsdom/living/domparsing/XMLSerializer-impl.js
appmap-0.72.0 ./node_modules/jsdom/lib/jsdom/living/domparsing/XMLSerializer-impl.js
appmap-0.71.0 ./node_modules/jsdom/lib/jsdom/living/domparsing/XMLSerializer-impl.js
appmap-0.70.2 ./node_modules/jsdom/lib/jsdom/living/domparsing/XMLSerializer-impl.js
appmap-0.70.1 ./node_modules/jsdom/lib/jsdom/living/domparsing/XMLSerializer-impl.js
appmap-0.70.0 ./node_modules/jsdom/lib/jsdom/living/domparsing/XMLSerializer-impl.js
appmap-0.69.0 ./node_modules/jsdom/lib/jsdom/living/domparsing/XMLSerializer-impl.js
appmap-0.68.2 ./node_modules/jsdom/lib/jsdom/living/domparsing/XMLSerializer-impl.js
appmap-0.68.1 ./node_modules/jsdom/lib/jsdom/living/domparsing/XMLSerializer-impl.js
appmap-0.68.0 ./node_modules/jsdom/lib/jsdom/living/domparsing/XMLSerializer-impl.js
appmap-0.67.1 ./node_modules/jsdom/lib/jsdom/living/domparsing/XMLSerializer-impl.js
appmap-0.67.0 ./node_modules/jsdom/lib/jsdom/living/domparsing/XMLSerializer-impl.js
appmap-0.66.2 ./node_modules/jsdom/lib/jsdom/living/domparsing/XMLSerializer-impl.js
appmap-0.66.1 ./node_modules/jsdom/lib/jsdom/living/domparsing/XMLSerializer-impl.js
appmap-0.66.0 ./node_modules/jsdom/lib/jsdom/living/domparsing/XMLSerializer-impl.js
appmap-0.65.1 ./node_modules/jsdom/lib/jsdom/living/domparsing/XMLSerializer-impl.js
appmap-0.65.0 ./node_modules/jsdom/lib/jsdom/living/domparsing/XMLSerializer-impl.js
appmap-0.64.0 ./node_modules/jsdom/lib/jsdom/living/domparsing/XMLSerializer-impl.js
appmap-0.63.0 ./node_modules/jsdom/lib/jsdom/living/domparsing/XMLSerializer-impl.js