MantisBT - AChecker
View Issue Details
0005050ACheckerCheckspublic2012-08-15 11:592018-03-08 13:24
greg 
greg 
normalminoralways
closedfixed 
1.3 
1.41.4 
7de3fd0..0a5ac29 master -> master
0005050: Check 185 non-duplicate ID
AChecker identifies a duplicate id when they contain a dash

e.g.
id="header" and id="header-next" are listed as duplicates
No tags attached.
html AttributeError.html (1,248) 2012-11-20 23:30
http://www.atutor.ca/atutor/mantis/file_download.php?file_id=128&type=bug
Issue History
2012-08-15 11:59gregNew Issue
2012-11-20 23:30andrewlorienNote Added: 0005872
2012-11-20 23:30andrewlorienFile Added: AttributeError.html
2013-11-15 14:52gregSVN Revision# => 7de3fd0..0a5ac29 master -> master
2013-11-15 14:52gregNote Added: 0006539
2013-11-15 14:52gregStatusnew => resolved
2013-11-15 14:52gregFixed in Version => 1.4
2013-11-15 14:52gregResolutionopen => fixed
2013-11-15 14:52gregAssigned To => greg
2018-03-08 13:24cindyStatusresolved => closed

Notes
(0005872)
andrewlorien   
2012-11-20 23:30   
I thought I had this problem as well, but the bug is actually in the line AChecker reports. In the attached file, the error shows a duplicate for id="header". After dumping $attr and $id_array at the point that $has_duplicate_attribute is set to true i found that the duplicate id is actually id="form-event".
(0006539)
greg   
2013-11-15 14:52   
added a workaround to replace the usual lime number for body, returned when duplicate IDs are found, with the line number and ID value to make the offending duplicate easier to find, and created patch 02 for AChecker 1.3.