Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add history.index #2944

Merged
merged 1 commit into from
Aug 23, 2017
Merged
Changes from all commits
Commits
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
19 changes: 18 additions & 1 deletion source
Original file line number Diff line number Diff line change
Expand Up @@ -80207,6 +80207,7 @@ callback <dfn>FrameRequestCallback</dfn> = void (<span>DOMHighResTimeStamp</span
<pre class="idl">enum <dfn>ScrollRestoration</dfn> { "<span data-x="dom-ScrollRestoration-auto">auto</span>", "<span data-x="dom-ScrollRestoration-manual">manual</span>" };

interface <dfn>History</dfn> {
readonly attribute unsigned long <span data-x="dom-history-index">index</span>;
readonly attribute unsigned long <span data-x="dom-history-length">length</span>;
attribute <span>ScrollRestoration</span> <span data-x="dom-history-scroll-restoration">scrollRestoration</span>;
readonly attribute any <span data-x="dom-history-state">state</span>;
Expand All @@ -80219,7 +80220,16 @@ interface <dfn>History</dfn> {

<dl class="domintro">

<dt><var>window</var> . <code subdfn data-x="dom-history">history</code> . <code subdfn data-x="dom-history-length">length</code></dt>
<dt><var>window</var> . <code subdfn data-x="dom-history">history</code> . <code subdfn data-x="dom-history-index">index</code></dt>

<dd>

<p>Returns the index of the <span>current entry of the joint session history</span> within the
<span>joint session history</span>.</p>

</dd>

<dt><var>window</var> . <code data-x="dom-history">history</code> . <code subdfn data-x="dom-history-length">length</code></dt>

<dd>

Expand Down Expand Up @@ -80326,6 +80336,13 @@ interface <dfn>History</dfn> {

<div w-nodev>

<p>The <dfn><code data-x="dom-history-index">length</code></dfn> attribute of the
<code>History</code> interface, on getting, must return the index of the <span>current entry of
the joint session history</span> within the <span>top-level browsing context</span>'s <span>joint
session history</span>. If this <code>History</code> object is associated with a
<code>Document</code> that is not <span>fully active</span>, getting must instead throw a
<span>"<code>SecurityError</code>"</span> <code>DOMException</code>.</p>

<p>The <dfn><code data-x="dom-history-length">length</code></dfn> attribute of the
<code>History</code> interface, on getting, must return the number of entries in the
<span>top-level browsing context</span>'s <span>joint session history</span>. If this
Expand Down