- From: Anne van Kesteren <notifications@github.com>
- Date: Mon, 15 Jun 2026 10:13:45 -0700
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <whatwg/dom/pull/1454/review/4499512236@github.com>
@annevk 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>.
Clearly we need more testing. Currently `data:text/xml,<?xml-STYLESHEET href="data:text/css,test{background:lime}"?><test/>` is not green in browsers. But `data:text/xml,<?xml-stylesheet href="data:text/css,test{background:lime}"?><test/>` is.
Similarly, `data:text/xml,<?xml-stylesheet HREF="data:text/css,test{background:lime}"?><test/>` is not green.
So I think case-sensitive and case-sensitive comparisons are the way to go, except perhaps for `<?xml` if tests prove otherwise there.
--
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/pull/1454#discussion_r3415252405
You are receiving this because you are subscribed to this thread.
Message ID: <whatwg/dom/pull/1454/review/4499512236@github.com>
Received on Monday, 15 June 2026 17:13:49 UTC