unidal/workshop — Issue #1: support attribute matching in WDBC path filter
Author: unidal
Created: 2012-02-20 02:35:03+00:00
State: open

WDBC path syntax:

[ '[' ']' ] '.' ( [ '[' ']' ] )* [ '.' ( '@' | '@text' | '*text' | '*' ) ]

examples,

html.head.title
html.body.a[*].@href
html.body.form[2].input[*]
table[3].tr[2-].td[8].div[*].*text
ul[2].li[*].*

But we need support following cases:

div[@id=nav].h1
div[5].div[@class=head].table.*