Re: [whatwg/dom] Define processing instruction attributes (PR #1454)

@hsivonen commented on this pull request.



> +
+ <li>
+  <p><a for=map>For each</a> <var>name</var> → <var>value</var> of <var>pi</var>'s
+  <a for=ProcessingInstruction>attribute map</a>:
+
+  <ol>
+   <li><p>If <var>data</var> is not the empty string, then append U+0020 SPACE to <var>data</var>.
+
+   <li><p>Append <var>name</var> to <var>data</var>.
+
+   <li><p>Append U+003D (=) to <var>data</var>.
+
+   <li><p>Append U+0022 (") to <var>data</var>.
+
+   <li><p>Append the result of
+   <a href="https://html.spec.whatwg.org/#escapingString">escaping a string</a> given

Producing `&nbsp;`, which isn't in https://www.w3.org/TR/xml-stylesheet/#NT-PredefEntityRef seems like a bad idea in the XML case at least.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/pull/1454#discussion_r3217331628
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/dom/pull/1454/review/4261834794@github.com>

Received on Monday, 11 May 2026 08:24:39 UTC