javascript - How tell in vue js that a component is not a custom one (<menuitem>) -
i use vue.js , recognize component (menuitem) custom one.
<menu type="context" id="viewercontextmenu"> <menuitem id="firstid"></menuitem> <menuitem id="secondid"></menuitem> <menuitem id="thidid"></menuitem> </menu> so, have warning in browser console:
"unknown custom element: <menuitem> - did register component correctly? recursive components, make sure provide "name" option." the thing is, menuitem not custom component. see: http://www.w3schools.com/tags/tag_menuitem.asp
how can tell vue.js that:
- either menuitem not custom component
- or don't check part of code.
thanks lot.
the thing it's menuitem it's not supported browsers, check compatibility https://developer.mozilla.org/es/docs/web/html/element/menuitem
vue.js recognize custom element since browser doesn't recognize it.
if it's not necessary, change element more stable html item :).
hope helps, , happy coding.
Comments
Post a Comment