Bug Tracker

Opened 15 years ago

Closed 15 years ago

Last modified 11 years ago

#1570 closed bug (invalid)

Escaped quotes not escaped in html attributes

Reported by: GhiOm Owned by:
Priority: major Milestone: 1.2.1
Component: core Version: 1.2
Keywords: escaping quotes attribute parsing Cc:
Blocked by: Blocking:


I want to create an html element / dom object with jquery. This object has an attribute containing the quotes, and they are thus escaped.
Example :
<input type="text" value="toto \"tata\"" />

The text displayed in the input will be : [toto \] (in firefox 2, opera 9 and IE7), and my input will have an attribute : tata\.

The problem arises either with single or double quotes :
<input type="text" value='toto \'tata\'' /> would present the same problem.

Forms retrieved via ajax will not present their real content, for example, if their value contains the quotes used around the attribute value.

Attachments (1)

testcase.html (771 bytes) - added by GhiOm 15 years ago.

Download all attachments as: .zip

Change History (3)

Changed 15 years ago by GhiOm

Attachment: testcase.html added


comment:1 Changed 15 years ago by GhiOm

It's normal behaviour of the browsers. I thought it was a problem during the jquery parsing to create the elements, but no, the same thing in plain html has the same problem. Could not find a way to delete the ticket. Sorry for the trouble.

comment:2 Changed 15 years ago by john

Resolution: invalid
Status: newclosed

Closed at the request of poster.

Note: See TracTickets for help on using tickets.