-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #164 from Hiroyou/submissions/hiroyou-3
<shadow> should insert original tree's node
- Loading branch information
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
shadow-dom/shadow-trees/hosting-multiple-shadow-trees-003-ref.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Shadow DOM - The shadow should insert original tree's node if no older shadow tree exists.</title> | ||
<link rel="author" title="Hiroyuki Hayashi" href="mailto:hyshhryk@gmail.com"> | ||
</head> | ||
<body> | ||
<div> | ||
<p>Younger tree's node</p> | ||
<p>Older tree's node</p> | ||
<p>Original tree's node</p> | ||
</div> | ||
</body> | ||
</html> |
23 changes: 23 additions & 0 deletions
23
shadow-dom/shadow-trees/hosting-multiple-shadow-trees-003.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 - Tests shadow should insert original tree's node if no older shadow tree exists.</title> | ||
<link rel="reference" href="hosting-multiple-shadow-trees-003-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 <shadow> should insert original tree's node if no older shadow tree exists."> | ||
</head> | ||
<body> | ||
<div id='host'> | ||
<p>Original tree's node</p> | ||
</div> | ||
<script> | ||
var shadowRoot = createSR(host); | ||
shadowRoot.innerHTML = "<div><p>Older tree's node</p><shadow></shadow></div>"; | ||
var shadowRoot = createSR(host); | ||
shadowRoot.innerHTML = "<div><p>Younger tree's node</p><shadow></shadow></div>"; | ||
</script> | ||
</body> | ||
</html> |