Skip to content

Commit 504abff

Browse files
committed
Fixed formatting.
1 parent 1156649 commit 504abff

File tree

1 file changed

+37
-22
lines changed

1 file changed

+37
-22
lines changed

dom.bs

Lines changed: 37 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ spec:html; type:element
5252
<p>This specification depends on the Infra Standard. [[!INFRA]]
5353

5454
<p>Some of the terms used in this specification are defined in <cite>Encoding</cite>,
55-
<cite>Selectors</cite>, <cite>Trusted Types</cite>, <cite>Web IDL</cite>, <cite>XML</cite>, and <cite>Namespaces in XML</cite>.
55+
<cite>Selectors</cite>, <cite>Trusted Types</cite>, <cite>Web IDL</cite>, <cite>XML</cite>, and
56+
<cite>Namespaces in XML</cite>.
5657
[[!ENCODING]]
5758
[[!SELECTORS4]]
5859
[[!TRUSTED-TYPES]]
@@ -6357,7 +6358,8 @@ given a <var>document</var>, <var>localName</var>, <var>namespace</var>, and opt
63576358
<ol>
63586359
<li><p>Let <var>oldValue</var> be <var>attribute</var>'s <a for=Attr>value</a>.</p></li>
63596360

6360-
<li><p><a>Validate and set attribute value</a> <var>value</var> for <var>attribute</var>, with <var>attribute</var>'s <a for=Attr>element</a>.
6361+
<li><p><a>Validate and set attribute value</a> <var>value</var> for <var>attribute</var>, with
6362+
<var>attribute</var>'s <a for=Attr>element</a>.
63616363

63626364
<li><p><a>Handle attribute changes</a> for <var>attribute</var> with <var>attribute</var>'s
63636365
<a for=Attr>element</a>, <var>oldValue</var>, and <var>value</var>.
@@ -6409,13 +6411,17 @@ steps:
64096411
<a for=Attr>value</a>.
64106412
</ol>
64116413

6412-
<p>To <dfn id=concept-element-attributes-validate-and-set-value>validate and set attribute value</dfn> <var>value</var> for an <a>attribute</a> <var>attribute</var>, with <a>element</a> <var>element</var>, run these steps:
6414+
<p>To <dfn id=concept-element-attributes-validate-and-set-value>validate and set attribute value</dfn>
6415+
<var>value</var> for an <a>attribute</a> <var>attribute</var>, with <a for=/>element</a>
6416+
<var>element</var>, run these steps:
6417+
6418+
<ol>
6419+
<li><p>Let <var>validValue</var> be the result of calling
6420+
<a>Get Trusted Types-compliant attribute value</a> for <var>attribute</var>, with
6421+
<var>element</var> and <var>value</var>. [[!TRUSTED-TYPES]]
64136422

6414-
<ol>
6415-
<li><p>Let <var>validValue</var> be the result of calling <a>Get Trusted Types-compliant attribute value</a>
6416-
for <var>attribute</var>, with <var>element</var> and <var>value</var>.[[!TRUSTED-TYPES]]
64176423
<li><p>Set <var>attribute</var>'s <a for=Attr>value</a> to <var>validValue</var>.
6418-
</ol>
6424+
</ol>
64196425

64206426
<hr>
64216427

@@ -6479,7 +6485,8 @@ string <var>namespace</var> (default null):</p>
64796485

64806486
<li><p>If <var>oldAttr</var> is <var>attr</var>, return <var>attr</var>.
64816487

6482-
<li><p><a>Validate and set attribute value</a> <var>newAttr</var>'s <a for="Attr">value</a> for <var>newAttr</var> with <var>element</var>.
6488+
<li><p><a>Validate and set attribute value</a> <var>newAttr</var>'s <a for="Attr">value</a> for
6489+
<var>newAttr</var> with <var>element</var>.
64836490

