Rework to register Document and add XMLSerializer

This commit is contained in:
Björn Harrtell
2019-11-13 22:54:56 +01:00
parent fc46166821
commit bdc20e0293
3 changed files with 34 additions and 15 deletions

View File

@@ -5,7 +5,7 @@ import {abstract} from '../util.js';
import {extend} from '../array.js';
import FeatureFormat from '../format/Feature.js';
import FormatType from '../format/FormatType.js';
import {isDocument, parse} from '../xml.js';
import {isDocument, parse, getXMLSerializer} from '../xml.js';
/**
* @classdesc
@@ -23,7 +23,7 @@ class XMLFeature extends FeatureFormat {
* @type {XMLSerializer}
* @private
*/
this.xmlSerializer_ = new XMLSerializer();
this.xmlSerializer_ = getXMLSerializer();
}
/**