Skip to main content

Bug Tracker

Side navigation

#12307 closed bug (invalid)

Opened August 15, 2012 12:45PM UTC

Closed August 15, 2012 12:53PM UTC

jQuery replaces entities in href params when converting text to element

Reported by: Ervin Weber <errvin@hot.ee> Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.8.0
Keywords: Cc:
Blocked by: Blocking:
Description

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÷_money=both&d=e">test</a>'

$(text).attr('href')

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

"/ra?a=b÷_money=both&d=e"

http://jsfiddle.net/d5Ypd/5/

Attachments (0)
Change History (1)

Changed August 15, 2012 12:53PM UTC by dmethvin comment:1

resolution: → invalid
status: newclosed

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

http://jsfiddle.net/dmethvin/d5Ypd/7/