W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2009

DOM XPath needs adjusting to work with HTML 5

From: Henri Sivonen <hsivonen@iki.fi>
Date: Mon, 6 Apr 2009 14:51:06 +0300
Message-Id: <2FAE9A76-A523-4439-AE33-4363AECBE364@iki.fi>
To: www-dom@w3.org
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:14:00 GMT