X
Tryk her for at gå til webstedets mobilversion.

Supportforum

Firefox Quantum 68.4.2esr (64-bit) control-delete deletes span after whitespace

Skrevet

The following HTML is inside a text area div:

<wbr><span dir="ltr" class="code" data-id="3" data-ref="0" data-type="SC" data-isolated="false" draggable="false" data-text="span1" contenteditable="false">span1</span>a <span dir="ltr" class="code" data-id="0" data-ref="3" data-type="EC" data-isolated="false" draggable="false" data-text="span2" contenteditable="false">span2</span> b<span dir="ltr" class="code" data-id="2" data-ref="0" data-type="PH" data-isolated="true" draggable="false" data-text="span3" contenteditable="false">span3</span><wbr>

(The WBR elements shouldn't make a difference, but I need them in my test setup.)

Placing the cursor before the "a " and pressing control-delete causes not only the "a " to be deleted, but also span2 and the following space character. Similarly, placing it before "b" and pressing control-delete also deletes span3.

It is as if control-delete treated spans as whitespace, rather than as non-whitespace.

The following HTML is inside a text area div: <pre><nowiki><wbr><span dir="ltr" class="code" data-id="3" data-ref="0" data-type="SC" data-isolated="false" draggable="false" data-text="span1" contenteditable="false">span1</span>a <span dir="ltr" class="code" data-id="0" data-ref="3" data-type="EC" data-isolated="false" draggable="false" data-text="span2" contenteditable="false">span2</span> b<span dir="ltr" class="code" data-id="2" data-ref="0" data-type="PH" data-isolated="true" draggable="false" data-text="span3" contenteditable="false">span3</span><wbr></nowiki></pre> (The WBR elements shouldn't make a difference, but I need them in my test setup.) Placing the cursor before the "a " and pressing control-delete causes not only the "a " to be deleted, but also span2 and the following space character. Similarly, placing it before "b" and pressing control-delete also deletes span3. It is as if control-delete treated spans as whitespace, rather than as non-whitespace.

Ændret af cor-el den

Citér

Yderligere systemdetaljer

Installerede plugins

  • Shockwave Flash 32.0 r0

Program

  • User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Firefox/68.0

Yderligere information

Luk

Spørgsmålsstiller

The HTML didn't get escaped, and I don't see a way to edit the description. Here is what I hope to be the correctly-escaped version:

<wbr><span dir="ltr" class="code" data-id="3" data-ref="0" data-type="SC" data-isolated="false" data-text="span1" draggable="false" contenteditable="false">span1</span>a <span dir="ltr" class="code" data-id="0" data-ref="3" data-type="EC" data-isolated="false" data-text="span2" draggable="false" contenteditable="false">span2</span> b<span dir="ltr" class="code" data-id="2" data-ref="0" data-type="PH" data-isolated="true" data-text="span3" draggable="false" contenteditable="false">span3</span><wbr>

The HTML didn't get escaped, and I don't see a way to edit the description. Here is what I hope to be the correctly-escaped version: &lt;wbr&gt;&lt;span dir=&quot;ltr&quot; class=&quot;code&quot; data-id=&quot;3&quot; data-ref=&quot;0&quot; data-type=&quot;SC&quot; data-isolated=&quot;false&quot; data-text=&quot;span1&quot; draggable=&quot;false&quot; contenteditable=&quot;false&quot;&gt;span1&lt;/span&gt;a &lt;span dir=&quot;ltr&quot; class=&quot;code&quot; data-id=&quot;0&quot; data-ref=&quot;3&quot; data-type=&quot;EC&quot; data-isolated=&quot;false&quot; data-text=&quot;span2&quot; draggable=&quot;false&quot; contenteditable=&quot;false&quot;&gt;span2&lt;/span&gt; b&lt;span dir=&quot;ltr&quot; class=&quot;code&quot; data-id=&quot;2&quot; data-ref=&quot;0&quot; data-type=&quot;PH&quot; data-isolated=&quot;true&quot; data-text=&quot;span3&quot; draggable=&quot;false&quot; contenteditable=&quot;false&quot;&gt;span3&lt;/span&gt;&lt;wbr&gt;
Fandt du dette nyttigt?
Citér
TyDraniu
  • Top 25 Contributor
369 løsninger 2050 svar

Nyttigt svar

Can't reproduce it. For me ctrl+del works as advertised: Deletes word to the right.

Can't reproduce it. For me ctrl+del works as advertised: Deletes word to the right.
Fandt du dette nyttigt? 1
Citér

Spørgsmålsstiller

TyDraniu said

Can't reproduce it. For me ctrl+del works as advertised: Deletes word to the right.

Control-delete should be deleting whitespace following the word to the right, in addition to the word to the right.

This bug does not occur in Firefox 60.7.0esr (64-bit) on CentOS 7. Perhaps it is Windows-specific. However, in that CentOS-7 environment, Firefox does fail to delete the whitespace following the word to the right.

''TyDraniu [[#answer-1283831|said]]'' <blockquote> Can't reproduce it. For me ctrl+del works as advertised: Deletes word to the right. </blockquote> Control-delete should be deleting whitespace following the word to the right, in addition to the word to the right. This bug does not occur in Firefox 60.7.0esr (64-bit) on CentOS 7. Perhaps it is Windows-specific. However, in that CentOS-7 environment, Firefox does fail to delete the whitespace following the word to the right.

Ændret af David.Hudson1 den

Fandt du dette nyttigt?
Citér
TyDraniu
  • Top 25 Contributor
369 løsninger 2050 svar

Nyttigt svar

Fx74, win 10.

Fx74, win 10.
Fandt du dette nyttigt? 1
Citér

Spørgsmålsstiller

TyDraniu said

Fx74, win 10.

I just tried this in the Nightly build, and the bug is still there. Is there a setting required?

''TyDraniu [[#answer-1283849|said]]'' <blockquote> Fx74, win 10. </blockquote> I just tried this in the Nightly build, and the bug is still there. Is there a setting required?
Fandt du dette nyttigt?
Citér
cor-el
  • Top 10 Contributor
  • Moderator
17774 løsninger 160764 svar

See also the layout.word_select prefs on the about:config page.

See also the <b>layout.word_select</b> prefs on the <b>about:config</b> page.
Fandt du dette nyttigt? 1
Citér

Spørgsmålsstiller

cor-el said

See also the layout.word_select prefs on the about:config page.

Setting layout.word_select.eat_space_to_next_word does work around the bug. But Firefox shouldn't be treating a span as whitespace.

''cor-el [[#answer-1283896|said]]'' <blockquote> See also the <b>layout.word_select</b> prefs on the <b>about:config</b> page. </blockquote> Setting layout.word_select.eat_space_to_next_word does work around the bug. But Firefox shouldn't be treating a span as whitespace.
Fandt du dette nyttigt? 1
Citér

Spørgsmålsstiller

TyDraniu said

Fx74, win 10.

Do you happen to have layout.word_select.eat_space_to_next_word in about:config set to false?

''TyDraniu [[#answer-1283849|said]]'' <blockquote> Fx74, win 10. </blockquote> Do you happen to have layout.word_select.eat_space_to_next_word in about:config set to false?
Fandt du dette nyttigt?
Citér
Stil et spørgsmål

Du skal logge ind på din konto for at svare på et indlæg. Start et nyt spørgsmål, hvis du ikke har en konto endnu.