Skip to content

Commit acb802a

Browse files
committed
Fixed formatting.
1 parent 417460c commit acb802a

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]]
@@ -6358,7 +6359,8 @@ given a <var>document</var>, <var>localName</var>, <var>namespace</var>, and opt
63586359
<ol>
63596360
<li><p>Let <var>oldValue</var> be <var>attribute</var>'s <a for=Attr>value</a>.</p></li>
63606361

6361-
<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>.
6362+
<li><p><a>Validate and set attribute value</a> <var>value</var> for <var>attribute</var>, with
6363+
<var>attribute</var>'s <a for=Attr>element</a>.
63626364

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

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

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

64216427
<hr>
64226428

@@ -6480,7 +6486,8 @@ string <var>namespace</var> (default null):</p>
64806486

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

6483-
<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>.
6489+
<li><p><a>Validate and set attribute value</a> <var>newAttr</var>'s <a for="Attr">value</a> for
6490+
<var>newAttr</var> with <var>element</var>.
64846491

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

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

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

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

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

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

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

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

0 commit comments

Comments
 (0)