Title: Calendar Grid HTML Validation Error
Last modified: August 30, 2016

---

# Calendar Grid HTML Validation Error

 *  Resolved [David July](https://wordpress.org/support/users/mountsutro/)
 * (@mountsutro)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/calendar-grid-html-validation-error/)
 * Joe:
 * I just discovered an HTML validation issue with the current version of My Calendar
   affecting the `[my_calendar format="calendar"]` shortcode.
 * Line 1381 of `my-calendar-output.php` contains the following code.
 * >  `$my_calendar_body .= "<$th class='$class $dayclass'>" . $name_days[ $i ] ."
   > </$th>\n";`
 * As you can see, the variable `$th` is used in the closing tag as well. Therefore,
   when `$th` includes a scope attribute (as per Line 1366) it is also present in
   the closing tag.
 * I replaced `</$th>` with `</th>` on Line 1381 to correct the validation errors.
 * Please let me know if you have any questions and thank you for the excellent 
   plugin.
 * Regards,
 * David July
 * [https://wordpress.org/plugins/my-calendar/](https://wordpress.org/plugins/my-calendar/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Joe Dolson](https://wordpress.org/support/users/joedolson/)
 * (@joedolson)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/calendar-grid-html-validation-error/#post-6705019)
 * Thanks for noting that! I’ve fixed it for the next release; thanks!
 *  Thread Starter [David July](https://wordpress.org/support/users/mountsutro/)
 * (@mountsutro)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/calendar-grid-html-validation-error/#post-6705169)
 * Thanks, Joe. Unfortunately, `$close_th` produces the same incorrect output.
 * > </th scope=”col”>
 *  Plugin Author [Joe Dolson](https://wordpress.org/support/users/joedolson/)
 * (@joedolson)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/calendar-grid-html-validation-error/#post-6705171)
 * Damn. Yes, you’re right; that should have been defined one line earlier. Thanks.
 *  Thread Starter [David July](https://wordpress.org/support/users/mountsutro/)
 * (@mountsutro)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/calendar-grid-html-validation-error/#post-6705172)
 * Confirmed; I swapped rows 1367 and 1368 and it is now working correctly. Thanks!
 *  Thread Starter [David July](https://wordpress.org/support/users/mountsutro/)
 * (@mountsutro)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/calendar-grid-html-validation-error/#post-6705184)
 * All is well in 2.4.12. Thanks for your help with this!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Calendar Grid HTML Validation Error’ is closed to new replies.

 * ![](https://ps.w.org/my-calendar/assets/icon-256x256.png?rev=1097576)
 * [My Calendar - Accessible Event Manager](https://wordpress.org/plugins/my-calendar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/my-calendar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/my-calendar/)
 * [Active Topics](https://wordpress.org/support/plugin/my-calendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/my-calendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/my-calendar/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [David July](https://wordpress.org/support/users/mountsutro/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/calendar-grid-html-validation-error/#post-6705184)
 * Status: resolved