WebReflection / linkedom

A triple-linked lists based DOM implementation.
https://webreflection.medium.com/linkedom-a-jsdom-alternative-53dd8f699311
ISC License
1.62k stars 78 forks source link

the hidden attribute parsing is not valid in xml #258

Closed nyanrus closed 6 months ago

nyanrus commented 6 months ago

Thank you for good project!

import {DOMParser} from "linkedom"

console.log((new DOMParser).parseFromString(`<test hidden=""></test>`,"text/xml").toString());
console.log((new DOMParser).parseFromString(`<test hidden=""></test>`,"text/html").toString());
/* outputs
<?xml version="1.0" encoding="utf-8"?><test hidden />
<test hidden></test>
*/

the hidden is not hidden="", hidden and it's error on xml node v20.11.0 linkedom v0.16.6

WebReflection commented 6 months ago

nope ... I see, pretty weird ... on it

WebReflection commented 6 months ago

I have no idea what happened to the previous commit but it was broken anyway so glad I've re-fixed this now.

nyanrus commented 6 months ago

Thanks!!