- From: Noam Rosenthal <notifications@github.com>
- Date: Thu, 05 Mar 2026 02:03:57 -0800
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 5 March 2026 10:04:01 UTC
@noamr commented on this pull request.
> +
+<div algorithm>
+<p>The <dfn method for=ProcessingInstruction><code>hasAttribute(<var>name</var>)</code></dfn>
+method steps are:
+
+<ol>
+ <li><p>If <a>this</a>'s <a for=Node>node document</a> is an <a>HTML document</a>, then set
+ <var>name</var> to <var>name</var> in <a>ASCII lowercase</a>.
+
+ <li><p>Return true if <a>this</a>'s <a for=ProcessingInstruction>attribute map</a>[<var>name</var>]
+ <a for=set>exists</a>; otherwise false.
+</ol>
+</div>
+
+<div algorithm>
+<p>To <dfn>update attributes from data</dfn> for a {{ProcessingInstruction}} <a for=/>node</a> <var>pi</var>:
The main difference is what happens if `pi.data` is set after the PI is moved to an HTML document (or constructed with `createProcessingInstruction`). In the new scenario invalid XML yet valid HTML can be used in that `data` for the `xml-stylesheet` attributes.
--
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/pull/1454#discussion_r2888971929
You are receiving this because you are subscribed to this thread.
Message ID: <whatwg/dom/pull/1454/review/3895347582@github.com>
Received on Thursday, 5 March 2026 10:04:01 UTC