W3C home > Mailing lists > Public > www-validator@w3.org > September 2011

HTML5 Validation - Possible bug - Error "Duplicate attribute class"

From: Doug McDonald <dougajmcdonald@gmail.com>
Date: Tue, 13 Sep 2011 22:54:54 +0100
Message-ID: <CAF-H7RDME_5GrziqDGotNzoAAGGDhTqL9Lwsq9SrK5SPaC=e2A@mail.gmail.com>
To: www-validator@w3.org
Hi there,

I was checking over a site I have recently been working on to see how it
validates against the HTML5 spec and I think I may have found a bug.

Put simply the validator is telling me the following:

[image: Error] *Line 119, Column 136*: Duplicate attribute class.

…script-open-a-maximised-window/" class*=*"articleTitle">Javascript open a maxim

For example, unless I'm missing something I'm not sure it should be
reporting this for the element/line specified. The URL in question is '
http://www.dougmcdonald.co.uk/test/html5/v5/articles/' and an example of the
html which is being output and supposedly the cause of the above validation
error is below:

<article class="blog">
<a class="articleTitle" href="
">Javascript open a maximised window</a>
<img width="32" height="20" alt="comments image" src="
<p>0 Comments</p>
<h3> September 08, 2011 </h3>
<div class="excerpt"> Often people ask how to open a new window 'maximised'
from client side Javascript. With this in mind, below is a function to open
a new window about a ... </div>

Unless I'm going mad, that element doesn't include a duplicate class
attribute. It feels like I'm missing something, in which case, please
discard this! if it's of any help identifying a bug though, then hopefully
the info above will be useful.

Many thanks,


Doug McDonald

BSc(Hons) | MCTS | MBCS
Received on Thursday, 15 September 2011 07:20:14 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:18:04 UTC