开发者

How to get access to no-existing tag?

开发者 https://www.devze.com 2023-04-11 05:48 出处:网络
If you create following HTML below: <table> <tr> <td></td> <td>Last1</td>

If you create following HTML below:

<table>
<tr>
    <td></td>
    <td>Last1</td>
    <SPAN><FONT>test1</FONT></SPAN>
</tr>
</table>
开发者_如何学Go

and check DOM model you will see that IE(maybe others) create tag with no-name.

Here is link to screenshot Screenshot:

Are there any possibility to get access to this tag or not ?


Your HTML is invalid.
You can only put <td> and <th> elements directly inside <tr>s.

The browser is creating this tag in an attempt to fix your broken markup.

You should correct your HTML.

0

精彩评论

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