我在一个网站中使用
angular-ui-select,其中样式化的选择字段配置了一个名为ui-select的自己的标签.这很好用,但是执行
W3C validation会导致此错误:
Element
ui-select
not allowed as child of elementdiv
in this context. (Suppressing further errors from this subtree.)
这是一个示例代码:
- <!doctype html>
- <html lang="en">
- <head><title>x</title></head>
- <body>
- <div>
- <ui-select></ui-select>
- </div>
- </body></html>
我明白了< ui-select>不应该在那里,但我怎么能更好地处理这个?