gokhanmeteerturk / HeadwindHTML

Create HTML from CSS! A modern javascript library you'd expect Facebook to invent. Slowly build modern websites without ever leaving your CSS, with HeadwindHTML
Mozilla Public License 2.0
322 stars 4 forks source link

No JavaScript support #4

Open ItsJamie9494 opened 2 years ago

ItsJamie9494 commented 2 years ago

I really really need the ability to write JavaScript in my css. It's the one thing I've dreamed about for years and it would make my day if this glorious library could allow me to write all my code in CSS.

obliviga commented 2 years ago

+1

FeliciousX commented 2 years ago

May I suggest using CSS-in-JS

so that you can still write HTML in CSS and write CSS in JS!

Now you have the best of all 3 worlds!

image

gokhanmeteerturk commented 2 years ago

Looking for a way to do this without using eval.

ArjixWasTaken commented 1 year ago

Looking for a way to do this without using eval.

do what xss attacks do

<img src="null" onerror="alert('XSS attack')">