DOM XPath needs adjusting to work with HTML 5

A successor of DOM Level 3 XPath (and, I presume, any spec specifying  
a JS API for initiating a transform on a DOM tree that might be  
created by parsing from text/html) need to specify that during XPath  
evaluation implementation must consider a name expression to match is  
the following case in addition to the cases where it is already  
specified to match:
  * The name expression has no namespace.
  * The name expression has local name l.
  * The expression is being tested against an element node.
  * The element node has local name l.
  * The element node has namespace
  * The owner document of the element node is an "HTML document" as  
defined in HTML 5:

Henri Sivonen

Received on Monday, 6 April 2009 11:51:49 UTC