Skip to content

HTML vs. Modifier <menu {{menu}}> - who wins? #1637

Open
@gossi

Description

@gossi

I'm exporting a {{menu}} modifier over at aria-voyager.

And received a bug report (hokulea/aria-voyager#170) about:

<menu {{menu}}>

with:

Error: Attempted to load a component, but there wasn't a component manager associated with the definition. The definition was: MenuModifier

Now, I get it that glimmer would also support a <menu> component, as syntactically this is correct. I was also under the impression, that HTML elements are sorta "protected" in a way they can't be overwritten with custom components, as this contrary to how the platform behaves.

To me, the code <menu {{menu}}> should work, as it is clear, that this is an HTML element with a modifier that happen to have the same name.

Is my understanding correct and this is a glimmer bug? Or is this a correct behavior, if so, what's the reason behind?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions