Closed (fixed)
Project:
Bibliography Module
Version:
6.x-1.13
Component:
User interface
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 May 2010 at 10:05 UTC
Updated:
1 Jul 2010 at 15:00 UTC
When citing a reference in a "filtered html" content, the w3c markup validator finds some issues in the generated xhtml code:
<span hovertip="reference1"><a href="#ref1">[1]</a></span> <p><hr /></p><h3>References</h3><div class="references"><ol><li id="reference1"…<a name="ref1">
Comments
Comment #1
matze_ commentedI only see the first problem in 6.x-1.13
In biblio.module replace line 2026:
$text = '<span hovertip="reference'. $ref .'"><a href="#ref'.$ref.'">['. $ref .']</a></span>';with:
$text = '<span><a href="#ref'.$ref.'" title="Reference '. $ref .'">['. $ref .']</a></span>';The anchor title should pop up as a tooltip in most browsers.
Comment #2
rjerome commentedI presume you weren't using hovertips anyway, so I put that bit of code in a conditional.
http://drupal.org/cvs?commit=377512
Comment #3
Sylvain Corlay commentedThanks to Ron Jerome for the bug fix.
Comment #4
Sylvain Corlay commentedThe correction of Ron Jerome corrected the listed w3c errors but new one appear when applying the modifications.
Line 71, Column 82: there is no attribute "name"
Comment #5
matze_ commentedThis is more of a theme issue. All the standard themes use xhtml 1.0 strict or transitional where
<a name="ref1">is allowed. You are using xhtml 1.1, try to replacenamewithid.Comment #6
Sylvain Corlay commentedThanks matze_. This works for me.