Grainular-Nord / nord

A lightweight (8kb), dependency-free JavaScript Frontend Framework
https://nordjs.dev
MIT License
7 stars 0 forks source link

[BUG] Tables and Table Elements have issues with tokenization #83

Open IamSebastianDev opened 9 months ago

IamSebastianDev commented 9 months ago

Bug Description

Overview: There is a issue with Table and Table specific elements like tbody, tr. If text directives are used in a Element that must not have any text content (like table, tbody), tokens are moved by the parser outside the respective element.

Expected Behavior: Tables are correctly tokenized

Actual Behavior: Tables are not correctly tokenized

Steps to Reproduce 🔄

  1. Create a template that contains a table, eg. ts <table></table>
  2. Insert a text based directive inside the table, eg: each
  3. Evaluate the template ...

Environment Information 🌐

Additional Context