TitleEmpty Markup Doesnt Work For Bold And Italic
Date10-Oct-2005 21:41:48 EEST
Version2.3.27
SubmitterDirkFrederickx
Bug criticalityJSPWiki:LightBug
Browser versionSafari, Firefox
Bug statusClosedBug
PageProvider used
Servlet Container
Operating SystemOS-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

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.

Add new attachment

Only authorized users are allowed to upload new attachments.
« This page (revision-5) was last changed on 22-Oct-2005 14:19 by Administrator