Nev*_*vir 5 web-component polymer
我想从自定义元素的内容中提取第一段(作为摘要).我希望以下工作:
<polymer-element name="x-thing" noscript>
<template>
<segment class="summary">
<content select="p:first-child"></content>
</segment>
<segment>
<content></content>
</segment>
</template>
</polymer-element>
Run Code Online (Sandbox Code Playgroud)
不幸的是,<content select="p:first-child">似乎没有任何匹配:(
只有:not()Shadow DOM规范支持:http://w3c.github.io/webcomponents/spec/shadow/#dfn-matching-criteria
相关错误:http://crbug.com/343332
| 归档时间: |
|
| 查看次数: |
618 次 |
| 最近记录: |