Gordon wrote:
I don't know why either, but when I did switch to class names the
result was a big speed increase.  I guess attribute selecting is a lot
trickier to do than class matching.

Ah, this is what I overlooked. Class selecting can just use the className property, whereas attribute selecting needs to use getAttribute or something together with some attribute sanitizing ('for' => 'htmlFor' etc.).


--Klaus

Reply via email to