w3c-xmlserializer icon indicating copy to clipboard operation
w3c-xmlserializer copied to clipboard

An XML serializer that follows the W3C specification.

Results 3 w3c-xmlserializer issues
Sort by recently updated
recently updated
newest added

The XML declaration is not serialized, try the code: ```js let doc = new window.DOMParser().parseFromString('Ahoy', 'application/xml'); console.log(new window.XMLSerializer().serializeToString(doc)); ``` Chrome output: `Ahoy` jsdom 15.1.1, w3c-xmlserializer 1.1.2 output: `Ahoy`

Given: ```javascript const xhtml = ` Test `; const { document } = new JSDOM(xhtml).window; console.log(serialize(document)); ``` the output will something like this: ``` Style Test ``` So I now...

I'm not sure whether this is a bug in `w3c-xmlserializer` or whether the current behaviour matches the spec and browsers implement the spec differently. When an `xmlns` attribute is set...