64846491
<li><p>If <var>oldAttr</var> is non-null, then <a lt="replace an attribute">replace</a>
64856492
<var>oldAttr</var> with <var>attr</var>.
@@ -6492,9 +6499,9 @@ string <var>namespace</var> (default null):</p>
64926499

64936500
<div algorithm>
64946501
<p>To <dfn export id=concept-element-attributes-set-value>set an attribute value</dfn> given an
6495-
<a for=/>element</a> <var>element</var>, a string <var>localName</var>, a string or <a>TrustedType</a> <var>value</var>,
6496-
an optional null or string <var>prefix</var> (default null), and an optional null or string
6497-
<var>namespace</var> (default null):
6502+
<a for=/>element</a> <var>element</var>, a string <var>localName</var>, a string or {{TrustedType}}
6503+
<var>value</var>, an optional null or string <var>prefix</var> (default null), and an optional null
6504+
or string <var>namespace</var> (default null):
64986505

64996506
<ol>
65006507
<li>Let <var>attribute</var> be the result of
@@ -6511,12 +6518,14 @@ an optional null or string <var>prefix</var> (default null), and an optional nul
65116518
<ol>
65126519
<li><p>Set <var>attribute</var> to a new <a>attribute</a> whose <a for=Attr>namespace</a> is
65136520
<var>namespace</var>, <a for=Attr>namespace prefix</a> is <var>prefix</var>,
6514-
<a for=Attr>local name</a> is <var>localName</var> and
6515-
<a for=Node>node document</a> is <var>element</var>'s <a for=Node>node document</a>.
6521+
<a for=Attr>local name</a> is <var>localName</var> and <a for=Node>node document</a> is
6522+
<var>element</var>'s <a for=Node>node document</a>.
6523+
6524+
<li><p><a>Validate and set attribute value</a> <var>value</var> for <var>attribute</var> with
6525+
<var>element</var>.
65166526

6517-
<li><p><a>Validate and set attribute value</a> <var>value</var> for <var>attribute</var> with <var>element</var>.
6527+
<li><p><a lt="append an attribute">Append</a> <var>attribute</var> to <var>element</var>.
65186528

6519-
<li><p><a lt="append an attribute">Append</a> <var>attribute</var> to <var>element</var>
65206529
<li><p>Return.
65216530
</ol>
65226531

@@ -6782,13 +6791,19 @@ method steps are:
67826791
<!-- This is step 2 of "get an attribute by name", modified as appropriate -->
67836792

67846793
<li><p>If <var>attribute</var> is null, then:
6785-
<ol>
6786-
<li><p>Set <var>attribute</var> to a new <a>attribute</a> whose
6787-
<a for=Attr>local name</a> is <var>qualifiedName</var> and <a for=Node>node document</a> is <a>this</a>'s <a for=Node>node document</a>.
6788-
<li><p><a>Validate and set attribute value</a> <var>value</var> for <var>attribute</var>, with <a>this</a>.
6789-
<li><a lt="append an attribute">Append</a> <var>attribute</var> to <a>this</a>.
6790-
<li><p>Return.
6791-
</ol>
6794+
6795+
<ol>
6796+
<li><p>Set <var>attribute</var> to a new <a>attribute</a> whose <a for=Attr>local name</a> is
6797+
<var>qualifiedName</var> and <a for=Node>node document</a> is <a>this</a>'s
6798+
<a for=Node>node document</a>.
6799+
6800+
<li><p><a>Validate and set attribute value</a> <var>value</var> for <var>attribute</var>,
6801+
with <a>this</a>.
6802+
6803+
<li><p><a lt="append an attribute">Append</a> <var>attribute</var> to <a>this</a>.
6804+
6805+
<li><p>Return.
6806+
</ol>
67926807

67936808
<li><p><a lt="change an attribute">Change</a> <var>attribute</var> to <var>value</var>.
67946809
</ol>

0 commit comments

Comments
 (0)