我正在尝试使用 paper-tabs、paper-tab 和 core-pages 元素,但 dartium 显示了一堆警告,例如:
(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
进而:
custom element with name "paper-tabs" not found.
正如您可能猜到的,这些元素不起作用。其他元素如 core-overlay、core-field、paper-button 似乎工作得很好。我使用的是 dart 1.9.0-dev.3.0、core_elements 0.6.0+5、paper_elements 0.6.1 和polymer 0.15.5+4。造成这种行为的原因可能是什么?
这是由一些 html 导入指向 dart 文件而不是 foo_element.html 内的 html 文件引起的(代码在这里 https://github.com/slodko/dart_test2/blob/master/lib/foo_element/foo_element.html#L2)。将这些导入交换为指向 html 文件会删除所有警告。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)