使用某些纸张/核心元素时在dartium中的警告 [英] Warnings in dartium when using some paper/core elements
问题描述
我试图使用纸标签,纸标签和核心页面元素,但dartium显示一堆警告,如:
I'm trying to use paper-tabs, paper-tab and core-pages elements but dartium shows a bunch of warnings like:
(from html5lib) Unexpected non-space characters. Expected DOCTYPE.
package:paper_elements/paper_tabs.dart:1:1
(from html5lib) Unexpected character after attribute value.
package:paper_elements/paper_tabs.dart:38:9
>
And then:
custom element with name "paper-tabs" not found.
您可能猜到这些元素不起作用。其他元素像核心覆盖,核心,纸按钮似乎工作正常。我使用dart 1.9.0-dev.3.0,core_elements 0.6.0 + 5,paper_elements 0.6.1和聚合物0.15.5 + 4。
As you may guess these elements doesn't work. Other elements like core-overlay, core-field, paper-button seems to work fine. I'm using dart 1.9.0-dev.3.0, core_elements 0.6.0+5, paper_elements 0.6.1 and polymer 0.15.5+4. What may be the cause of such behaviour?
推荐答案
这是由于某些html导入指向dart文件而不是html文件导致的of foo_element.html(此处的代码)。将这些导入交换为指向html文件将删除所有警告。
This is caused by some html imports pointing to dart files instead of html files inside of foo_element.html (code here). Swapping those imports to point to html files removes all warnings.
这篇关于使用某些纸张/核心元素时在dartium中的警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!