Skip to main content

Bug Tracker

Side navigation

#4567 closed bug (invalid)

Opened April 21, 2009 06:50PM UTC

Closed October 14, 2009 01:41AM UTC

Last modified March 13, 2012 03:54PM UTC

jQuery usage of nbsp character entity

Reported by: serialseb Owned by:
Priority: critical Milestone: 1.4
Component: unfiled Version: 1.3.2
Keywords: Cc:
Blocked by: Blocking:
Description

I've struggled for a couple of hours yesterday with firefox really not liking my site served as xhtml 1.1. Took me a while to track down the multitude of plugins and scripts that inject  

The problem comes from firefox not parsing external character references in all situations. Whenever an html fragment gets inserted by firefox, and it contains such character entity, all hell breaks loose and script processing stops.

So I've attached a patch that changes the uses of nbsp to the character code. That said, I think it'd be much better for compat if the jquery codebase as a whole was updated to never use any character entity beyond the 5 xml defined ones. It certainly would've solved the problems I encountered.

Stuff not included: widgets, any test code, and datepicker localization.

Attachments (1)
  • removenbsp.patch (15.6 KB) - added by serialseb April 21, 2009 07:07PM UTC.

    Removing nbsp from most libraries

Change History (3)

Changed April 21, 2009 07:08PM UTC by serialseb comment:1

A simple search and replace for all of the non-xml character entities could be done on both html and js content in the tree. Let me know if there's something you'd find value in and I could get on with it. I've only fixed the ones that I was personally getting breaks from.

Changed April 21, 2009 09:34PM UTC by serialseb comment:2

See #4255 for a related issue

Changed October 14, 2009 01:41AM UTC by dmethvin comment:3

resolution: → invalid
status: newclosed

jQuery itself isn't injecting the

 
entities, and although some plugins are hosted here they're the responsibility of individual authors. You should report these bugs to the plugin authors.