Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Safari: NodeFilter workaround without spoofing?

0 views
Skip to first unread message

spam...@adsignum.com

unread,
May 9, 2008, 4:41:29 PM5/9/08
to
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

0 new messages