Skip to content

Commit

Permalink
[Fix #192, #289] Rename createShadowRoot to attachShadow.
Browse files Browse the repository at this point in the history
  • Loading branch information
hayatoito committed Aug 6, 2015
1 parent dc9ecca commit a8a9421
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/shadow/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1193,7 +1193,7 @@ <h3>The <code>ShadowRoot</code> interface</h3>
<h3>Extensions to <code>Element</code> Interface</h3>

<dl class="idl" title="partial interface Element">
<dt>ShadowRoot createShadowRoot(ShadowRootInit shadowRootInitDict)</dt>
<dt>ShadowRoot attachShadow(ShadowRootInit shadowRootInitDict)</dt>
<dd>
When invoked, these steps <strong>must</strong> be run:
<ol>
Expand Down Expand Up @@ -1511,7 +1511,7 @@ <h2>Shadow DOM Example</h2>

function makeShadowTree(storyList)
{
var root = storyList.createShadowRoot({mode: 'open'});
var root = storyList.attachShadow({mode: 'open'});
root.appendChild(createStyle());
root.appendChild(createStoryGroup('breaking', '.breaking'));
root.appendChild(createStoryGroup('other', ''));
Expand Down Expand Up @@ -1541,7 +1541,7 @@ <h2>Shadow DOM Example</h2>

function makeElectionShadowTree(storyList)
{
var root = storyList.createShadowRoot({mode: 'open'});
var root = storyList.attachShadow({mode: 'open'});
// Add and style election story box.
root.appendChild(createElectionStyle());
root.appendChild(createStoryGroup('election', '.election'));
Expand Down

0 comments on commit a8a9421

Please sign in to comment.