开发者

tbody tag element and DOM

开发者 https://www.devze.com 2022-12-26 11:19 出处:网络
i want to use HtmlAgilityPack with WebBrowser control开发者_如何学Python, but i have a problem. DOM is different because IE adds tbody tag element after table. Why? How i can disable it? In HTML, the

i want to use HtmlAgilityPack with WebBrowser control开发者_如何学Python, but i have a problem. DOM is different because IE adds tbody tag element after table. Why? How i can disable it?


In HTML, the tbody element is required. The start and end tags are, however, optional (as are those of the html, body and head elements, and the end tag for p, td, li and numerous others).

You just need to write your code to be able to handle both cases (or include the tbody tags explicitly)

0

精彩评论

暂无评论...
验证码 换一张
取 消