- From: Philip Jägenstedt <notifications@github.com>
- Date: Tue, 10 Mar 2026 09:30:15 -0700
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <whatwg/dom/pull/1454/review/3923775412@github.com>
@foolip commented on this pull request. > + <li><p>Let <var>fragment</var> be the result of invoking the + <a>fragment parsing algorithm steps</a> with <var>context</var> and <var>markup</var>. If this + throws an exception, then return. + + <li> + <p>If <var>fragment</var>'s <a>first child</a> is an <a for=/>element</a>: + + <ol> + <li><p>Let <var>element</var> be the <a>first child</a> of <var>fragment</var>. + + <li><p>Assert: <var>element</var> is an <a for=/>element</a> with <a for=Element>local name</a> + "<code>attrs</code>". + + <li><p><a for=list>For each</a> <var>attribute</var> of <var>element</var>'s + <a for=Element>attribute list</a>, set <var>pi</var>'s + <a for=ProcessingInstruction>attribute map</a>[<var>attribute</var>'s <a for=Attr>local name</a>] Just `x:href` would be an error, yes, but if `xmlns:x="..."` is also used, it would parse. @zcorpan thanks for the test case, that shows that the line I've commented on does need to change. We could use the qualified name, but we could just as well skip any attributes that aren't in the null namespace, possibly also making use of namespaces here non-conforming. -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/dom/pull/1454#discussion_r2912987680 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/dom/pull/1454/review/3923775412@github.com>
Received on Tuesday, 10 March 2026 16:30:19 UTC