[wp-trac] [WordPress Trac] #11554: Calendar generated by WordPress is invalid HTML5
WordPress Trac
wp-trac at lists.automattic.com
Tue Dec 22 04:49:15 UTC 2009
#11554: Calendar generated by WordPress is invalid HTML5
--------------------------+-------------------------------------------------
Reporter: avcascade | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Unassigned
Component: Template | Version: 2.9
Severity: minor | Keywords: Calendar
--------------------------+-------------------------------------------------
While building an HTML5 theme for WordPress (I don't use XHTML,
[http://www.hixie.ch/advocacy/xhtml this is why]) I discovered that the
calendar generated by WordPress' general-template is not valid HTML5.
Two attributes are causing problems: summary (which is obsolete) and abbr,
which seems redundant since title contains the same information.
Removing the summary and abbr attributes from general-template causes a
WordPress blog with an HTML5 theme to properly validate using the
conformance checker. Since the summary and abbr attributes do not appear
necessary for the display of the calendar, it seems like removing them
would make the core leaner and meaner.
Line with summary:
{{{
echo '<table id="wp-calendar" summary="' . esc_attr__('Calendar') . '">
}}}
There are several lines with abbr, like:
{{{
echo "\n\t\t<th abbr=\"$wd\" scope=\"col\" title=\"$wd\">$day_name</th>";
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11554>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list