Bug Tracker

Opened 11 years ago

Last modified 9 years ago

#7596 closed bug

xpath selector attribute name with brackets [] fails — at Initial Version

Reported by: jcctmg@… Owned by:
Priority: high Milestone: 1.8
Component: selector Version: 1.4.4
Keywords: Cc:
Blocked by: Blocking:

Description

I can't select an input which name attribute has [] inside.
In normal javascript, it is posible. This works:

document.forms[0]['entityOV.arrayOVs[0].dProperty'].value

But in JQuery fails on IE6.0, IE7.0, FF3.0.
$("input[name='entityOV.arrayOVs[0].dProperty']").val()
and works OK on Chrome 7.0.517.44, FF3.5, IE8.

In this link you can run it online:
http://jsfiddle.net/XP34r/

Change History (0)

Note: See TracTickets for help on using tickets.