#7505 closed bug (fixed)
Button: Buttonset not applied to radio group with quotation/apostrophe in name
Reported by: | meotimdihia | Owned by: | dalekocian |
---|---|---|---|
Priority: | minor | Milestone: | 1.10.0 |
Component: | ui.button | Version: | 1.9.0 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
BUTTON SET is bug with this code:
<form> <div id="radio"> <input type="radio" id="radio1" name="data['Page']['parse']" /><label for="radio1">Choice 1</label> <input type="radio" id="radio2" name="data['Page']['parse']" checked="checked" /><label for="radio2">Choice 2</label> <input type="radio" id="radio3" name="data['Page']['parse']" /><label for="radio3">Choice 3</label> </div> </form> </div><!-- End demo --> <script> $(function() { $( "#radio" ).buttonset(); }); </script>
Change History (11)
comment:1 Changed 12 years ago by
Component: | ui.core → ui.button |
---|
comment:2 Changed 12 years ago by
comment:3 Changed 12 years ago by
Made a change: https://github.com/epascarello/jquery-ui/commit/1315b815c9570b72071e99f5e663e46fcd5bda5f
Made a pull request: https://github.com/jquery/jquery-ui/pull/401
comment:4 Changed 10 years ago by
Milestone: | 1.9.0 → 1.11.0 |
---|
comment:5 Changed 10 years ago by
Status: | new → open |
---|---|
Summary: | Buttonset Bug when radio with name = "data['page']['parse']" → Button: Buttonset not applied to radio group with quotation/apostrophe in name |
Version: | 1.8.13 → 1.9.0 |
The issue arises when the string delimiter "'" is placed into the name attribute. The link below is the tickets code.
comment:6 Changed 10 years ago by
Owner: | set to dalekocian |
---|---|
Status: | open → assigned |
comment:7 Changed 10 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:8 Changed 10 years ago by
Resolution: | fixed |
---|---|
Status: | closed → reopened |
comment:9 Changed 10 years ago by
Status: | reopened → open |
---|
comment:10 Changed 10 years ago by
Resolution: | → fixed |
---|---|
Status: | open → closed |
Button: properly escape button names. Fixes #7505 - Button: Buttonset not applied to radio group with quotation/apostrophe in name.
Changeset: cc7df712cc4ca90f6d6db599c5ff91b690921581
comment:11 Changed 10 years ago by
Milestone: | 1.11.0 → 1.10.0 |
---|
Note: See
TracTickets for help on using
tickets.
Problem here is it grabs the name
and than builds a selector:
Looks like : ' [ ] would need to be escaped