WordPress.org

Ready to get started?Download WordPress

Forums

Google Calendar Widget
Patch for invalid XHTML output (2 posts)

  1. zephyrcat
    Member
    Posted 3 years ago #

    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">

  2. Poco
    Member
    Plugin Author

    Posted 3 years ago #

    Thanks for the fix, I will apply the changes to the trunk and next release.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic