I tried your code, except for the function wrapper and saw the same
error. Then I removed "var" and it worked correctly. Not sure why this
is. Hopefully someone smarter than I can explain this.

> if (window.getSelection) {  // all browsers, except IE before version 9
>    range = window.getSelection ();                                        
>    alert (range.toString ());
> }

-- 
You received this message because you are subscribed to the Google Groups 
"Firebug" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/firebug?hl=en.

Reply via email to