Support » Plugin: Google Calendar Widget » [Plugin: Google Calendar Widget] Patch for invalid XHTML output

  • I’m working on a website using Google Calendar Widget and I discovered that this plugin was outputting two pieces of invalid XHTML.

    First, the loading image did not have an alt attribute specified.

    Second, the line <script type=”text/javascript” defer=”true”> is invalid. Instead, it should read <script type=”text/javascript” defer=”defer”>.

    This is a diff file for ko-calendar.php:

    40c40
    < echo ‘<div class=”ko-calendar-widget-loading”><img class=”ko-calendar-widget-image” src=”‘ . KO_CALENDAR_URL . ‘/loading.gif”/></div>’;

    > echo ‘<div class=”ko-calendar-widget-loading”><img class=”ko-calendar-widget-image” src=”‘ . KO_CALENDAR_URL . ‘/loading.gif” alt=”Loading…” /></div>’;
    44c44
    < <script type=”text/javascript” defer=”true”>

    > <script type=”text/javascript” defer=”defer”>

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Google Calendar Widget] Patch for invalid XHTML output’ is closed to new replies.