Skip to content

Commit 1d25719

Browse files
committed
Update setAttributeNS to include TT check
1 parent d86e02f commit 1d25719

File tree

1 file changed

+26
-2
lines changed

1 file changed

+26
-2
lines changed

dom.bs

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7340,8 +7340,32 @@ method steps are:
73407340
<li><p>Let <var>namespace</var>, <var>prefix</var>, and <var>localName</var> be the result of
73417341
passing <var>namespace</var> and <var>qualifiedName</var> to <a>validate and extract</a>.
73427342

7343-
<li><p><a>Set an attribute value</a> for <a>this</a> using <var>localName</var>, <var>value</var>,
7344-
<var>prefix</var>, <var>namespace</var> and true.
7343+
<li><p>Let <var>attribute</var> be the result of
7344+
<a lt="get an attribute by namespace and local name">getting an attribute</a> given
7345+
<var>namespace</var>, <var>localName</var>, and <var>element</var>.
7346+
7347+
<li><p>If <var>attribute</var> is null, then set attribute to an <a>attribute</a> whose
7348+
<a for=Attr>namespace</a> is <var>namespace</var>, <a for=Attr>namespace prefix</a> is
7349+
<var>prefix</var>, <a for=Attr>local name</a> is <var>localName</var>, <a for=Attr>value</a> is
7350+
<var>value</var>, and <a for=Node>node document</a> is <var>element</var>'s
7351+
<a for=Node>node document</a>.
7352+
7353+
<li><p>Let <var>verifiedValue</var> be the result of
7354+
<a lt="verify attribute value">verifying an attribute value</a> given <var>value</var>,
7355+
<var>attribute</var>, and <var>element</var>.
7356+
7357+
<li><p>Set <var>attribute</var> to the result of
7358+
<a lt="get an attribute by namespace and local name">getting an attribute</a> given
7359+
<var>namespace</var>, <var>localName</var>, and <var>element</var>.
7360+
7361+
<li><p>If <var>attribute</var> is null, create an <a>attribute</a> whose <a for=Attr>namespace</a>
7362+
is <var>namespace</var>, <a for=Attr>namespace prefix</a> is <var>prefix</var>,
7363+
<a for=Attr>local name</a> is <var>localName</var>, <a for=Attr>value</a> is
7364+
<var>verifiedValue</var>, and <a for=Node>node document</a> is <var>element</var>'s
7365+
<a for=Node>node document</a>, then <a lt="append an attribute">append</a> this <a>attribute</a> to
7366+
<var>element</var>, and then return.
7367+
7368+
<li><p><a lt="change an attribute">Change</a> <var>attribute</var> to <var>verifiedValue</var>.
73457369
</ol>
73467370

73477371
<p>The

0 commit comments

Comments
 (0)