#962 closed bug (fixed)
[PATCH] A fix in clean method
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | major | Milestone: | 1.1.3 |
Component: | core | Version: | 1.1.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
jQuery 1.1.1 often doesn't preserve white space. I suggest the following variation to the clean method to preserve white space. At the line 449 instead of:
var s = jQuery.trim(arg)
I put this:
var s = /s+</.test(arg) ? jQuery.trim(arg) : arg
So, if arg is a tag string the value is trimmed but if it is pure text the value remains as is.
Attachments (1)
Change History (3)
comment:1 Changed 16 years ago by
Milestone: | → 1.1.2 |
---|---|
Summary: | A fix in clean method → [PATCH] A fix in clean method |
Type: | enhancement → bug |
Version: | → 1.1.1 |
Changed 16 years ago by
Attachment: | patch-962.txt added |
---|
A patch and test for appending trailing whitespace.
comment:2 Changed 16 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Committed in SVN rev [1472].
Note: See
TracTickets for help on using
tickets.
This has bit me a couple times now. I'm adding a patch which solves this.