Bug Tracker

Opened 11 years ago

Closed 11 years ago

#11384 closed bug (invalid)

href gets encoded after appending the html to a div in ff, but not in ie9/ie8/chrome

Reported by: gabelerner Owned by:
Priority: low Milestone: None
Component: manipulation Version: 1.7.1
Keywords: Cc:
Blocked by: Blocking:

Description

When loading http://jsfiddle.net/yJWuQ/ in firefox, i see the curly brace encoded, yet when loading it in chrome or ie9/ie8, the curly brace is not encoded. This is breaking some of my jQuery tmpl manipulation logic.

Change History (1)

comment:1 Changed 11 years ago by sindresorhus

Component: unfiledmanipulation
Priority: undecidedlow
Resolution: invalid
Status: newclosed

This is not a jQuery bug. The same thing happens with vanilla JS.

The Firefox behavior is the correct one.

jQuery tmpl issue.

You can use "decodeURIComponent()" to get the unencoded string.

Note: See TracTickets for help on using tickets.