Skip to:
Content

BuddyPress.org

Opened 13 years ago

Closed 12 years ago

Last modified 12 years ago

#5366 closed defect (bug) (fixed)

Script must not have attribute charset unless attribute src is also specified

Reported by: henry.wright Owned by: r-a-y
Priority: normal Milestone: 2.0
Component: Appearance - Template Pack Version: 1.9.1
Severity: normal Keywords: has-patch
Cc:

Description

When the AJAX url is put in the header by buddypress-functions.php (see function head_scripts() on line 336), the W3C Validator gives an error:

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

The same issue was resolved over at bbPress recently:
https://bbpress.trac.wordpress.org/ticket/1959

Please find patch attached.

Attachments (1)

5366.patch (431 bytes ) - added by henry.wright 13 years ago.

Download all attachments as: .zip

Change History (5)

@henry.wright
13 years ago

#1 @henry.wright
13 years ago

  • Keywords has-patch added

#2 @r-a-y
12 years ago

  • Component CoreTemplate Pack
  • Milestone Awaiting Review2.0

#3 @r-a-y
12 years ago

  • Owner set to r-a-y
  • Resolutionfixed
  • Status newclosed

In 8141:

bp-legacy: Remove charset attribute for <script> call.

This is invalid HTML.

Fixes #5366

Props henry.wright

#4 @r-a-y
12 years ago

Thanks for the patch, henry.wright!

Note: See TracTickets for help on using tickets.