Ticket #5168 (closed defect (bug): fixed)

Opened 4 years ago

Last modified 4 years ago

Script tag in WP 2.3 widgets.php does not validate

Reported by: dsiemon Owned by: anonymous
Priority: low Milestone: 2.5
Component: General Version: 2.3
Severity: minor Keywords: validate, javascript, lang, type, widgets, widgets.php
Cc:

Description

Line 633 in Wordpress 2.3 widgets.php outputs:

<script lang='javascript'>

The "lang" attribute of the script tag is deprecated. This causes HTML validation via the W3C's validator to fail. Two errors are reported. The first is the use of the deprecated lang attribute and the second is the missing type attribute which should be set to "text/javascript".

 http://www.w3schools.com/tags/tag_script.asp

Change History

  • Priority changed from normal to low
  • Severity changed from normal to minor
  • Milestone changed from 2.0.eventually to 2.5
  • Milestone changed from 2.5 to 2.4
  • Status changed from new to closed
  • Resolution set to fixed

(In [6207]) use type="text/javascript", not lang="javascript". Props dsiemon. fixes #5168

Note: See TracTickets for help on using tickets.