Title: div bug
Last modified: August 20, 2016

---

# div bug

 *  Resolved [Paradox Uncreated](https://wordpress.org/support/users/paradox-uncreated/)
 * (@paradox-uncreated)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/div-bug/)
 * While editing pages, sometimes enters are removed, and sometimes there are two
   linespaces. Removing unesscary divs from the code seems to fix it.
 * Peace Be With You.

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [13 years, 6 months ago](https://wordpress.org/support/topic/div-bug/#post-3301960)
 * Can you provide some more details? If you are switching to and from the text 
   and visual editor then that will strip out your HTML.
 *  Thread Starter [Paradox Uncreated](https://wordpress.org/support/users/paradox-uncreated/)
 * (@paradox-uncreated)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/div-bug/#post-3301961)
 * If one only leaves the first and last div, things work fine. And yes switching
   from text and visual editor, changes things aswell.
 * Was there any particular item you wondered about?
 * Peace Be With You.
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [13 years, 6 months ago](https://wordpress.org/support/topic/div-bug/#post-3302015)
 * So you have the answer as to why line-spaces and enters are removed, from Alchymyth.
   
   Linespaces and return carriages don’t matter with HTML, E.g
 *     ```
       <div>
        <p> ... </p>
       </div>
       ```
   
 * Is the equivalent of
 *     ```
       <div><p> ... </p></div>
       ```
   
 *  Thread Starter [Paradox Uncreated](https://wordpress.org/support/users/paradox-uncreated/)
 * (@paradox-uncreated)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/div-bug/#post-3302044)
 * It seems the visual editor is doing this. If you switch to “html” editor, after
   the visual has stripped the linecarriages, exit the edit without save, and re-
   edit it goes directly to “html” editor, without stripping the linespaces.
 * Peace Be With You.
 *  Thread Starter [Paradox Uncreated](https://wordpress.org/support/users/paradox-uncreated/)
 * (@paradox-uncreated)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/div-bug/#post-3302123)
 * Fixed in 3.5.1. Excellent!
 * Peace Be With You.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘div bug’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 3 participants
 * Last reply from: [Paradox Uncreated](https://wordpress.org/support/users/paradox-uncreated/)
 * Last activity: [13 years, 5 months ago](https://wordpress.org/support/topic/div-bug/#post-3302123)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
