Closed Bug 663290 Opened 13 years ago Closed 11 years ago

Mozilla header and footer templates do not comply with HTML 5 standards.

Categories

(www.mozilla.org :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: alfishstik, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1
Build Identifier: 

The Mozilla web pages do not apply to HTML 5 standards, with the following errors on the main page:

    Error: Bad value WT.ad for attribute name on element meta: Keyword wt.ad is not registered.

    From line 33, column 5; to line 33, column 53

    ng"/>↩ <meta id="WT.ad" name="WT.ad" CONTENT="join_h_a">↩ ↩

    Syntax of metadata name:
        A standard metadata name or registered extension metadata name. Note that changes to the registry wiki are imported to the validator manually and, therefore, are not reflected in real time. 

    Error: An img element must have an alt attribute, except under certain conditions. For details, consult guidance on providing text alternatives for images.

    From line 498, column 35; to line 498, column 87

    href="/"><img src="/images/template/screen/logo_footer.png" /></a>↩

The first is harder to fix, while for the second, all we need to add is an alt:
<img src="/images/template/screen/logo_footer.png" alt="logo" />

Reproducible: Always

Steps to Reproduce:
1. Go to http://html5.validator.nu/?doc=http%3A%2F%2Fwww.mozilla.org%2F&showsource=yes

Actual Results:  
Errors in the HTML 5 validator appeared, meaning that Mozilla's web page does not comply with HTML 5 standards.

Expected Results:  
There should have been no errors.
Blocks: validate
Status: UNCONFIRMED → NEW
Ever confirmed: true
alfishstik, thanks for reporting this bug.

I've added an alt tag to the image in the footer.  You can see the commit at:

http://viewvc.svn.mozilla.org/vc?view=revision&revision=90475

Please verify that this fixes part of the validation issue.

For the other issue with the meta tag, we'll need to do some research.  This is a custom WebTrends tag and perhaps WebTrends has documentation about how to add this in a valid way?  If you have a chance to research this, that would be great.

Note that I changed the summary of this bug to note that the issues are in the site templates and not in a specific page, so this validation error will show up across the site.
Summary: Mozilla web page does not comply with HTML 5 standards. → Mozilla header and footer templates do not comply with HTML 5 standards.
Component: www.mozilla.org → General
Product: Websites → www.mozilla.org
The Webtrends tag is gone.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.