Skip to:
Content

#1959 closed defect (fixed)

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

Reported by: plescheff Owned by:
Milestone: 2.2 Priority: normal
Severity: normal Version: 2.1.2
Component: General Keywords:
Cc:

Description

Using bbPress 2.1.2, WordPress 3.4.2.

HTML Tidy (HTML5 mode) is reporting that "Element script must not have attribute charset unless attribute src is also specified."

bbPress adds the script on every page, so validation fails.

File: wp-content\plugins\bbpress\bbp-theme-compat\bbpress-functions.php

Patch (line 196):

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

Change History (4)

comment:1 alexvorn219 months ago

  • Resolution set to invalid
  • Status changed from new to closed

comment:2 johnjamesjacoby19 months ago

  • Milestone changed from Awaiting Review to 2.2
  • Resolution invalid deleted
  • Status changed from closed to reopened
  • Type changed from enhancement to defect

This is valid. Reopening.

comment:4 johnjamesjacoby19 months ago

  • Resolution set to fixed
  • Status changed from reopened to closed

(In [4231]) Theme Compat:

  • Do not set script charset, since we are sot setting a src.
  • Fixes #1959.
  • Props plescheff.
Note: See TracTickets for help on using tickets.