Title: [Plugin: Google Calendar Widget] Patch for invalid XHTML output
Last modified: August 19, 2016

---

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

 *  [zephyrcat](https://wordpress.org/support/users/zephyrcat/)
 * (@zephyrcat)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/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)

 *  Plugin Author [Poco](https://wordpress.org/support/users/poco/)
 * (@poco)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/plugin-google-calendar-widget-patch-for-invalid-xhtml-output/#post-1632660)
 * Thanks for the fix, I will apply the changes to the trunk and next release.

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Google Calendar Widget] Patch for invalid XHTML output’ is closed
to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/google-calendar-widget.svg)
 * [Google Calendar Widget](https://wordpress.org/plugins/google-calendar-widget/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-calendar-widget/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-calendar-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/google-calendar-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-calendar-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-calendar-widget/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Poco](https://wordpress.org/support/users/poco/)
 * Last activity: [15 years, 9 months ago](https://wordpress.org/support/topic/plugin-google-calendar-widget-patch-for-invalid-xhtml-output/#post-1632660)
 * Status: not resolved