Skip to main content

Bug Tracker

Side navigation

#8507 closed bug (duplicate)

Opened March 11, 2011 06:37PM UTC

Closed March 14, 2011 02:34PM UTC

Last modified March 14, 2011 02:34PM UTC

#

Reported by: robertgayle@yahoo.com Owned by:
Priority: blocker Milestone: 1.next
Component: selector Version: 1.5.1
Keywords: Cc:
Blocked by: Blocking:
Description

The form serialize() method throws an error when an input field's name attribute is 'name': ex:

<form id='crRunForm' method="PUT">

<input type="text" name="code"/>

<input type="text" name="name"/>

</form>

.....

function bldRequestXML(formId) {[[BR]]
var params ='''$("#"+formId).serialize()'''; <--throws error

....

This happens in (minified) version: 1.3.2, 1.4.2, and 1.5.1

Here is the stack trace from 1.5.1:

Uncaught Syntax error, unrecognized expression: #[object HTMLInputElement]
k.errorjquery-1.5.1.min.js:16
k.filterjquery-1.5.1.min.js:16
kjquery-1.5.1.min.js:16
c.querySelectorAll.kjquery-1.5.1.min.js:16
d.fn.extend.findjquery-1.5.1.min.js:16
d.d.fn.d.initjquery-1.5.1.min.js:16
d.djquery-1.5.1.min.js:16
bldRequestXMLtestPortal.jsp:250
doMMCServicetestPortal.jsp:180
doStartRuntestPortal.jsp:127
(anonymous function)testPortal.jsp:79

link to relevant html and javascript snippet:

http://jsfiddle.net/M75uf/2/

Attachments (0)
Change History (2)

Changed March 14, 2011 02:34PM UTC by rwaldron comment:1

component: unfiledselector
priority: undecidedblocker
resolution: → duplicate
status: newclosed

Changed March 14, 2011 02:34PM UTC by rwaldron comment:2

Duplicate of #7212.