PHP腳本建立以下(非常複雜的腳本,太長,張貼在這裏),但鉻檢查員回饋「未捕獲的SyntaxError:意外的標記非法」。我無法找到下面的HTML問題,有什麼想法?Chrome檢查:未捕獲的SyntaxError:意外的標記非法
<div id='580762bd48bb28c4ce3e1fafe5435969'>
<div>There is 1 new comment on your <a href="/gci/user/aid1795">activity</a>.</div>
<img src='/img/close.png' onclick='notificationViewed(3428, 2, 1795, 580762bd48bb28c4ce3e1fafe5435969)'></img>
</div>
</br></br>
<div id='afc89b3105b7a29d764dcebe75d2f5ef'>
<div>There is 1 new comment on your <a href="/gci/user/aid3">activity</a>.</div>
<img src='/img/close.png' onclick='notificationViewed(3428, 2, 3, afc89b3105b7a29d764dcebe75d2f5ef)'></img>
</div>
</br></br>
<div id='29f4b2518ab7498273466d4c584c6c2c'>
<div>There are 2 new comments on your <a href="/gci/forecast/ifp.php?iid=269">comment</a>.</div>
<img src='/img/close.png' onclick='notificationViewed(3428, 3, ifpgci269, 29f4b2518ab7498273466d4c584c6c2c)'></img>
</div>
</br></br>
<div id='5cbe38a820ff37f4522fc314e14b1fd6'>
<div>There are 2 new comments on "<a href="/gci/forecast/ifp.php?iid=269">Test1</a>".</div>
<img src='/img/close.png' onclick='notificationViewed(3428, 1, ifpgci269, 5cbe38a820ff37f4522fc314e14b1fd6)'></img>
</div>
</br></br>
</div>
您的HTML非常無效。擺脫關閉標籤和標籤。這些雖然是有效的XML,但不用於HTML。因爲你的HTML非常殘暴,我拒絕進一步檢查它。 – austincheney 2012-03-22 15:01:46
確實,您不需要關閉HTML的圖像標記,但是您需要爲XHTML創建圖像標記。 – Tony 2012-03-22 15:19:10
關閉標記不會被IE接受。相反,使圖像的標籤的單,使得直接斜線結束分隔符之前: – austincheney 2012-03-22 21:04:14