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>
    there is no attribute "hovertip".
  • <p><hr /></p><h3>References</h3><div class="references"><ol><li id="reference1"…
    document type does not allow element "hr" here; missing one of "button", "map", "object", "ins", "del", "noscript" start-tag.
  • <a name="ref1">
    there is no attribute "name".

Comments

matze_’s picture

Version: 6.x-1.9 » 6.x-1.13

I 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.

rjerome’s picture

Status: Active » Fixed

I presume you weren't using hovertips anyway, so I put that bit of code in a conditional.

http://drupal.org/cvs?commit=377512

Sylvain Corlay’s picture

Thanks to Ron Jerome for the bug fix.

Sylvain Corlay’s picture

Status: Fixed » Active

The 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"

…nces"><ol><li id="reference1"><a name="ref1"><span class="biblio-authors"><a h…
matze_’s picture

This 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 replace name with id.

Sylvain Corlay’s picture

Status: Active » Fixed

Thanks matze_. This works for me.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.