whitespace after an img tag within an a tag is underlined

Bug #893827 reported by Remon Huijts
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
firefox (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

The code below renders with an underlined whitespace after the first and second image but not after the last image. The image links should be displayed without underlined whitespace, as is the case when no whitespace is added in the source code. This bug occurred right after updating to version 8 of Firefox.

<div>
 <a href="index.php?pagina=machtiging&amp;actie=toevoegen">
  <img class="button" src="/img/icons/16x16/toevoegen.png" alt="toevoegen" width="16" height="16" />
 </a>
 <a title="Het overzicht van incasso machtigingen downloaden als PDF bestand" href="index.php?pagina=machtiging&amp;type=pdf">
  <img class="button" src="/img/icons/16x16/pdf.png" alt="PDF" width="16" height="16" />
 </a>
 <a title="Het overzicht van incasso machtigingen downloaden als CSV bestand" href="index.php?pagina=machtiging&amp;type=csv">
  <img class="button" src="/img/icons/16x16/csv.png" alt="CSV" width="16" height="16" />
 </a>
</div>

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: firefox 8.0+build1-0ubuntu0.11.04.3
ProcVersionSignature: Ubuntu 2.6.38-12.51-generic 2.6.38.8
Uname: Linux 2.6.38-12-generic i686
NonfreeKernelModules: fglrx
AddonCompatCheckDisabled: False
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.23.
Architecture: i386
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: remon 1851 F.... pulseaudio
 /dev/snd/pcmC0D0p: remon 1851 F...m pulseaudio
BuildID: 20111115183158
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'SB'/'HDA ATI SB at 0xfe9f4000 irq 16'
   Mixer name : 'Realtek ALC662 rev1'
   Components : 'HDA:10ec0662,10438290,00100101'
   Controls : 34
   Simple ctrls : 18
Card1.Amixer.info:
 Card hw:1 'Generic'/'HD-Audio Generic at 0xfeabc000 irq 43'
   Mixer name : 'ATI R6xx HDMI'
   Components : 'HDA:1002aa01,00aa0100,00100200'
   Controls : 4
   Simple ctrls : 1
Card1.Amixer.values:
 Simple mixer control 'IEC958',0
   Capabilities: pswitch pswitch-joined penum
   Playback channels: Mono
   Mono: Playback [on]
Channel: release
Date: Wed Nov 23 01:30:44 2011
ForcedLayersAccel: False
IfupdownConfig:
 auto lo
 iface lo inet loopback
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release i386 (20110427.1)
IpRoute:
 192.168.2.0/24 dev eth0 proto kernel scope link src 192.168.2.1 metric 1
 169.254.0.0/16 dev eth0 scope link metric 1000
 default via 192.168.2.254 dev eth0 proto static
IwConfig:
 lo no wireless extensions.

 eth0 no wireless extensions.

 vboxnet0 no wireless extensions.
Profiles: Profile0 (Default) - LastVersion=8.0/20111115183158 (Running)
RfKill:

RunningIncompatibleAddons: False
SourcePackage: firefox
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 11/26/2007
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 0403
dmi.board.asset.tag: To Be Filled By O.E.M.
dmi.board.name: M2A-MX
dmi.board.vendor: ASUSTeK Computer INC.
dmi.board.version: Rev 1.xx
dmi.chassis.asset.tag: Asset-1234567890
dmi.chassis.type: 3
dmi.chassis.vendor: Chassis Manufacture
dmi.chassis.version: Chassis Version
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr0403:bd11/26/2007:svnSystemmanufacturer:pnSystemProductName:pvrSystemVersion:rvnASUSTeKComputerINC.:rnM2A-MX:rvrRev1.xx:cvnChassisManufacture:ct3:cvrChassisVersion:
dmi.product.name: System Product Name
dmi.product.version: System Version
dmi.sys.vendor: System manufacturer

Revision history for this message
Remon Huijts (rahuijts) wrote :
Revision history for this message
Remon Huijts (rahuijts) wrote :

Just installed Chromium [14.0.835.202 (Developer Build 103287 Linux) Ubuntu 11.04] to check, and it also displays the unwanted underlines. But when viewed in my Android phone browser, the display is correct, without underlined whitespaces.

Revision history for this message
Remon Huijts (rahuijts) wrote :

To verify that I am not going crazy (yet), I just installed the older 3.6 version of Firefox. It displays the images as expected, without underlined whitespaces.

I tried specifying several different doctypes (4.01 strict, html5), but Firefox 8 won't ignore the whitespace. The specs say it should ignore those following a start tag and those preceding an end tag. Firefox 8 does that correctly for the a tag if it contains (only) text: no extra space is underlined. But it fails if an img is the content.

Revision history for this message
Paul White (paulw2u) wrote :

Remon,

We are sorry that we do not always have the capacity to review all reported bugs in a timely manner. You reported this bug some time ago and there have been many changes in Ubuntu and Firefox since that time.

Do you still see a problem related to the one that you reported? Please let us know if you do.

If we do not hear from you this bug report will close in approximately 60 days time.

Thank you for helping make Ubuntu better.

Paul White
[Ubuntu Bug Squad]

Changed in firefox (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for firefox (Ubuntu) because there has been no activity for 60 days.]

Changed in firefox (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.