Closed
Bug 635872
Opened 14 years ago
Closed 14 years ago
double click on a word should select only the word, not wrapping white-space characters
Categories
(Core :: DOM: Selection, defect)
Core
DOM: Selection
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: giorgio.liscio, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b12pre) Gecko/20110220 Firefox/4.0b12pre
Build Identifier:
hi, if you double click any word in a document will be selected the word and the nearest adjacent white space character on its right
this is bad, i think, because in the editor component (midas) user will be able to produce html like this:
--
my <b>word </b>is badly highlighted
--
with a white-space before </b>
Reproducible: Always
Comment 1•14 years ago
|
||
Does toggling "layout.word_select.eat_space_to_next_word" to "true" in "about:config" help?
helps, so it must be set to true by default, at least in contentEditable areas
thank you
Comment 3•14 years ago
|
||
The default setting here is the default OS setting for the behavior. It differs between different operating systems.
Last I checked, Windows has the behavior you're seeing in general, no?
no sorry, on windows the default is true (not as I say on comment #2)
the default should be false
Comment 5•14 years ago
|
||
I meant the default windows behavior _outside_ Gecko is the same as our behavior with that pref set to true. Which is why the pref is set to true on Windows!
yes I've understood this,
this value should be overriden by default in firefox builds, no?
or at least overriden only when contentEditable is active
Comment 7•14 years ago
|
||
No, why? Following the platform behavior is the right thing to do here, imo.
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → WONTFIX
ok, but midas can be an exception
in fact msword selects the whitespace
libreoffice/openoffice does not
and they are both on windows
since the output is html a cleaner markup would be nice
Comment 9•14 years ago
|
||
Openoffice is a port; it's not using Windows text controls or the built-in Windows text-editing facilities.
I don't think we should be violating basic UI expectations just to work around Midas issues.
You need to log in
before you can comment on or make changes to this bug.
Description
•