Firefox + Jquery UI dialog() bug in XHTML files
I’ve tried Jquery UI 1.6rc2 embedded in a XHTML (note the “X”,).
When trying this simple code:
$(”#hello1″).dialog();
Assuming my xhtml file contains something like:
<div id=”hello1″>Hello</div>
Instead of having my “Hello” embedded in a nice dialog, I encountered the following problem
[Exception... "Cannot modify properties of a WrappedNative" nsresult:
"0x80570034 (NS_ERROR_XPC_CANT_MODIFY_PROP_ON_WN)" location: "JS frame
:: http://localhost:8080/hello.xml :: anonymous :: line 91"
data: no]withinElement()()jquery.js (line 2404)
handler()()jquery.js (line 2193)
handle()()jquery.js (line 2076)
(?)()()jquery.js (line 1859)
[Break on this error] while ( parent && parent != elem ) try …tNode; }
catch(error) { parent = elem; }
This is a bit mysterious to me. Fortunately if I try with
$(”#hello1″).dialog({title: “hello”});
It fixes the problem
Note: I’ve only tried on Firefox 3.0.1 w/ Firebug 1.2.1