Skip to content

Commit 2b2c853

Browse files
committed
nits
1 parent f9368cd commit 2b2c853

1 file changed

Lines changed: 34 additions & 38 deletions

File tree

dom.bs

Lines changed: 34 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -6537,13 +6537,9 @@ interface DocumentType : Node {
65376537
<dfn export id=concept-doctype lt="doctype">doctypes</dfn>.
65386538

65396539
<p><a>Doctypes</a> have an associated
6540-
<dfn export id=concept-doctype-name for=DocumentType>name</dfn>,
6541-
<dfn export id=concept-doctype-publicid for=DocumentType>public ID</dfn>, and
6542-
<dfn export id=concept-doctype-systemid for=DocumentType>system ID</dfn>.
6543-
6544-
<p>When a <a>doctype</a> is created, its <a for=DocumentType>name</a> is always given. Unless
6545-
explicitly given when a <a>doctype</a> is created, its <a>public ID</a> and <a>system ID</a> are the
6546-
empty string.
6540+
<dfn export id=concept-doctype-name for=DocumentType>name</dfn> (a string),
6541+
<dfn export id=concept-doctype-publicid for=DocumentType>public ID</dfn> (a string), and
6542+
<dfn export id=concept-doctype-systemid for=DocumentType>system ID</dfn> (a string).
65476543

65486544
<div algorithm>
65496545
<p>To <dfn export>create a doctype</dfn> given a <a for=/>document</a> <var>document</var>, a string
@@ -8532,15 +8528,6 @@ the {{Text}} <a for=/>node</a> <a for=tree>children</a> of <var>node</var>, in <
85328528
<var>node</var>, in <a>tree order</a>.
85338529
</div>
85348530

8535-
<hr>
8536-
8537-
<div algorithm>
8538-
<p>The <dfn constructor for=Text lt=Text(data)><code>new Text(<var>data</var>)</code></dfn>
8539-
constructor steps are to set <a>this</a>'s <a for=CharacterData>data</a> to <var>data</var> and
8540-
<a>this</a>'s <a for=Node>node document</a> to <a>current global object</a>'s
8541-
<a>associated <code>Document</code></a>.
8542-
</div>
8543-
85448531
<div algorithm>
85458532
<p>To <dfn export>create a text node</dfn> given a <a for=/>document</a> <var>document</var> and a
85468533
string <var>data</var>:
@@ -8555,6 +8542,15 @@ string <var>data</var>:
85558542
</ol>
85568543
</div>
85578544

8545+
<hr>
8546+
8547+
<div algorithm>
8548+
<p>The <dfn constructor for=Text lt=Text(data)><code>new Text(<var>data</var>)</code></dfn>
8549+
constructor steps are to set <a>this</a>'s <a for=CharacterData>data</a> to <var>data</var> and
8550+
<a>this</a>'s <a for=Node>node document</a> to <a>current global object</a>'s
8551+
<a>associated <code>Document</code></a>.
8552+
</div>
8553+
85588554
<div algorithm>
85598555
<p>To <dfn export id=concept-text-split lt="split a Text node">split</dfn> a {{Text}}
85608556
<a for=/>node</a> <var>node</var> with integer <var>offset</var>:
@@ -8694,6 +8690,21 @@ interface ProcessingInstruction : CharacterData {
86948690
<dfn export id=concept-pi-attribute-map for=ProcessingInstruction>attribute map</dfn>, which is a
86958691
<a for=/>map</a>, initially empty.
86968692

8693+
<div algorithm>
8694+
<p>To <dfn export>create a processing instruction node</dfn> given a <a for=/>document</a>
8695+
<var>document</var>, a string <var>target</var>, and a string <var>data</var>:
8696+
8697+
<ol>
8698+
<li><p>Let <var>pi</var> be the result of <a>creating a node</a> that implements
8699+
{{ProcessingInstruction}}, given <var>document</var>.
8700+
8701+
<li><p><a for=ProcessingInstruction>Initialize</a> <var>pi</var> with <var>target</var> and
8702+
<var>data</var>.
8703+
8704+
<li><p>Return <var>pi</var>.
8705+
</ol>
8706+
</div>
8707+
86978708
<div algorithm>
86988709
<p>To <dfn export for=ProcessingInstruction>initialize</dfn> a {{ProcessingInstruction}}
86998710
<a for=/>node</a> <var>pi</var>, with <var>target</var> and <var>data</var>:
@@ -8713,21 +8724,6 @@ interface ProcessingInstruction : CharacterData {
87138724
</ol>
87148725
</div>
87158726

8716-
<div algorithm>
8717-
<p>To <dfn export>create a processing instruction node</dfn> given a <a for=/>document</a>
8718-
<var>document</var>, a string <var>target</var>, and a string <var>data</var>:
8719-
8720-
<ol>
8721-
<li><p>Let <var>pi</var> be the result of <a>creating a node</a> that implements
8722-
{{ProcessingInstruction}}, given <var>document</var>.
8723-
8724-
<li><p><a for=ProcessingInstruction>Initialize</a> <var>pi</var> with <var>target</var> and
8725-
<var>data</var>.
8726-
8727-
<li><p>Return <var>pi</var>.
8728-
</ol>
8729-
</div>
8730-
87318727
<div algorithm>
87328728
<p>To <dfn>update attributes from data</dfn>, given a {{ProcessingInstruction}} <a for=/>node</a>
87338729
<var>pi</var>:
@@ -8912,13 +8908,6 @@ interface Comment : CharacterData {
89128908
<a for=CharacterData>data</a> is <var>data</var>.
89138909
</dl>
89148910

8915-
<div algorithm>
8916-
<p>The <dfn constructor for=Comment lt=Comment(data)><code>new Comment(<var>data</var>)</code></dfn>
8917-
constructor steps are to set <a>this</a>'s <a for=CharacterData>data</a> to <var>data</var> and
8918-
<a>this</a>'s <a for=Node>node document</a> to <a>current global object</a>'s
8919-
<a>associated <code>Document</code></a>.
8920-
</div>
8921-
89228911
<div algorithm>
89238912
<p>To <dfn export>create a comment node</dfn> given a <a for=/>document</a> <var>document</var> and
89248913
a string <var>data</var>:
@@ -8933,6 +8922,13 @@ a string <var>data</var>:
89338922
</ol>
89348923
</div>
89358924

8925+
<div algorithm>
8926+
<p>The <dfn constructor for=Comment lt=Comment(data)><code>new Comment(<var>data</var>)</code></dfn>
8927+
constructor steps are to set <a>this</a>'s <a for=CharacterData>data</a> to <var>data</var> and
8928+
<a>this</a>'s <a for=Node>node document</a> to <a>current global object</a>'s
8929+
<a>associated <code>Document</code></a>.
8930+
</div>
8931+
89368932

89378933

89388934
<h2 id=ranges>Ranges</h2>

0 commit comments

Comments
 (0)