lisongx / wikidata-elements

Custom HTML elements to reuse Wikidata
https://wikidata-elements.js.org
MIT License
14 stars 2 forks source link

Self closing `wd-entity` usage would prevent page from rendering below #12

Open lisongx opened 4 years ago

lisongx commented 4 years ago

In current version (0.1.0)

  <wd-entity entity-id="Q42" property="P569" />
  <a is="wd-link" entity-id="Q80" property="P856" target="_blank" />
    <wd-entity entity-id="Q80" property="P856" lang="en" />
  </a>

If you using wd-entity this way, the a tag below will not be render at all. If you are using <wd-entity entity-id="Q42" property="P569" ></wd-entity>, this would be fine

See a live demo of this bug: https://jsbin.com/tayoverohe/edit