Opened 10 years ago
Closed 10 years ago
#8840 closed bug (notabug)
JQuery UI opens multiple dialogs when facing an XML header
Reported by: | urskr | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.10.0 |
Component: | ui.dialog | Version: | 1.9.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Using JavaScript's XMLSerializer, I convert some XML to HTML. In Firefox, the resultant HTML is prefaced with XML metadata: When I hand this into jquery's dialog function, multiple dialogs open. The code behaves as expected in Chrome, since the XMLSerializer doesn't add the XML metadata.
var content = new XMLSerializer().serializeToString(result); <?xml version="1.0" encoding="UTF-8"?><myXML></myXML> $(content).dialog();
Change History (2)
comment:2 Changed 10 years ago by
Resolution: | → notabug |
---|---|
Status: | new → closed |
This is correct. If you call dialog on two nodes, you'll get two dialogs.
Note: See
TracTickets for help on using
tickets.
As a workaround, I can remove the XML header: