Skip to content
ZOLO / TE740 Type · error

HTML attribute is invalid for the element

Compiler diagnostic TE740: HTML attribute is invalid for the element.

Why this fires

TE740 reports a known HTML attribute that is not valid for the authored element. Verniz validates native tags from its versioned DOM table; component props still use the ordinary named-argument diagnostics.

<div clas="card" />
// error[TE740]: attribute `clas` is not valid on `<div>`

Fix it

Use the suggested attribute name, or use a data-* attribute for application metadata. Web components and data-* attributes remain extensible.

Global index

Find your way through Zolo

Try an idea

Start here

9 results

9 results

en