2013-01-24 47 views
0

我試圖在客戶端Jade模板中實現搜索欄模板。Jade Template not rendering複選框在IE中

table.SearchBar(cellpadding="0", cellspacing="0") 
    tr 
     td.SearchCell 
      div.SearchIndicator(id="SearchIndicator_#{eId}") 
      input.SearchText.Initializing(id="SearchText_#{eId}", type="text", placeholder="gathering contacts list...") 
     -if(parentName === "Contacts") 
      td.SearchCell(style="width: 100px;") 
       button.PresenceButton(id="PresenceButton_#{eId}") 
        input.PresenceCheckbox(type="checkbox", name="Presence", id="PresenceCheckbox_#{eId}") 
        p.PresenceLabel online only? 

在Chrome中& &火狐,一切都呈現很好。在IE 9中,只有複選框無法呈現,沒有出現在Web檢查器中,並且它的缺席也會在稍後的腳本中導致錯誤。

這是殺了我。有任何想法嗎?

回答

1

呃...您不能在Internet Explorer中將INPUT元素放入BUTTON元素中。

+1

而且你不應該在任何瀏覽器中進行操作。我很驚訝它在任何地方渲染。這是可怕的語義,它永遠不會驗證。 –