# 在不编辑的情况下删除单词间的空格

**URL:** <https://meta.discourse.org/t/knocking-spaces-between-words-without-editing/87783>\
**Category:** UX\
**Created:** [2018年五月17日 22:45 UTC](https://meta.discourse.org/t/knocking-spaces-between-words-without-editing/87783 "2018-05-17T22:45:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [2018年五月17日 22:45 UTC](https://meta.discourse.org/t/knocking-spaces-between-words-without-editing/87783/1 "2018-05-17T22:45:11Z")

</div>

Quoting a bug reported elsewhere:

> [@](#):
>
> Here is a bug report of a rather funny UI glitch on the new forums.
> 
> You can double click between spaces in a post, and coz the white space between 2 words to disappear.
> 
> How to reproduce:
> 
> 1. Go to any post on the forum, and double click the space between two words first.
> 2. Then double or triple click the word to the right of the space,
> 3. Re-click the white space before the word, and voila the white space disappears and words get joined together without any white space.
> 
> However refreshing the page resets it back to the original state, but it’s a glitch never the less in the UI. I was able to test this on the Windows 10 platform, over Chrome Version 66.0.3359.139 (Official Build) (64-bit)

---

<div class="post-metadata">

**Author:** ![tshenry](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tshenry/32/119495_2.png) [@tshenry](https://meta.discourse.org/u/tshenry)\
**Post date:** [2018年五月17日 23:09 UTC](https://meta.discourse.org/t/knocking-spaces-between-words-without-editing/87783/3 "2018-05-17T23:09:09Z")

</div>

For what it’s worth, I cannot repro this here on Meta. I’m testing on the latest Mac OSX.

- Safari - no problem
- Chrome - ~~no problem~~ (See Below)
- Firefox - won’t even select the space in between words with a double click

Chrome needed a slight adjustment to the repro steps:

- You must be logged in (meaning it’s likely related to the quote pop-up)
- Go to a post

1. double-click a space between two words
2. double-click the word to the right of the space
3. double click the same space you did for step one
4. double click any word on that line of text

Also worth noting: you can highlight the text instead of double-clicking and get the same results

---

<div class="post-metadata">

**Author:** ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)\
**Post date:** [2018年五月18日 17:33 UTC](https://meta.discourse.org/t/knocking-spaces-between-words-without-editing/87783/5 "2018-05-18T17:33:58Z")

</div>

I’ve seen that bug before but couldn’t get a consistent repro.

Took me longer than I wanted but thanks to the [`normalize()`](https://developer.mozilla.org/en-US/docs/Web/API/Node/normalize) method this should not happen anymore 🍍

[https://github.com/discourse/discourse/commit/e209faa6cf0987ccab7903403782bd5763e0ee77](https://github.com/discourse/discourse/commit/e209faa6cf0987ccab7903403782bd5763e0ee77)

---

<div class="post-metadata">

**Author:** ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)\
**Post date:** [2018年五月19日 16:00 UTC](https://meta.discourse.org/t/knocking-spaces-between-words-without-editing/87783/6 "2018-05-19T16:00:00Z")

</div>

This topic was automatically closed after 22 hours. New replies are no longer allowed.
