Search and Top Navigation
#7823 closed bug (notabug)
Opened October 28, 2011 08:16PM UTC
Closed October 28, 2011 08:22PM UTC
Last modified October 28, 2011 08:29PM UTC
Dialog title as html not handled properly using option setter
Reported by: | jvivs | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.9.0 |
Component: | ui.dialog | Version: | 1.8.16 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
affected versions:
-jquery: 1.5.1
-jquery ui: 1.8.16
browser: chrome 14.0.835.163
OS: OSX 10.7.2
Reproducable by setting an existing dialog's title via the options setter. Ex:
<div class="dialog">Dialog? Yep!</div> <script> var dialog = $('.dialog').dialog(); dialog.dialog('option', 'title', $('<span style="color: red">I\\'m a title and I\\'m OK</span>')); </script>
Results in the title being set to [Option option] when the jQuery object is converted to a string on line 595 of /jquery-ui/ui/jquery.ui.dialog.js as of a0856efef3c392d413aa6cd9bd084dc601a337c6.
see working demo of bug here: http://jsbin.com/irazil/edit#javascript,html
Attachments (0)
Change History (3)
Changed October 28, 2011 08:22PM UTC by comment:1
resolution: | → invalid |
---|---|
status: | new → closed |
Changed October 28, 2011 08:28PM UTC by comment:2
hmm... yeah, i see. derp. string-building here we go!
Changed October 28, 2011 08:29PM UTC by comment:3
pull request was here if you'd consider allowing the addition of jquery objects: https://github.com/jquery/jquery-ui/pull/507.
That's not HTML, that's an object.