Skip to content

Commit

Permalink
WIP: update xrefs to use new IntersectionObserver terms
Browse files Browse the repository at this point in the history
  • Loading branch information
zcorpan committed Oct 22, 2020
1 parent 440fde8 commit 7b36012
Showing 1 changed file with 11 additions and 35 deletions.
46 changes: 11 additions & 35 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -6927,15 +6927,8 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
<li><p>Let <var>doc</var> be <var>element</var>'s <span>node document</span>.</p></li>

<li>
<p>If <var>doc</var>'s <span>lazy load intersection observer</span> is null, set it to a new
<code>IntersectionObserver</code> instance, initialized as follows:</p>

<p class="XXX">The intention is to use the original value of the
<code>IntersectionObserver</code> constructor. However, we're forced to use the
JavaScript-exposed constructor in this specification, until <cite>Intersection Observer</cite>
exposes low-level hooks for use in specifications. See bug <a
href="https://github.com/w3c/IntersectionObserver/issues/427">w3c/IntersectionObserver#427</a>
which tracks this. <ref spec="INTERSECTIONOBSERVER"></p>
<p>If <var>doc</var>'s <span>lazy load intersection observer</span> is null, set it to the
result of <span>initialize a new IntersectionObserver</span>, initialized as follows:</p>

<ul>
<li>
Expand All @@ -6944,36 +6937,31 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute

<ol>
<li>
<p>For each <var>entry</var> in <var>entries</var> <span class="XXX">using a method of
<p>For each <var>entry</var> in <var>entries</var> (TODO) <span class="XXX">using a method of
iteration which does not trigger developer-modifiable array accessors or
iteration hooks</span>:</p>


<ol>
<li><p>Let <var>resumptionSteps</var> be null.</p></li>

<li><p>If <var>entry</var>.<code
data-x="dom-IntersectionObserverEntry-isIntersecting">isIntersecting</code> is true, then
data-x="dom-IntersectionObserverEntry-isIntersecting">isIntersecting</code> (TODO) is true, then
set <var>resumptionSteps</var> to <var>entry</var>.<code
data-x="dom-IntersectionObserverEntry-target">target</code>'s
<span>lazy load resumption steps</span>.</p></li>

<li><p>If <var>resumptionSteps</var> is null, then return.</p></li>

<li><p><span>Stop intersection-observing a lazy loading element</span> for
<var>entry</var>.<code data-x="dom-IntersectionObserverEntry-target">target</code>.</p></li>
<var>entry</var>.<code data-x="dom-IntersectionObserverEntry-target">target</code> (TODO).</p></li>

<li><p>Set <var>entry</var>.<code
data-x="dom-IntersectionObserverEntry-target">target</code>'s <span>lazy load resumption
data-x="dom-IntersectionObserverEntry-target">target</code>'s (TODO) <span>lazy load resumption
steps</span> to null.</p></li>

<li><p>Invoke <var>resumptionSteps</var>.</p></li>
</ol>

<p class="XXX">The intention is to use the original value of the
<code data-x="dom-IntersectionObserverEntry-isIntersecting">isIntersecting</code> and
<code data-x="dom-IntersectionObserverEntry-target">target</code> getters. See <a
href="https://github.com/w3c/IntersectionObserver/issues/427">w3c/IntersectionObserver#427</a>.
<ref spec="INTERSECTIONOBSERVER"></p>
</li>
</ol>
</li>
Expand All @@ -6995,14 +6983,8 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
</li>

<li>
<p>Call <var>doc</var>'s <span>lazy load intersection observer</span>'s <code
data-x="dom-IntersectionObserver-observe">observe</code> method with <var>element</var> as the
argument.</p>

<p class="XXX">The intention is to use the original value of the <code
data-x="dom-IntersectionObserver-observe">observe</code> method. See <a
href="https://github.com/w3c/IntersectionObserver/issues/427">w3c/IntersectionObserver#427</a>.
<ref spec="INTERSECTIONOBSERVER"></p>
<p>Run the <span>observe a target Element</span> algorithm, providing <var>doc</var>'s
<span>lazy load intersection observer</span> and <var>element</var>.</p>
</li>
</ol>

Expand All @@ -7016,14 +6998,8 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
null.</p></li>

<li>
<p>Call <var>doc</var>'s <span>lazy load intersection observer</span> <code
data-x="dom-IntersectionObserver-unobserve">unobserve</code> method with <var>element</var> as
the argument.</p>

<p class="XXX">The intention is to use the original value of the <code
data-x="dom-IntersectionObserver-unobserve">unobserve</code> method. See <a
href="https://github.com/w3c/IntersectionObserver/issues/427">w3c/IntersectionObserver#427</a>.
<ref spec="INTERSECTIONOBSERVER"></p>
<p>Run the <span>unobserve a target Element</span> algorithm, providing <var>doc</var>'s
<span>lazy load intersection observer</span> and <var>element</var>.</p>
</li>
</ol>

Expand Down

0 comments on commit 7b36012

Please sign in to comment.