Vue: Time tag considered as custom element

Created on 6 Oct 2015  路  11Comments  路  Source: vuejs/vue

Hello,

It seems the <time> tag is considered as a custom element by VueJS.

I keep getting the following warning on 1.0.0 alpha and beta:

[Vue warn]: Unknown custom element: <time> - did you register the component correctly? 

Most helpful comment

<navigation> is an HTML5 element? isn't that <nav>

All 11 comments

Thanks for reporting. Vue is using element.toString() to check if the browser returns [object HTMLUnknownElement]. Looks like this is a bug in Chrome where valid HTML5 elements <time>, <data>, <rb> and <rtc> return unknown instead of [object HTMLElement].

I have filed a bug for Chrome, you can ignore this warning for now. Also the warning will not show up if you use the production build.

So chrome team considers it a WontFix at the moment: https://code.google.com/p/chromium/issues/detail?id=540526

I've added an extra rule to exclude the affected elements from the check: 13e0335

Oh, this is a Chrome issue, my bad.
Thanks for the patch and the heads-up about the production build, didn't notice it :+1:

This very same thing happens with the details tag as of vue 1.0.24

Same thing happening with <details> and <summary> tags on Firefox.

@Gangwolf should be addressed in 63dbc1ca10d1663cb379ca7bd255d0ae3e836673

Just got this in Chrome for <navigation>, is it still an issue?

~no, it shouldn't, if you still have the issue you should open an issue with a repro so we can take a look~

<navigation> is an HTML5 element? isn't that <nav>

You're right @LinusBorg , I thought he was getting an error with time 馃槄

Sorry, the HTML5 tag is

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bdedardel picture bdedardel  路  3Comments

loki0609 picture loki0609  路  3Comments

franciscolourenco picture franciscolourenco  路  3Comments

fergaldoyle picture fergaldoyle  路  3Comments

seemsindie picture seemsindie  路  3Comments