P
Phlip
XMLers:
Here's my XPath:
//form[
./descendant::fieldset[
./descendant::legend and
./descendant::li[
./descendant::label and
./descendant::input ]
]
]
Its purpose is unit tests to assert that HTML has certain elements and
attributes (not shown).
I want it to fail if the <li> appears above the <legend>, in document order. Or
if the <label> appears below the <input>. Any ideas?
libxml2, 2.6.32.dfsg-4ubuntu1.1, BTW... Tx!
Here's my XPath:
//form[
./descendant::fieldset[
./descendant::legend and
./descendant::li[
./descendant::label and
./descendant::input ]
]
]
Its purpose is unit tests to assert that HTML has certain elements and
attributes (not shown).
I want it to fail if the <li> appears above the <legend>, in document order. Or
if the <label> appears below the <input>. Any ideas?
libxml2, 2.6.32.dfsg-4ubuntu1.1, BTW... Tx!