Make WordPress Core

Opened 12 years ago

Closed 12 years ago

#21146 closed defect (bug) (fixed)

javascript - remove charset

Reported by: neoxx's profile neoxx Owned by: nacin's profile nacin
Milestone: 3.5 Priority: normal
Severity: normal Version: 3.4
Component: Validation Keywords: has-patch commit
Focuses: Cc:


Some inline-javascripts come with a charset, e.g. in wp-admin/user-edit.php

<script type="text/javascript" charset="utf-8"> 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.

Attachments (1)

21146.diff (1.1 KB) - added by neoxx 12 years ago.
remove charset from inline-javascripts

Download all attachments as: .zip

Change History (3)

12 years ago

remove charset from inline-javascripts

#1 @SergeyBiryukov
12 years ago

  • Keywords commit added
  • Milestone changed from Awaiting Review to 3.5

#2 @nacin
12 years ago

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

In [21204]:

Remove charset attribute from script elements. props neoxx, fixes #21146.

Note: See TracTickets for help on using tickets.