TitleEmpty Anchors generated by ContextualDiffProvider
Date01-Nov-2005 12:36:09 EET
Versionv.2.3.x
SubmitterDirkFrederickx
Bug criticalityLightBug
Browser versionSafari, IE
Bug statusNewBug
PageProvider used
Servlet Containertomcat
Operating SystemOS-X, WIN
URL
Java version

An empty <a name="pipo" /> seems to cause havoc on ie and safari browsers, when manipulating a DOM tree through javascript. (e.g. as done in BrushedTemplateTabbedSections)

These empty <a /> are generated by the "ContextualDiffProvider". It cause a Diff.jsp in the BrushedTemplate not to function properly.

The issue is solved when generating <a name="change-1"></a>.

In ContextualDiffProvider.java, change

  private String m_anchorPostIndex   = "\" />";
to
  private String m_anchorPostIndex   = "\" ><a/>";

See also BugEmptyMarkupDoesntWorkForBoldAndItalic

-- DirkFrederickx

Like JanneJalkanen says in BugEmptyMarkupDoesntWorkForBoldAndItalic:

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 />).

I confirm a similar problem with the default template, the ContextualDiffProvider, Firefox and IE. The fix above is easy to implement. Could it be corrected in CVS for a future build? Thanks.

-- GeorgesZ

Add new attachment

Only authorized users are allowed to upload new attachments.
« This page (revision-2) was last changed on 31-Jul-2007 06:36 by 75.36.14.78