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

Commit

Permalink
Clean up domintro for cloneNode/importNode/observe thanks to Arkadiusz
Browse files Browse the repository at this point in the history
  • Loading branch information
annevk committed Mar 17, 2014
1 parent ab7d0c1 commit 2fef651
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 24 deletions.
30 changes: 18 additions & 12 deletions Overview.src.html
Original file line number Diff line number Diff line change
Expand Up @@ -2624,11 +2624,16 @@ <h4>Interface <code>MutationObserver</code></h4>

<dt><code title=dom-MutationObserverInit-attributes>attributes</code>
<dd><p>Set to true if mutations to <var title>target</var>'s
<span title=concept-attribute>attributes</span> are to be observed.
<span title=concept-attribute>attributes</span> are to be observed. Can be omitted if
<code title=dom-MutationObserverInit-attributeOldValue>attributeOldValue</code> and/or
<code title=dom-MutationObserverInit-attributeFilter>attributeFilter</code> is
specified.

<dt><code title=dom-MutationObserverInit-characterData>characterData</code>
<dd><p>Set to true if mutations to <var title>target</var>'s
<span title=concept-CD-data>data</span> are to be observed.
<span title=concept-CD-data>data</span> are to be observed. Can be omitted if
<code title=dom-MutationObserverInit-characterDataOldValue>characterDataOldValue</code>
is specified.

<dt><code title=dom-MutationObserverInit-subtree>subtree</code>
<dd><p>Set to true if mutations to not just <var title>target</var>, but
Expand All @@ -2638,16 +2643,16 @@ <h4>Interface <code>MutationObserver</code></h4>

<dt><code title=dom-MutationObserverInit-attributeOldValue>attributeOldValue</code>
<dd><p>Set to true if
<code title=dom-MutationObserverInit-attributes>attributes</code> is set
to true and <var title>target</var>'s
<code title=dom-MutationObserverInit-attributes>attributes</code> is true or omitted
and <var title>target</var>'s
<span title=concept-attribute>attribute</span>
<span title=concept-attribute-value>value</span> before the mutation
needs to be recorded.

<dt><code title=dom-MutationObserverInit-characterDataOldValue>characterDataOldValue</code>
<dd><p>Set to true if
<code title=dom-MutationObserverInit-characterData>characterData</code>
is set to true and <var title>target</var>'s
is set to true or omitted and <var title>target</var>'s
<span title=concept-CD-data>data</span> before the mutation
needs to be recorded.

Expand All @@ -2656,7 +2661,8 @@ <h4>Interface <code>MutationObserver</code></h4>
<span title=concept-attribute-local-name>local names</span> (without
<span title=concept-attribute-namespace>namespace</span>) if not all
<span title=concept-attribute>attribute</span> mutations need to be
observed.
observed and <code title=dom-MutationObserverInit-attributes>attributes</code> is true
or omitted.
</dl>

<dt><code><var title>observer</var> . <span title=dom-MutationObserver-disconnect>disconnect</span>()</code>
Expand Down Expand Up @@ -3511,10 +3517,10 @@ <h3>Interface <code>Node</code></h3>
<hr>

<dl class=domintro>
<dt><code><var title>node</var> . <span title=dom-Node-cloneNode>cloneNode</span>([<var title>deep</var>])</code>
<dt><code><var title>node</var> . <span title=dom-Node-cloneNode>cloneNode</span>([<var title>deep</var> = false])</code>
<dd><p>Returns a copy of <var title>node</var>. If
<var title>deep</var> is true or omitted, the copy also includes the
<var title>node</var> <span title=concept-tree-child>children</span>.
<var title>deep</var> is true, the copy also includes the
<var title>node</var>'s <span title=concept-tree-descendant>descendants</span>.

<dt><code><var title>node</var> . <span title=dom-Node-isEqualNode>isEqualNode</span>(<var title>other</var>)</code>
<dd><p>Returns whether <var title>node</var> and <var title>other</var>
Expand Down Expand Up @@ -4652,12 +4658,12 @@ <h3>Interface <code>Document</code></h3>
<hr>

<dl class=domintro>
<dt><var title>clone</var> = <var title>document</var> . <code title=dom-Document-importNode>importNode(<var>node</var> [, <var>deep</var>])</code>
<dt><var title>clone</var> = <var title>document</var> . <code title=dom-Document-importNode>importNode(<var>node</var> [, <var>deep</var> = false])</code>
<dd>
<dd>
<p>Returns a copy of <var title>node</var>. If
<var title>deep</var> is true or omitted, the copy also includes the
<var title>node</var> <span title=concept-tree-child>children</span>.
<var title>deep</var> is true, the copy also includes the
<var title>node</var>'s <span title=concept-tree-descendant>descendants</span>.

<p>If <var title>node</var> is a
<span title=concept-document>document</span> throws a
Expand Down
30 changes: 18 additions & 12 deletions dom-core.html
Original file line number Diff line number Diff line change
Expand Up @@ -2705,11 +2705,16 @@ <h4 id="interface-mutationobserver"><span class="secno">5.3.1 </span>Interface <

