Bug Tracker

Opened 12 years ago

Closed 12 years ago

Last modified 8 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:

Description

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 12 years ago.
Testcase

Download all attachments as: .zip

Change History (3)

Changed 12 years ago by GhiOm

Attachment: testcase.html added

Testcase

comment:1 Changed 12 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 12 years ago by john

Milestone: 1.21.2.1
Resolution: invalid
Status: newclosed
Version: 1.1.41.2

Closed at the request of poster.

Note: See TracTickets for help on using tickets.