Make WordPress Core

Opened 16 years ago

Closed 16 years ago

#5168 closed defect (bug) (fixed)

Script tag in WP 2.3 widgets.php does not validate

Reported by: dsiemon's profile 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:

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 (3)

#1 @foolswisdom
16 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
16 years ago

  • Milestone changed from 2.5 to 2.4

#3 @markjaquith
16 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.