Make WordPress Core

Opened 18 years ago

Closed 18 years ago

#3617 closed defect (bug) (duplicate)

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

Reported by: miklb's profile miklb Owned by: andy's profile andy
Milestone: Priority: normal
Severity: normal Version: 2.1
Component: Administration Keywords:
Focuses: 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>

  1. Click Visual tab
  2. Click Code tab

ACTUAL RESULT
test
The divs have been stripped.

Change History (10)

#1 @markjaquithLead Developer
18 years ago

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

<div>test</div>

or

<div>test</div>

regular paragraph

#2 @foolswisdom
18 years ago

  • Description modified (diff)

Updated desc

#3 @Viper007Bond
18 years ago

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

#4 @markjaquithLead Developer
18 years ago

  • 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

#5 @foolswisdom
18 years ago

  • Milestone changed from 2.1 to 2.1.1

#6 @Nazgul
18 years ago

  • Milestone changed from 2.1.1 to 2.1.2

#7 @damino
18 years ago

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.

#8 @foolswisdom
18 years ago

  • Milestone changed from 2.1.3 to 2.2

#9 @foolswisdom
18 years ago

  • Milestone changed from 2.2 to 2.3

Likely relates to #3826 .

#10 @torbens
18 years ago

  • Milestone 2.3 deleted
  • Resolution set to duplicate
  • Status changed from new to closed

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

Note: See TracTickets for help on using tickets.