Comment 3 for bug 427263

Revision history for this message
Michael Nelson (michael.nelson) wrote :

So the issue seems to be that Konqueror doesn't display an element (in this case <a></a>) if it has no content - and so the styles that we add (such as the background image) are not displayed either.

Adding some content (such as &nbsp; or 'Edit') shows the edit icon as expected in Konq4.3 but we don't want that text (or an underlined space) for the other supported browsers. Also, it doesn't make sense for the inline editor widget to remove the text as other callsites might want to have text in the trigger link.

Another option we tried (thanks to Bjorn) was to leave 'Edit' in the anchor so it's non-empty, but then use a style rule to set the content to "". This allowed Konqueror to display the icon on it's own, but FF and Chromium still display the 'Edit' text (actually, FF and Chromium seem to ignore the content style rule - not sure why).