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

Creating script element resulting unexpected opening tag. #251

Closed Srabutdotcom closed 7 months ago

Srabutdotcom commented 7 months ago

I found an issue when creating a script element., the script element toSting() result '\x3Cscript />' instead of <script />

And when create a nested element that contains script element will send unexpected result to client i.e <script type="module" src="index.js"></head><body class="antialiased" /></html></script>

Kindly need you to review. Thanks & regards

WebReflection commented 7 months ago

self closing tags don't exist in HTML