Make WordPress Core

Opened 14 years ago

Closed 14 years ago

#5168 closed defect (bug) (fixed)

Script tag in WP 2.3 widgets.php does not validate

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


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


Change History (3)

#1 @foolswisdom
14 years ago

  • Milestone changed from 2.0.eventually to 2.5
  • Priority changed from normal to low
  • Severity changed from normal to minor

#2 @markjaquith
14 years ago

  • Milestone changed from 2.5 to 2.4

#3 @markjaquith
14 years ago

  • Resolution set to fixed
  • Status changed from new to closed

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

Note: See TracTickets for help on using tickets.