<dt><code title="dom-MutationObserverInit-attributes">attributes</code>
<dd><p>Set to true if mutations to <var title="">target</var>'s
<a href="#concept-attribute" title="concept-attribute">attributes</a> are to be observed.
<a href="#concept-attribute" title="concept-attribute">attributes</a> are to be observed. Can be omitted if
<code title="dom-MutationObserverInit-attributeOldValue">attributeOldValue</code> and/or
<code title="dom-MutationObserverInit-attributeFilter">attributeFilter</code> is
specified.

<dt><code title="dom-MutationObserverInit-characterData">characterData</code>
<dd><p>Set to true if mutations to <var title="">target</var>'s
<a href="#concept-cd-data" title="concept-CD-data">data</a> are to be observed.
<a href="#concept-cd-data" title="concept-CD-data">data</a> are to be observed. Can be omitted if
<code title="dom-MutationObserverInit-characterDataOldValue">characterDataOldValue</code>
is specified.

<dt><code title="dom-MutationObserverInit-subtree">subtree</code>
<dd><p>Set to true if mutations to not just <var title="">target</var>, but
Expand All @@ -2719,16 +2724,16 @@ <h4 id="interface-mutationobserver"><span class="secno">5.3.1 </span>Interface <

<dt><code title="dom-MutationObserverInit-attributeOldValue">attributeOldValue</code>
<dd><p>Set to true if
<code title="dom-MutationObserverInit-attributes">attributes</code> is set
to true and <var title="">target</var>'s
<code title="dom-MutationObserverInit-attributes">attributes</code> is true or omitted
and <var title="">target</var>'s
<a href="#concept-attribute" title="concept-attribute">attribute</a>
<a href="#concept-attribute-value" title="concept-attribute-value">value</a> before the mutation
needs to be recorded.

<dt><code title="dom-MutationObserverInit-characterDataOldValue">characterDataOldValue</code>
<dd><p>Set to true if
<code title="dom-MutationObserverInit-characterData">characterData</code>
is set to true and <var title="">target</var>'s
is set to true or omitted and <var title="">target</var>'s
<a href="#concept-cd-data" title="concept-CD-data">data</a> before the mutation
needs to be recorded.

Expand All @@ -2737,7 +2742,8 @@ <h4 id="interface-mutationobserver"><span class="secno">5.3.1 </span>Interface <
<a href="#concept-attribute-local-name" title="concept-attribute-local-name">local names</a> (without
<a href="#concept-attribute-namespace" title="concept-attribute-namespace">namespace</a>) if not all
<a href="#concept-attribute" title="concept-attribute">attribute</a> mutations need to be
observed.
observed and <code title="dom-MutationObserverInit-attributes">attributes</code> is true
or omitted.
</dl>

<dt><code><var title="">observer</var> . <a href="#dom-mutationobserver-disconnect" title="dom-MutationObserver-disconnect">disconnect</a>()</code>
Expand Down Expand Up @@ -3592,10 +3598,10 @@ <h3 id="interface-node"><span class="secno">5.4 </span>Interface <code><a href="
<hr>

<dl class="domintro">
<dt><code><var title="">node</var> . <a href="#dom-node-clonenode" title="dom-Node-cloneNode">cloneNode</a>([<var title="">deep</var>])</code>
<dt><code><var title="">node</var> . <a href="#dom-node-clonenode" title="dom-Node-cloneNode">cloneNode</a>([<var title="">deep</var> = false])</code>
<dd><p>Returns a copy of <var title="">node</var>. If
<var title="">deep</var> is true or omitted, the copy also includes the
<var title="">node</var> <a href="#concept-tree-child" title="concept-tree-child">children</a>.
<var title="">deep</var> is true, the copy also includes the
<var title="">node</var>'s <a href="#concept-tree-descendant" title="concept-tree-descendant">descendants</a>.

<dt><code><var title="">node</var> . <a href="#dom-node-isequalnode" title="dom-Node-isEqualNode">isEqualNode</a>(<var title="">other</var>)</code>
<dd><p>Returns whether <var title="">node</var> and <var title="">other</var>
Expand Down Expand Up @@ -4728,12 +4734,12 @@ <h3 id="interface-document"><span class="secno">5.5 </span>Interface <code><a hr
<hr>

<dl class="domintro">
<dt><var title="">clone</var> = <var title="">document</var> . <code title="dom-Document-importNode"><a href="#dom-document-importnode">importNode(<var>node</var> [, <var>deep</var>])</a></code>
<dt><var title="">clone</var> = <var title="">document</var> . <code title="dom-Document-importNode"><a href="#dom-document-importnode">importNode(<var>node</var> [, <var>deep</var> = false])</a></code>
<dd>
<dd>
<p>Returns a copy of <var title="">node</var>. If
<var title="">deep</var> is true or omitted, the copy also includes the
<var title="">node</var> <a href="#concept-tree-child" title="concept-tree-child">children</a>.
<var title="">deep</var> is true, the copy also includes the
<var title="">node</var>'s <a href="#concept-tree-descendant" title="concept-tree-descendant">descendants</a>.

<p>If <var title="">node</var> is a
<a href="#concept-document" title="concept-document">document</a> throws a
Expand Down

0 comments on commit 2fef651

Please sign in to comment.