P
pr
Thomas said:Or by using an XPath expression:
//*[@class="DeviceList" or contains(@class, "DeviceList ") or
contains(@class, " DeviceList")]
(Suggestions for optimization are welcome.)
In this case
.//select[contains(concat(" ", @class, " "), " DeviceList ")]
should be good enough, using document.body as the context node.