Bug Tracker

Opened 10 years ago

Closed 10 years ago

#12307 closed bug (invalid)

jQuery replaces entities in href params when converting text to element

Reported by: Ervin Weber <[email protected]…> Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.8.0
Keywords: Cc:
Blocked by: Blocking:


Reproduced on jQuery version 1.8.0 OS Ubuntu (12.04, Linux ervin 3.2.0-29-generic ), Browsers tested: Chromium 18.0.1025.168 (Developer Build 134367 Linux) Ubuntu 12.04 and Firefox 14.0.1.

var text = '<a href="/ra?a=b&divide_money=both&d=e">test</a>' $(text).attr('href')

  • returns "/ra?a=b÷_money=both&d=e"
  • should return:



Change History (1)

comment:1 Changed 10 years ago by dmethvin

Resolution: invalid
Status: newclosed

It's not jQuery. Use &amp; as you should.


Note: See TracTickets for help on using tickets.