[wp-trac] [WordPress Trac] #21146: javascript - remove charset

WordPress Trac wp-trac at lists.automattic.com
Tue Jul 3 13:14:46 UTC 2012


#21146: javascript - remove charset
--------------------------+-----------------------------
 Reporter:  neoxx         |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Validation    |    Version:  3.4
 Severity:  normal        |   Keywords:  has-patch
--------------------------+-----------------------------
 Some inline-javascripts come with a charset, e.g. in wp-admin/user-
 edit.php

 {{{ <script type="text/javascript" charset="utf-8"> }}}

 http://validator.w3.org/ complains:

 {{{ Element script must not have attribute charset unless attribute src is
 also specified. }}}

 In total I found three occurrences which are all fixed by the attached
 patch.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21146>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list