- From: Philip Jägenstedt <notifications@github.com>
- Date: Tue, 10 Mar 2026 13:57:16 -0700
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 10 March 2026 20:57:19 UTC
foolip left a comment (whatwg/dom#1454) We need to decide which parser is used to parse attributes from `data`, and I think these are all of the options: 1. HTML or XML parser depending on the node document, similar to `innerHTML`. This was the initial state of this PR, via [fragment parsing algorithm steps](https://html.spec.whatwg.org/#fragment-parsing-algorithm-steps) 2. HTML parser everywhere except for `<?xml-stylesheet?>`, which would use the XML parser. 3. Always use the HTML parser 4. Always use the XML parser 5. A bespoke parser with whatever properties we'd like, possibly being more strict for `<?xml-stylesheet?>`. Option 2 seems like the most plausible to me right now, if we decide to make `<?xml-stylesheet x:href="" href="..."?>` no longer work. @annevk WDYT? -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/dom/pull/1454#issuecomment-4034420660 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/dom/pull/1454/c4034420660@github.com>
Received on Tuesday, 10 March 2026 20:57:19 UTC