Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Javascript (http://www.velocityreviews.com/forums/f68-javascript.html)
-   -   Safari: NodeFilter workaround without spoofing? (http://www.velocityreviews.com/forums/t935802-safari-nodefilter-workaround-without-spoofing.html)

spamtrap@adsignum.com 05-09-2008 08:41 PM

Safari: NodeFilter workaround without spoofing?
 
Hy;

I detected that the createTreeWalker-implementation in Safari returns
only white-space text-nodes on NodeFilter.SHOW_TEXT. I could spoof for
Safari to fall-back too a generic tree-walk function, but I would
prefer a non-spoofing issue-detector.
One idea would to concat the content of all walked nodes and check if
it's only whitespace and then repeat the walk. But I'd rather not like
to use that.
Anybody got a smarter idea?

Ciao
Niels


All times are GMT. The time now is 08:34 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.