On Github shiawuen / fsg-2013-march-shadow-dom
by shiawuen
<div id="Tmpl" class="hide"> <header></header> <section></section> <div>
/* Real example! */
form dd * {
position: absolute;
some: other;
weird: property;
}
var root = document.querySelector('#change-me').webkitCreateShadowRoot();
root.textContent = 'Hello World!';
root.innerHTML = '';
root.innerHTML = '/o/\\o\\';
because only Chrome have it...at the moment
Thou...not a problem if you only need to support Chrome