﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
293	XPath matching wrong following r998 (or its trunk cousin)	osimons	cmlenz	"I have a `site.html` for Trac that replaces some help text/links that gets rendered. It has been working well 'forever'. Now following update to latest 0.5.x, the following (shortened) example no longer works:

{{{
#!xml
<!--! Help text: ticket.html - TracTickets replacement -->
<div py:match=""div[@id='content' and @class='ticket']/div[@id='help']"">
  This text should replace default help text.
</div>
}}}

As a workaround, I either have to use slightly older Genshi (pre r998), or change the xpath query to use two * `//` that then finds a match (and risk finding wrong content):
{{{
#!xml
<div py:match=""div[@id='content' and @class='ticket']//div[@id='help']"">
}}}

As seen, it changes the help div of ticket template - and as can be seen from this very ticket page, the 'help' div is a direct child of 'content'. This regression will likely break a lot of existing XPath expressions.
"	defect	closed	blocker	0.6	XPath support	devel	fixed		
