Skip to content

Commit

Permalink
Merge pull request #168 from Hiroyou/submissions/hiroyou-4
Browse files Browse the repository at this point in the history
The only first <shadow> element is used
  • Loading branch information
hayatoito committed Jun 10, 2013
2 parents 0468cae + 33f13c7 commit 94a708d
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
14 changes: 14 additions & 0 deletions shadow-dom/shadow-trees/hosting-multiple-shadow-trees-004-ref.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Shadow DOM - The only first shadow element is used.</title>
<link rel="author" title="Hiroyuki Hayashi" href="mailto:hyshhryk@gmail.com">
</head>
<body>
<div>
<p>1st shadow tree's node</p>
<p>2nd shadow tree's node</p>
</div>
</body>
</html>
23 changes: 23 additions & 0 deletions shadow-dom/shadow-trees/hosting-multiple-shadow-trees-004.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Shadow DOM Test - The only first shadow element is used.</title>
<link rel="reference" href="hosting-multiple-shadow-trees-004-ref.html">
<link rel="author" title="Hiroyuki Hayashi" href="mailto:hyshhryk@gmail.com">
<link rel="help" href="http://www.w3.org/TR/shadow-dom/#multiple-shadow-trees">
<script src="../testcommon.js"></script>
<meta name="assert" content="The only first <shadow> element is used when the shadow tree has multiple <shadow> elements. Original tree's node is not inserted into the second <shadow> element.">
</head>
<body>
<div id='host'>
<p>Original tree's node</p>
</div>
<script>
var shadowRoot = createSR(host);
shadowRoot.innerHTML = "<div><p>1st shadow tree's node</p></div>";
var shadowRoot = createSR(host);
shadowRoot.innerHTML = "<div><shadow></shadow><p>2nd shadow tree's node</p><shadow></shadow></div>";
</script>
</body>
</html>

0 comments on commit 94a708d

Please sign in to comment.