- From: Philip Jägenstedt <notifications@github.com>
- Date: Mon, 15 Jun 2026 08:39:59 -0700
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 15 June 2026 15:40:03 UTC
@foolip commented on this pull request.
> + <li><p>Append <var>value</var> to <var>data</var>.
+
+ <li><p>Append U+0022 (") to <var>data</var>.
+ </ol>
+
+ <li><p><a>Replace data</a> of <var>pi</var> with 0, <var>pi</var>'s <a for=Node>length</a>,
+ <var>data</var>, and true.
+</ol>
+</div>
+
+<div algorithm>
+<p>To <dfn export id=concept-pi-get-attribute>get a processing instruction attribute</dfn>, given a
+{{ProcessingInstruction}} <a for=/>node</a> <var>pi</var> and a string <var>name</var>:
+
+<ol>
+ <li><p>Let <var>lowercaseName</var> be <var>name</var> in <a>ASCII lowercase</a>.
We don't have to, but lowercasing in HTML nicely handles the "xml" target in any case, aligning with https://www.w3.org/TR/xml/#dt-pi.
But we could preserve case and do case-insensitive comparisons for "xml" and "xml-stylesheet". Would you prefer that?
--
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/pull/1454#discussion_r3414715624
You are receiving this because you are subscribed to this thread.
Message ID: <whatwg/dom/pull/1454/review/4498877397@github.com>
Received on Monday, 15 June 2026 15:40:03 UTC