This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 26433 - Parser interperates data-id tags as id tags
Summary: Parser interperates data-id tags as id tags
Status: NEW
Alias: None
Product: Validator
Classification: Unclassified
Component: Parser (show other bugs)
Version: HEAD
Hardware: PC Windows NT
: P2 major
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: qa-dev tracking
Depends on:
Reported: 2014-07-25 05:16 UTC by jered
Modified: 2014-07-25 05:16 UTC (History)
0 users

See Also:


Description jered 2014-07-25 05:16:07 UTC
example website
(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 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-'.