→ Keine Kapselung in HTML
Vier Spec-Entwürfe des W3C
<template id="bookshelf">
<img src="" alt="" style="border: 1px solid red">
</template>
template
-
)fotoalbum
, fotoAlbum
, foto:album
foto-album
link
-Element im HTML head
<link rel="import" href="document.html">
<brick-tabbar id="demo-bar">
<brick-tabbar-tab target="a" selected>
Camera
</brick-tabbar-tab>
<brick-tabbar-tab target="b">
Messages
</brick-tabbar-tab>
<brick-tabbar-tab target="c">
Home
</brick-tabbar-tab>
</brick-tabbar>
<google-chart
type='geo'
height='300px'
width='400px'
data='[["Country", "Popularity"],
["Germany", 200],
["United States", 300],
["Brazil", 400],
["Canada", 500],
["France", 600],
["RU", 700]]'>
</google-chart>
HTML Templates | Custom Elements | Shadow DOM | HTML Imports | |
Chrome/Opera | ✓ | ✓ | ✓ | ✓ |
Firefox | ✓ | ✓ | ✓ | ✓ |
Safari | ✓ | |||
IE |
Are We Componentized Yet? – Jon Rimmer, 10.10.2014
http://jonrimmer.github.io/are-we-componentized-yet