marko-js / htmljs-parser

An HTML parser recognizes content and string placeholders and allows JavaScript expressions as attribute values
MIT License
137 stars 20 forks source link

fix: support closing tag variations on text parse modes #84

Closed DylanPiercey closed 3 years ago

DylanPiercey commented 3 years ago

This PR supports tags parsed in either static-text or parsed-content mode (such as <script> and <style>) having a closing tag that matches the same variants as other tags.

Specifically this means the below is newly supported:

<style.test></>
<style.test></style>

Where as before only <style.test></style.test> would have been valid.