|Title|Empty Markup Doesnt Work For Bold And Italic
|Date|10-Oct-2005 21:41:48 EEST
|Version|2.3.27
|Submitter|DirkFrederickx
|[Bug criticality]|[JSPWiki:LightBug]
|Browser version|Safari, Firefox
|[Bug status]|ClosedBug
|[PageProvider] used|
|Servlet Container|
|Operating System|OS-X
|URL|
|Java version|


This may be not a bug in JSPWiki. But it is at least a strange behaviour of standard browsers with standard HTML.

Following markup does not do what you expect. (it does work in the JSPWiki2.2 )
{{{
   This is an empty bold statement : ____ (4 underscores)
   This is an empty italic statement : ''''  (4 single quotes)
}}}

The markup generated by JSPWiki is correct, I assume, namely:
{{{ 
   <b/>
   <i/>
}}}

However, the browser renders this very strange: both italic and bold get turned on, but not turned off.

The markup generated by JSPWiki 2.2.x was different, and did avoid this behaviour.
{{{
  <b></b>
  <i></i>
}}}

Any HTML expert out there ?

-- [DF|DirkFrederickx]

Mmm...  So says the XHTML spec:

;:C.3. Element Minimization and Empty Element Content

;:Given an empty instance of an element whose content model is not EMPTY (for example, an empty title or paragraph) do not use the minimized form (e.g. use <p> </p> and not <p />).

-- JanneJalkanen

Fixed in 2.3.34.