How do you proceed html markup validation in your svelte app?

34 views Asked by At

Is there any efficient way to check entire app(every component and so on) for html markup errors?

1

There are 1 answers

0
brunnerh On BEST ANSWER

I do not think this is (easily) possible.

Given that components can be combined in arbitrary an complex ways, including the use of slots, conditionals and dynamic elements (<svelte:element>), you would need tooling that tracks everything across components. Most tooling only operates on components in isolation and most people also just don't care much for validity.