WebPagetest Forums
Valid DOM attributes - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: WebPagetest (/forumdisplay.php?fid=7)
+--- Forum: Private Instances (/forumdisplay.php?fid=12)
+--- Thread: Valid DOM attributes (/showthread.php?tid=58)

Valid DOM attributes - mctubster - 09-30-2009 06:39 PM


I was wondering if there are rules around which DOM elements can be instrumented using pagetest / urlblast.

Right now I only have success with "id" and "title".

Is there is list? I ask because I have tried other DOM elements, but they don't work (ie urlblast does not pick them up)


RE: Valid DOM attributes - pmeenan - 09-30-2009 10:07 PM

There shouldn't be. The one that you do have to watch out for specifically is class which is actually className in IE's DOM (and we use it pretty extensively). id is certainly the fastest because it doesn't have to walk the full DOM looking for it but it should be able to look for any attribute.

Do you have an example you're having problems with? If so I can take a look at it.



RE: Valid DOM attributes - mctubster - 10-01-2009 04:43 PM

Ahhh, thanks for that ... I didn't realise that the "class" was named in the DOM differently

That makes it much easier!