Opened 12 years ago

Closed 12 years ago

#10233 closed defect (wontfix)

dijit.Dialog puts title attribute on the title div not the whole Dialog

Reported by: ashleymoran Owned by:
Priority: high Milestone: tbd
Component: Dijit Version: 1.4.0b
Keywords: Cc:
Blocked By: Blocking:


We're using Celerity (HtmlUnit?) to implement out web tests. We wanted to write a Cucumber step to look up the dialog by its title attribute, and then click the "Delete" button in it. But Dojo puts the title on a div inside the dialog, which means you have to understand the structure of the generated HTML to write the step.

Here is a cut down sample (we're using a custom Dialog subclass):

<div title="" id="tt_tijit_ConfirmationDialog_0" class="dijitDialog dijitContentPane">
    <div title="Confirm that you want to delete" dojoattachpoint="titleBar" class="dijitDialogTitleBar">
        <span dojoattachpoint="titleNode" class="dijitDialogTitle" id="tt_tijit_ConfirmationDialog_0_title">
            Confirm that you want to delete
        <span dojoattachpoint="closeButtonNode" class="dijitDialogCloseIcon" title="Cancel">
          <span dojoattachpoint="closeText" class="closeText" title="Cancel">x</span>
    <div style="width: auto; height: auto;" dojoattachpoint="containerNode" class="dijitDialogPaneContent">
        <div id="confirmation-dialog">
            Our form contents

Would it make more sense to title the whole Dialog, rather than title div? (Which has that text as its body anyway.) Or is there a specific reason for this?

Change History (1)

comment:1 Changed 12 years ago by bill

Resolution: wontfix
Status: newclosed

IIRC we do that so the title tooltip doesn't show up when the mouse (or focus) is over the dialog contents. It would be pretty annoying if a tooltip kept appearing as the user was trying to fill in form fields inside of a Dialog.

Note: See TracTickets for help on using tickets.