This is version . It is not the current version, and thus it cannot be edited.
[Back to current version]   [Restore this version]
TitleEmptyMarkupDoesntWorkForBoldAndItalic
Date10-Oct-2005 21:41:48 EEST
Version2.3.27
SubmitterDirkFrederickx
Bug criticalityLightBug
Browser versionSafari, Firefox
Bug statusOpenBug
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

Add new attachment

Only authorized users are allowed to upload new attachments.
« This particular version was published on 11-Oct-2005 00:02 by JanneJalkanen.