Changes between Initial Version and Version 1 of Ticket #7478


Ignore:
Timestamp:
Aug 19, 2008, 1:02:25 PM (11 years ago)
Author:
bill
Comment:

I was able to make this problem go away by changing all the <div> tags in the button template to <span> tags. Button still seemed to render correctly (on IE anyway) but it would need more testing.

I'm just thinking that the generated DOM, and it's surrounding nodes, are pretty strange:

<p>
   <div>
        <div>
            <button>
                 <div></div>
            </button>
       </div>
   </div>
</p>

Neither <button> nor <p> should contain <div> so it's not completely surprising that something fails.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #7478 – Description

    initial v1  
    11in tests/form/test_Button.html put a <p> around a button.
    2 
     2{{{
    33<p>
    44<button id="1465" dojoType="dijit.form.Button" onClick='console.log("clicked simple")' iconClass="plusIcon">
    55Create
    66</button></p>
    7 
     7}}}
    88This breaks IE but shouldn't since buttons are allowed in <p> tags