Opened 8 months ago

Closed 8 months ago

#1959 closed defect (fixed)

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

Reported by: plescheff Owned by:
Priority: normal Milestone: 2.2
Component: General Version: 2.1.2
Severity: normal 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)

  • Resolution set to invalid
  • Status changed from new to closed
  • 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.

ok :)

  • 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.