Opened 17 years ago
Closed 17 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: |
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".
Change History (3)
Note: See
TracTickets for help on using
tickets.
(In [6207]) use type="text/javascript", not lang="javascript". Props dsiemon. fixes #5168