Bug Tracker

Opened 7 years ago

Closed 7 years ago

#12064 closed bug (invalid)

insert form html broke not prefix in form action parameter

Reported by: sergeykojin@… Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.7.2
Keywords: Cc:
Blocked by: Blocking:

Description

when create form, as rails jquery_ujs.js do, then

$('<form method="post" action="/test?city=&not_zip="></form>'); form action become /test?city=¬_zip=

so &not - become ¬ symbol

see in action http://jsfiddle.net/skojin/FBstV/1/

Change History (1)

comment:1 Changed 7 years ago by dmethvin

Resolution: invalid
Status: newclosed

Looks like your unencoded ampersand was interpreted as an entity. You should encode it.

http://jsfiddle.net/FBstV/2/

Note: See TracTickets for help on using tickets.