News for hackers. Stuff that matters.
Re:Google HTML/CSS Style Guide – Omit Optional Tags by gsnedders on Sunday September 18, 2016 @05:19AM (#12524552)
XPath is defined as operating on an XML infoset, not a DOM. And there's no defined mapping from a DOM to an XML infoset anywhere. So really we're in undefined territory.

In reality in browsers, that coercion to an infoset never actually happens, and XPath is matched directly against the DOM, which leads to differences in edge-cases (notably, adjacent text nodes, which the DOM allows and the XML infoset does not).

There are no comments on this comment yet.