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.
AND
  * The name expression has local name l.
AND
  * The expression is being tested against an element node.
AND
  * The element node has local name l.
AND
  * The element node has namespace http://www.w3.org/1999/xhtml
AND
  * The owner document of the element node is an "HTML document" as  
defined in HTML 5:
http://www.whatwg.org/specs/web-apps/current-work/#html-documents

See
http://www.w3.org/Bugs/Public/show_bug.cgi?id=6777
-- 
Henri Sivonen
hsivonen@iki.fi
http://hsivonen.iki.fi/

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