Re: [whatwg/dom] ProcessingInstruction attribute values containing \r don't roundtrip (Issue #1526)

foolip left a comment (whatwg/dom#1526)

I think that if we did want to replace U+000D, we should do it by also escaping U+0009 and U+000A, to match XML attribute escaping. Not because U+0009 and U+000A are problematic, but because it's simpler in implementation, you can just reuse an existing code path.

However, since I don't think we can solve the problem with `pi.data`, I'll close this. Now the reasoning is documented if someone comes searching for it.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/1526#issuecomment-6830117732
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/dom/issues/1526/6830117732@github.com>

Received on Thursday, 12 November 2026 16:56:00 UTC