Skip to content
This repository has been archived by the owner on Nov 25, 2019. It is now read-only.

Require being in the same tree for validity #15

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
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
3 changes: 3 additions & 0 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,9 @@ urlPrefix: https://dom.spec.whatwg.org/#concept-; type: dfn;

: Output
:: Boolean

1. If |sr|'s [=start position=]'s [=root=] is not the same as |sr|'s [=end position=]'s [=root=],
1. Return False

1. If |sr|'s [=end position=] [=StaticRange/position/is less than=] |sr|'s [=start position=],
1. Return False
Expand Down
11 changes: 9 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1662,7 +1662,7 @@ <h3 class="heading settled" data-level="2.3" id="to-is-collapsed"><span class="s
</dl>
<ol>
<li data-md="">
<p>If <var>sr</var>’s <a data-link-type="dfn" href="#staticrange-start-position" id="ref-for-staticrange-start-position-3">start position</a> <a data-link-type="dfn" href="#staticrange-position-is-equal-to" id="ref-for-staticrange-position-is-equal-to-1">is equal to</a> <var>sr</var>’s <a data-link-type="dfn" href="#staticrange-end-position" id="ref-for-staticrange-end-position-3">end position</a>,</p>
<p>If <var>sr</var>’s <a data-link-type="dfn" href="#staticrange-start-position" id="ref-for-staticrange-start-position-3">start position</a>'s <a data-link-type="dfn" href="https://www.w3.org/TR/dom41/#concept-tree-root">root</a> is not the same as <var>sr</var>’s <a data-link-type="dfn" href="#staticrange-end-position" id="ref-for-staticrange-end-position-3">end position</a>'s <a data-link-type="dfn" href="https://www.w3.org/TR/dom41/#concept-tree-root">root</a>,</p>
<ol>
<li data-md="">
<p>Return True</p>
Expand All @@ -1684,6 +1684,13 @@ <h3 class="heading settled" data-level="2.4" id="to-is-valid"><span class="secno
<p>Boolean</p>
</dl>
<ol>
<li data-md="">
<p>If <var>sr</var>’s <a data-link-type="dfn" href="#staticrange-end-position" id="ref-for-staticrange-end-position-4">end position</a>'s
<a data-link-type="dfn" href="#staticrange-position-is-less-than" id="ref-for-staticrange-position-is-less-than-1">is less than</a> <var>sr</var>’s <a data-link-type="dfn" href="#staticrange-start-position" id="ref-for-staticrange-start-position-4">start position</a>,</p>
<ol>
<li data-md="">
<p>Return False</p>
</ol>
<li data-md="">
<p>If <var>sr</var>’s <a data-link-type="dfn" href="#staticrange-end-position" id="ref-for-staticrange-end-position-4">end position</a> <a data-link-type="dfn" href="#staticrange-position-is-less-than" id="ref-for-staticrange-position-is-less-than-1">is less than</a> <var>sr</var>’s <a data-link-type="dfn" href="#staticrange-start-position" id="ref-for-staticrange-start-position-4">start position</a>,</p>
<ol>
Expand Down Expand Up @@ -2017,4 +2024,4 @@ <h2 class="no-num no-ref heading settled" id="idl-index"><span class="content">I
}

});
</script>
</script>