Ticket #3617 (closed defect: duplicate)

Opened 2 years ago

Last modified 1 year ago

<div>.*?</div> converted to <p>.*?</p> when switching from Code to Visual to Code

Reported by: miklb Assigned to: andy
Priority: normal Milestone:
Component: Administration Version: 2.1
Severity: normal Keywords:
Cc:

Description (Last modified by foolswisdom)

see this ticket for more info http://trac.wordpress.org/ticket/2992#comment:8

XHTML correction turned off

1. as admin (also confirmed with author, but stripping not deleting is appropriate then)
2. In Write Post, click Code tab
3. Enter
<div>test</div>
4. Click Visual tab
5. Click Code tab

ACTUAL RESULT
test
The divs have been stripped.

Change History

01/19/07 21:59:40 changed by markjaquith

Need more specific reproduction instructions. I can't reproduce with XHTML correction turned off and:

<div>test</div>

or

<div>test</div>

regular paragraph

01/19/07 23:16:15 changed by foolswisdom

  • description changed.

Updated desc

01/20/07 05:07:46 changed by Viper007Bond

Pretty sure I've used <div>'s and lots of other stuff without any problems.

01/20/07 06:42:58 changed by markjaquith

  • owner changed from anonymous to andy.
  • summary changed from <divs> converted to <p> to <div>.*?</div> converted to <p>.*?</p> when switching from Code to Visual to Code.

Okay, so this is an issue of tab-switching destroying the HTML. I think this is Andy or mdawaffe's territory

01/24/07 03:49:13 changed by foolswisdom

  • milestone changed from 2.1 to 2.1.1.

02/21/07 15:51:02 changed by Nazgul

  • milestone changed from 2.1.1 to 2.1.2.

03/07/07 14:06:30 changed by damino

Or may be it's possible to "say" to WP to not formate the code you wrote with the help of the wp-Unformatted plugin.

03/28/07 00:57:41 changed by foolswisdom

  • milestone changed from 2.1.3 to 2.2.

04/12/07 18:26:58 changed by foolswisdom

  • milestone changed from 2.2 to 2.3.

Likely relates to #3826 .

09/13/07 03:05:27 changed by torbens

  • status changed from new to closed.
  • resolution set to duplicate.
  • milestone deleted.

not only related to it, but rather a dupe of #3826