Opened 8 years ago

Closed 8 years ago

#10981 closed bug (notabug)

Error in dialog() when HTML contains comment

Reported by: diverman Owned by:
Priority: minor Milestone: none
Component: ui.dialog Version: 1.10.3
Keywords: Cc:
Blocked by: Blocking:


Following code will display dialog, but error "this.element[0].style is undefined" will occur.

$('<div>test</div><!-- comment -->').dialog();

Change History (1)

comment:1 Changed 8 years ago by Scott González

Resolution: notabug
Status: newclosed

Because you're creating two elements, a div and a comment, and trying to turn both into dialogs. Obviously you can't turn a comment into a dialog, so this is invalid usage.

Note: See TracTickets for help on using tickets.