Make WordPress Core

Opened 18 years ago

Closed 17 years ago

#3363 closed defect (bug) (wontfix)

<em> tags applied across line breaks produce invalid XHTML

Reported by: upekshapriya's profile upekshapriya Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.0.5
Component: General Keywords:
Focuses: Cc:

Description

Putting break characters in the middle of <em> italicised text produces invalid XHTML. Wordpress appears to ignore the <em> </em> and treat them as ordinary characters.

Some text before an italicised quote. <em> &quot;Some text before a break character. <br /> <br /> Another paragraph that hardly ends.<br /> <br /> Lots more text that goes on and on.&quot; </em>

becomes:

<p> Some text before an italicised quote. <em> &quot;Some text before a break character. </p>

<p> Another paragraph that hardly ends.</p>
<p> Lots more text that goes on and on.&quot; </em>
</p>

Some more<em> text

separated by breaks not put in manually but</em> in the editor

becomes:

<p>Some more<em> text </p>
<p>separated by breaks not put in manually but</em> in the editor
</p>

Change History (1)

#1 @rob1n
17 years ago

  • Resolution set to wontfix
  • Status changed from new to closed

You can't put <em>'s in block level. I see no problem.

Note: See TracTickets for help on using tickets.