WordPress.org

Make WordPress Core

#21146 closed defect (bug) (fixed)

javascript - remove charset

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

Description

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.

Attachments (1)

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

Download all attachments as: .zip

Change History (3)

neoxx22 months ago

remove charset from inline-javascripts

comment:1 SergeyBiryukov22 months ago

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

comment:2 nacin22 months 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.