- From: smaug---- <notifications@github.com>
- Date: Fri, 09 Feb 2024 02:51:49 -0800
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <whatwg/dom/pull/1247/review/1872113291@github.com>
@smaug---- commented on this pull request. > - <a for=Attr>local name</a> is <var>localName</var>, <a for=Attr>value</a> is <var>value</var>, and - <a for=Node>node document</a> is <var>element</var>'s <a for=Node>node document</a>, then - <a lt="append an attribute">append</a> this <a>attribute</a> to <var>element</var>, and then - return. + <li> + <p>If <var>attribute</var> is null, then: + <ol> + <li><p>Set <var>attribute</var> to a new <a>attribute</a> whose <a for=Attr>namespace</a> is + <var>namespace</var>, <a for=Attr>namespace prefix</a> is <var>prefix</var>, + <a for=Attr>local name</a> is <var>localName</var> and <a for=Node>node document</a> is + <var>element</var>'s <a for=Node>node document</a>. + + <li><p><a>Validate and set attribute value</a> <var>value</var> for <var>attribute</var> with + <var>element</var>. + + <li><p><a lt="append an attribute">Append</a> <var>attribute</var> to <var>element</var>. This is problematic. Validation may have run scripts, and scripts may have already added another attribute with same name. That can't be allowed. -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/dom/pull/1247#pullrequestreview-1872113291 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/dom/pull/1247/review/1872113291@github.com>
Received on Friday, 9 February 2024 10:51:55 UTC