PhilipFlyvholm / Terrier

Terrier is a new web application compiler inspired by Svelte and Pug to give an alternative syntax to html while still having the benefits of a component based compiler.
MIT License
4 stars 0 forks source link

Parser accepts attributes after raw string #1

Closed PhilipFlyvholm closed 1 year ago

PhilipFlyvholm commented 2 years ago

The parser accepts attributes after parsing an child string. This should at least give a warning since it is unexpected. Reproduce format: p "For more infomation" class="bling"

Solutions to fix:

PhilipFlyvholm commented 1 year ago

Resolution: 'p "For more infomation" class="bling"' is valid syntax

PhilipFlyvholm commented 1 year ago

Alternative resolution: Use ">" as a child selector (Works kinda like CSS) div class="bling" > p > "Hello World" Is the same as <div class="bling"><p>Hello World</p></div See commit 32d96370e7eb45977157c370c14e78125a9ed094

image