Testcase for jQuery Ticket 7596 °2
attribute selector with brackets
by jitter
HTML
<p><input type="text" name="a" value="other" /></p>
<p><input type="text" name="a.b" value="other" /></p>
<p><input type="text" name="a[" value="other" /></p>
<p><input type="text" name="a.[" value="other" /></p>
<p><input type="text" name="a[.b" value="other" /></p>
<p><input type="text" name="a[." value="other" /></p>
<p><input type="text" name=".a[" value="Fail is caused by .a[ the other similar constructs above work" /></p>
<p>So this is probably a regex error in Sizzle</p>
CSS
input { width: 600px }
JavaScript
$("input[name='a']").val('Works');
$("input[name='a.b']").val('Works');
$("input[name='a[']").val('Works');
$("input[name='a.[']").val('Works');
$("input[name='a[.b']").val('Works');
$("input[name='a[.']").val('Works');
$("input[name='.a[']").val('Works'); // fails in FF 3.0.19, IE6/7 and other browsers not having qSA support