You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
It is not a bug and is correct behavior.
Reason being that all variables in scope are fair game to use in any syntax position, otherwise we introduce an inconsistency in our templating language
though, it is fair to say that all elements are off limits... but we don't have a good track record for keeping that list up to date
I think the correct behavior then is a bug. It is marketted as HTML first, but in reality it is scope first.
HTML should have precedence, as this is the consistend baseline. I wouldn't consider html as part of the scope here but the foundation, this sits on. Else we have sth like ember-dom (similar to react-dom).
I'm exporting a
{{menu}}
modifier over ataria-voyager
.And received a bug report (hokulea/aria-voyager#170) about:
with:
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?
The text was updated successfully, but these errors were encountered: