Skip to main content

Bug Tracker

Side navigation

#1570 closed bug (invalid)

Opened September 06, 2007 07:47AM UTC

Closed September 15, 2007 01:40PM UTC

Last modified March 15, 2012 01:46AM UTC

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 (0.8 KB) - added by GhiOm September 06, 2007 07:47AM UTC.


Change History (2)

Changed September 06, 2007 08:20AM UTC by GhiOm comment:1

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.

Changed September 15, 2007 01:40PM UTC by john comment:2

resolution: → invalid
status: newclosed

Closed at the request of poster.