W3C home > Mailing lists > Public > www-validator-cvs@w3.org > July 2014

[Bug 26433] New: Parser interperates data-id tags as id tags

From: <bugzilla@jessica.w3.org>
Date: Fri, 25 Jul 2014 05:16:07 +0000
To: www-validator-cvs@w3.org
Message-ID: <bug-26433-169@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=26433

            Bug ID: 26433
           Summary: Parser interperates data-id tags as id tags
           Product: Validator
           Version: HEAD
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: major
          Priority: P2
         Component: Parser
          Assignee: dave.null@w3.org
          Reporter: jered.masters@outlook.com
        QA Contact: www-validator-cvs@w3.org

example website http://2014.perthfestival.com.au/
(exposes bug as of 25/07/2014)

The site makes use of the HTML5 'data' tag construct. There are many elements
in the site which have a 'data-id' tag to store their database id. All database
id's in the site are integers as a result the data-id tag is always an integer
with no characters.

The validator.w3c.org engine alerts on every 'data-id' because it fails the
requirements for and 'id' tag.

The data construct is purpose built to allow unregulated data to be held in
html elements and access by javascript. There fore 'data-id' has no
requirements and is a completely different type of tag to 'id'.

My best guess at the problem is that there is a regex search for the 'id' tag
which does not take into account whether or not it is preceded by 'data-'.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Friday, 25 July 2014 05:16:09 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:57 UTC