More than one div with the same id - fixed

Found a bug?
Let me know so I can sort it out

More than one div with the same id - fixed

Postby kuczora » Fri Jul 01, 2011 2:46 pm

Just a small bug, which I admit doesn't seem to affect the behaviour of AAC :D

Sometimes the id of a calendar div and the id of the cal_title div that it contains can be the same - which is technically not allowed.

You use the div ids as a means of data storage, so to make sure nothing breaks you can add something like "_cal" to the name of the div in this line from
Code: Select all
$calendar_months.='<div id="'.$this_month.'_'.$this_year.'_cal" class="cal_month load_cal"></div>';

As I said, it doesn't seem to cause any actual errors, but it isn't valid HTML
Posts: 24
Joined: Thu Jun 23, 2011 1:52 pm

Return to Bugs

Who is online

Users browsing this forum: No registered users and 2 guests