technosophos/querypath — Issue #77: removeClass not removing multiple classes at once
Author: GDmac
Created: 2012-03-07 09:10:58+00:00
State: open

When specifying multiple classes to remove, nothing happens.
Or maybe i just don't get it

// doesn't work
$page->find('td')->removeClass('list odd even');

// awkward
$elems = $page->find('td');
foreach ($elems as $item)
{
$item->removeClass('list');
$item->removeClass('odd');
$item->removeClass('even');
}