Skip to content

Commit

Permalink
[giow] (0) Focus the dialog for dialog.show() as well.
Browse files Browse the repository at this point in the history
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=24718
Affected topics: CSS, DOM APIs, HTML

git-svn-id: http://svn.whatwg.org/webapps@8487 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Feb 20, 2014
1 parent 6396fb9 commit be2d03b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
4 changes: 3 additions & 1 deletion complete.html
Expand Up @@ -47608,7 +47608,7 @@ <h5 id=autofocusing-a-form-control:-the-autofocus-attribute><span class=secno>4.
user's attention. The <a href=#task-source>task source</a> for this task is the <a href=#user-interaction-task-source>user interaction task
source</a>.</li>

</ol><p class=note>This handles the automatic focusing during document load. The <code title=dom-dialog-showModal><a href=#dom-dialog-showmodal>showModal()</a></code> method of <code><a href=#the-dialog-element>dialog</a></code> elements also
</ol><!--CLEANUP--><p class=note>This handles the automatic focusing during document load. The <code title=dom-dialog-show><a href=#dom-dialog-show>show()</a></code> and <code title=dom-dialog-showModal><a href=#dom-dialog-showmodal>showModal()</a></code> methods of <code><a href=#the-dialog-element>dialog</a></code> elements also
processes the <code title=attr-fe-autofocus><a href=#attr-fe-autofocus>autofocus</a></code> attribute.</p>

<p class=note>Focusing the control does not imply that the user agent must focus the browser
Expand Down Expand Up @@ -52054,6 +52054,8 @@ <h4 id=the-dialog-element><span class=secno>4.11.7 </span>The <dfn><code>dialog<
<a href=#set-up-the-position>set up the position</a> of the <code><a href=#the-dialog-element>dialog</a></code> element, using that argument as the
anchor. Otherwise, set the <code><a href=#the-dialog-element>dialog</a></code> to the <a href=#normal-alignment>normal alignment</a> mode.</li>

<li><p>Run the <a href=#dialog-focusing-steps>dialog focusing steps</a> for the <code><a href=#the-dialog-element>dialog</a></code> element.</li>

</ol><hr><p>Each <code><a href=#document>Document</a></code> has a stack of <code><a href=#the-dialog-element>dialog</a></code> elements known as the
<dfn id=pending-dialog-stack>pending dialog stack</dfn>. When a <code><a href=#document>Document</a></code> is created, this stack must be
initialized to be empty.</p>
Expand Down
4 changes: 3 additions & 1 deletion index
Expand Up @@ -47608,7 +47608,7 @@ out of 233&thinsp;257&thinsp;824 bytes available&lt;/meter&gt;&lt;/p&gt;</pre>
user's attention. The <a href=#task-source>task source</a> for this task is the <a href=#user-interaction-task-source>user interaction task
source</a>.</li>

</ol><p class=note>This handles the automatic focusing during document load. The <code title=dom-dialog-showModal><a href=#dom-dialog-showmodal>showModal()</a></code> method of <code><a href=#the-dialog-element>dialog</a></code> elements also
</ol><!--CLEANUP--><p class=note>This handles the automatic focusing during document load. The <code title=dom-dialog-show><a href=#dom-dialog-show>show()</a></code> and <code title=dom-dialog-showModal><a href=#dom-dialog-showmodal>showModal()</a></code> methods of <code><a href=#the-dialog-element>dialog</a></code> elements also
processes the <code title=attr-fe-autofocus><a href=#attr-fe-autofocus>autofocus</a></code> attribute.</p>

<p class=note>Focusing the control does not imply that the user agent must focus the browser
Expand Down Expand Up @@ -52054,6 +52054,8 @@ dictionary <dfn id=relatedeventinit>RelatedEventInit</dfn> : <a href=#eventinit>
<a href=#set-up-the-position>set up the position</a> of the <code><a href=#the-dialog-element>dialog</a></code> element, using that argument as the
anchor. Otherwise, set the <code><a href=#the-dialog-element>dialog</a></code> to the <a href=#normal-alignment>normal alignment</a> mode.</li>

<li><p>Run the <a href=#dialog-focusing-steps>dialog focusing steps</a> for the <code><a href=#the-dialog-element>dialog</a></code> element.</li>

</ol><hr><p>Each <code><a href=#document>Document</a></code> has a stack of <code><a href=#the-dialog-element>dialog</a></code> elements known as the
<dfn id=pending-dialog-stack>pending dialog stack</dfn>. When a <code><a href=#document>Document</a></code> is created, this stack must be
initialized to be empty.</p>
Expand Down
6 changes: 5 additions & 1 deletion source
Expand Up @@ -52277,8 +52277,10 @@ out of 233&#x2009;257&#x2009;824 bytes available&lt;/meter>&lt;/p></pre>

</ol>

<!--CLEANUP-->
<p class="note">This handles the automatic focusing during document load. The <code
data-x="dom-dialog-showModal">showModal()</code> method of <code>dialog</code> elements also
data-x="dom-dialog-show">show()</code> and <code
data-x="dom-dialog-showModal">showModal()</code> methods of <code>dialog</code> elements also
processes the <code data-x="attr-fe-autofocus">autofocus</code> attribute.</p>

<p class="note">Focusing the control does not imply that the user agent must focus the browser
Expand Down Expand Up @@ -57509,6 +57511,8 @@ dictionary <dfn>RelatedEventInit</dfn> : <span>EventInit</span> {
<span>set up the position</span> of the <code>dialog</code> element, using that argument as the
anchor. Otherwise, set the <code>dialog</code> to the <span>normal alignment</span> mode.</p></li>

<li><p>Run the <span>dialog focusing steps</span> for the <code>dialog</code> element.</p></li>

</ol>

<hr>
Expand Down

0 comments on commit be2d03b

Please sign in to comment.