Skip to content

Commit 7802a81

Browse files
author
Simon Pieters
committed
[cssom-view] Use default value in IDL for Element#scrollIntoView's first argument.
1 parent 46702d1 commit 7802a81

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

cssom-view/Overview.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
<h1>CSSOM View Module</h1>
3131

32-
<h2 class="no-num no-toc" id="w3c-doctype">Editor's Draft 27 May 2013</h2>
32+
<h2 class="no-num no-toc" id="w3c-doctype">Editor's Draft 28 May 2013</h2>
3333

3434
<dl>
3535

@@ -88,7 +88,7 @@ <h2 class="no-num no-toc" id="sotd">Status of This Document</h2>
8888
can be found in the <a href="http://www.w3.org/TR/">W3C technical reports
8989
index at http://www.w3.org/TR/.</a></em>
9090

91-
<p>This is the 27 May 2013 Editor's Draft of CSSOM View. Please send
91+
<p>This is the 28 May 2013 Editor's Draft of CSSOM View. Please send
9292
comments to
9393
<a href="mailto:www-style@w3.org?subject=%5Bcssom-view%5D%20">www-style@w3.org</a>
9494
(<a href="http://lists.w3.org/Archives/Public/www-style/">archived</a>)
@@ -642,7 +642,7 @@ <h2 id="extensions-to-the-element-interface"><span class="secno">7 </span>Extens
642642
<pre class="idl">partial interface <a class="external" href="http://dom.spec.whatwg.org/#element">Element</a> {
643643
<a href="#clientrectlist">ClientRectList</a> <a href="#dom-element-getclientrects" title="dom-Element-getClientRects">getClientRects</a>();
644644
<a href="#clientrect">ClientRect</a> <a href="#dom-element-getboundingclientrect" title="dom-Element-getBoundingClientRect">getBoundingClientRect</a>();
645-
void <a href="#dom-element-scrollintoview" title="dom-Element-scrollIntoView">scrollIntoView</a>(optional boolean top, optional <a href="#scrolloptions">ScrollOptions</a> options);
645+
void <a href="#dom-element-scrollintoview" title="dom-Element-scrollIntoView">scrollIntoView</a>(optional boolean top = true, optional <a href="#scrolloptions">ScrollOptions</a> options);
646646
attribute (double or <a href="#scrolloptions">ScrollOptions</a>) <a href="#dom-element-scrolltop" title="dom-Element-scrollTop">scrollTop</a>;
647647
attribute (double or <a href="#scrolloptions">ScrollOptions</a>) <a href="#dom-element-scrollleft" title="dom-Element-scrollLeft">scrollLeft</a>;
648648
readonly attribute double <a href="#dom-element-scrollwidth" title="dom-Element-scrollWidth">scrollWidth</a>;
@@ -713,7 +713,7 @@ <h2 id="extensions-to-the-element-interface"><span class="secno">7 </span>Extens
713713
<ol>
714714
<li><p>If the element does not have any associated <a href="#css-layout-box">CSS layout box</a> terminate these steps.</li>
715715
<li><p><a href="#scroll-an-element-into-view" title="scroll an element into view">Scroll the element into view</a> with the
716-
<i title="">align to top flag</i> set if <var title="">top</var> is true or omitted, and the scroll behavior being the value of the <code title="">behavior</code>
716+
<i title="">align to top flag</i> set if <var title="">top</var> is true, and the scroll behavior being the value of the <code title="">behavior</code>
717717
dictionary member of <var title="">options</var>.</li>
718718
</ol>
719719

cssom-view/Overview.src.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ <h2>Extensions to the <code title>Element</code> Interface</h2>
612612
<pre class=idl>partial interface <span data-anolis-spec=dom>Element</span> {
613613
<span>ClientRectList</span> <span title=dom-Element-getClientRects>getClientRects</span>();
614614
<span>ClientRect</span> <span title=dom-Element-getBoundingClientRect>getBoundingClientRect</span>();
615-
void <span title=dom-Element-scrollIntoView>scrollIntoView</span>(optional boolean top, optional <span>ScrollOptions</span> options);
615+
void <span title=dom-Element-scrollIntoView>scrollIntoView</span>(optional boolean top = true, optional <span>ScrollOptions</span> options);
616616
attribute (double or <span>ScrollOptions</span>) <span title=dom-Element-scrollTop>scrollTop</span>;
617617
attribute (double or <span>ScrollOptions</span>) <span title=dom-Element-scrollLeft>scrollLeft</span>;
618618
readonly attribute double <span title=dom-Element-scrollWidth>scrollWidth</span>;
@@ -681,7 +681,7 @@ <h2>Extensions to the <code title>Element</code> Interface</h2>
681681
<ol>
682682
<li><p>If the element does not have any associated <span>CSS layout box</span> terminate these steps.</p></li>
683683
<li><p><span title='scroll an element into view'>Scroll the element into view</span> with the
684-
<i title>align to top flag</i> set if <var title>top</var> is true or omitted, and the scroll behavior being the value of the <code title>behavior</code>
684+
<i title>align to top flag</i> set if <var title>top</var> is true, and the scroll behavior being the value of the <code title>behavior</code>
685685
dictionary member of <var title>options</var>.</p></li>
686686
</ol>
687687

0 commit comments

Comments
 (0)