- From: smaug---- <notifications@github.com>
- Date: Thu, 20 Mar 2025 15:31:40 -0700
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <whatwg/dom/pull/1268/review/2704265954@github.com>
@smaug---- commented on this pull request. > <a lt="get an attribute by namespace and local name">getting an attribute</a> given <var>namespace</var>, <var>localName</var>, and <var>element</var>. - <li>If <var>attribute</var> is null, create an <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>, <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 set attribute to an <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>, <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>. + + <li><p>Let <var>verifiedValue</var> be the result of + <a lt="verify attribute value">verifying an attribute value</a> given <var>value</var>, + <var>attribute</var>, and <var>element</var>. Hmm, why do we need this algorithm to verify the value? I'd expect the relevant webidl attribute setters to be modified, similarly to set HTMLScriptElement.src. In fact, HTMLIFrameElement.srcdoc setter already does TT check to get a reasonable string and this would do it again? Or am I missing something. -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/dom/pull/1268#pullrequestreview-2704265954 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/dom/pull/1268/review/2704265954@github.com>
Received on Thursday, 20 March 2025 22:31:44 UTC