Skip to content
Merged
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
f11ebaa
Add the scrollOptions for Element.focus()
Jun 26, 2017
c411c4f
Add scrollOptions to the Element.focus() algorithm
Jun 26, 2017
20abf8a
Merge branch 'master' into focus-scroll-options
Jun 28, 2017
a91b5b6
Merge branch 'master' into focus-scroll-options
Jul 17, 2017
5314878
Modify the description of Element.focus(scrollOptions)
Jul 17, 2017
eaace4e
Change the naming of the option for Element.focus()
Jul 17, 2017
d0f9a42
Update the IDL of HTMLElement with the FocusOptions
Jul 17, 2017
4bf4a2c
Update the description of Element.focus()following IDL
Jul 17, 2017
0d43dd5
Merge branch 'master' into focus-scroll-options
Jul 17, 2017
fc80561
Modify the algorithm of focus() with FocusOptions referencing ScrollI…
Jul 17, 2017
b6d820f
Merge branch 'master' into focus-scroll-options
Aug 1, 2017
733f8c0
Modify the WebIDL of Element.focus()
Aug 1, 2017
f1790cd
Modify the WebIDL of Element.focus()
Aug 9, 2017
b2e24cb
Merge branch 'focus-scroll-options' of https://github.com/jihyerish/h…
Aug 9, 2017
874554b
Modify the description of Element.focus([ options ])
Aug 9, 2017
7c0e457
Modify the description of Element.focus([ options ])
Aug 9, 2017
f2229ff
Define the HTTP Refresh header
annevk Aug 9, 2017
ca8d392
Move the HTML parts of wiki FAQ here
foolip Aug 10, 2017
832ed80
Remove unimplemented feature forceSpellCheck
ayg Aug 11, 2017
de91610
Cross-link FAQs and update links
foolip Aug 11, 2017
18edaec
Editorial: use sentence case for "Animation frames"
j9t Aug 14, 2017
a76187f
Move base64 algorithms to Infra
annevk Aug 15, 2017
ef3518c
Update the reference to Media Fragments URI
xfq Aug 14, 2017
62d912b
Fix and tweak module worker example
domenic Aug 15, 2017
b775f9e
Regression fix: Lost ampersands in Character Reference State's Anythi…
JonathanO Aug 16, 2017
928474f
Shadow: fix definition of form.elements
hzr Aug 16, 2017
f7a7242
Fix the description of Element.focus(option)
Aug 16, 2017
eb8e1a3
Merge branch 'master' into focus-scroll-options
Aug 16, 2017
cec5173
Fix the description of Element.focus(options)
Aug 17, 2017
752a755
Fix the steps of Element.focus(options)about handling the options
Aug 17, 2017
144dcda
Merge branch 'master' into focus-scroll-options
Aug 21, 2017
d575ec7
Fix source from editorial reviews
Aug 21, 2017
b1ddf63
Fix editoral things related to Element.focus(options)
Aug 21, 2017
46eaee4
Modify the algorithm of Element.focus(options)
Aug 28, 2017
000a5dd
Merge branch 'master' into focus-scroll-options
Aug 28, 2017
deaa3b5
Use FocusScrollOptions instead of ScrollIntoViewOptions
zcorpan Oct 16, 2017
af25a5f
Editorial: wording tweaks to dom-intro
zcorpan Oct 16, 2017
0cc76be
Correctly invoke 'scroll an element into view' algorithm
zcorpan Oct 16, 2017
5b5487f
Use only preventScroll as an option for focus()
jihyerish Oct 20, 2017
f0f9a7b
Explain the expected result when preventScroll is false
jihyerish Oct 20, 2017
d01c335
Fix the merge conflict
jihyerish Oct 20, 2017
8cee04b
Use scrollOptions and scrollIntoViewOptions as UA-defined values when…
jihyerish Oct 20, 2017
c79f16d
Indentation fixes
zcorpan Oct 20, 2017
e0f635f
Tweak markup for auto enum value
zcorpan Oct 20, 2017
b955325
Small tweaks
domenic Oct 25, 2017
15e66cf
Undo some line-wrapping changes in unrelated areas
domenic Oct 25, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 24 additions & 5 deletions source
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -9983,7 +9983,7 @@ interface <dfn>HTMLElement</dfn> : <span>Element</span> {
[<span>CEReactions</span>] attribute boolean <span data-x="dom-hidden">hidden</span>;
void <span data-x="dom-click">click</span>();
[<span>CEReactions</span>] attribute long <span data-x="dom-tabindex">tabIndex</span>;
void <span data-x="dom-focus">focus</span>();
void <span data-x="dom-focus">focus</span>(optional <span>FocusOptions</span> options);
void <span data-x="dom-blur">blur</span>();
[<span>CEReactions</span>] attribute DOMString <span data-x="dom-accessKey">accessKey</span>;
readonly attribute DOMString <span data-x="dom-accessKeyLabel">accessKeyLabel</span>;
Expand All @@ -9992,6 +9992,7 @@ interface <dfn>HTMLElement</dfn> : <span>Element</span> {

[<span>CEReactions</span>] attribute [TreatNullAs=EmptyString] DOMString <span data-x="dom-innerText">innerText</span>;
};

<span>HTMLElement</span> implements <span>GlobalEventHandlers</span>;
<span>HTMLElement</span> implements <span>DocumentAndElementEventHandlers</span>;
<span>HTMLElement</span> implements <span>ElementContentEditable</span>;
Expand Down Expand Up @@ -73563,6 +73564,10 @@ END:VCARD</pre>

<h4>Focus management APIs</h4>

<pre class="idl">dictionary <dfn>FocusOptions</dfn> {
boolean <span data-x="dom-focusoptions-preventscroll">preventScroll</span> = false;
};</pre>

<dl class="domintro">

<dt><var>document</var> . <code subdfn data-x="dom-document-activeElement">activeElement</code></dt>
Expand Down Expand Up @@ -73611,13 +73616,19 @@ END:VCARD</pre>
</dd>
-->

<dt><var>element</var> . <code subdfn data-x="dom-focus">focus</code>()</dt>
<dt><var>element</var> . <code subdfn data-x="dom-focus">focus</code>([ { <code
data-x="dom-focusoptions-preventscroll">preventScroll</code>: true } ])</dt>

<dd>

<p>Moves the focus to the element.</p>

<p>If the element is a <span>browsing context container</span>, moves the focus to the <span>nested browsing context</span> instead.</p>
<p>If the element is a <span>browsing context container</span>, moves the focus to the
<span>nested browsing context</span> instead.</p>

<p>By default, this method also scrolls the element into view. Providing the <code
data-x="dom-focusoptions-preventscroll">preventScroll</code> option and setting it to true
prevents this behavior.</p>

</dd>

Expand Down Expand Up @@ -73715,8 +73726,8 @@ END:VCARD</pre>
system widget (e.g. tab or window) that contained the <span>browsing context</span>, but hostile
sites widely abuse this behavior to the user's detriment.</p>

<p>The <dfn data-dfn-for="HTMLElement"><code data-x="dom-focus">focus()</code></dfn> method on
elements, when invoked, must run the following algorithm:</p>
<p>The <dfn><code data-x="dom-focus">focus(<var>options</var>)</code></dfn> method on elements, when
invoked, must run the following steps:</p>

<ol>

Expand All @@ -73726,6 +73737,13 @@ END:VCARD</pre>

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

<li><p>If the value of the <dfn><code
data-x="dom-focusoptions-preventscroll">preventScroll</code></dfn> dictionary member of
<var>options</var> is false, then <span data-x="scroll an element into view">scroll the element
into view</span> with scroll behavior "<code data-x="">auto</code>", block flow direction
position set to a UA-defined value, and inline base direction position set to a UA-defined
value.</p></li>

<li><p>Unmark the element as <i data-x="locked for focus">locked for focus</i>.</p></li>

</ol>
Expand Down Expand Up @@ -120495,6 +120513,7 @@ INSERT INTERFACES HERE
Jessica Jong,
jfkthame, <!-- GitHub -->
Jian Li,
Jihye Hong,
Jim Jewett,
Jim Ley,
Jim Meehan,
Expand Down