cameron / squirt

Speed read the web.
http://www.squirt.io
Apache License 2.0
1.22k stars 205 forks source link

In Firefox 27.0.1, selection is not used for reading #28

Closed lonbinder closed 10 years ago

lonbinder commented 10 years ago

Tested in Chrome, works fine. In FF, select text, then click bookmarklet. Instead of reading just selected text, reads the whole page.

Coornail commented 10 years ago

I can confirm that it happens.

The issue is that the Selection object in Firefox doesn't have a type property: https://developer.mozilla.org/en-US/docs/Web/API/Selection

zloster commented 10 years ago

The selection object in Firefox has toString method: https://developer.mozilla.org/en-US/docs/Web/API/Selection/toString