Thread
:
Cleaning useless whitespace in Mozilla DOM
View Single Post
10-17-2002, 01:11 AM
PM User
|
#
11
jkd
Senior Coder
Join Date: May 2002
Location: metro DC
Posts: 3,163
Thanks: 1
Thanked 18 Times in 18 Posts
You know it is no longer an empty text node when it can match \S just once. Using \S+ is unnecessary, as it doesn't matter if it has more than one nonwhitespace character or not.
__________________
jasonkarldavis.com
jkd
View Public Profile
Visit jkd's homepage!
Find More Posts by jkd