Skip to content

Attribute local names with namespace prefixes are not type-checked #168

@adamjhf

Description

@adamjhf

It's not possible to validate the name of the attribute after a namespace prefix, e.g. when using Alpine JS's x-on prefix:

maud! {
   div x-on:clickk="console.log('I never run due to typo in attribute name')" {}
}

It would be good to have the option to validate these local attribute names, in line with this principle from the hypertext docs:

All macro invocations are validated at compile time, so you can’t ever misspell an element/attribute or use invalid attributes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions