Dear All,

Problem in brief:

Web browser control changes 'TR','TD' tags ‘Align’ attribute value from center to middle

Detail:

Version of IE installed on my machine is "6.0.2800.1106.xpsp2.050301-1526".

I am using web browser control in Windows Visual Basic .Net application.

Paste Web browser control on Window Form and pass value "about:blank" to navigate method of web browser control.

Then assign following script to 'innerHtml' property of object 'HTMLBody'.

-------------------------------
<TABLE>
<TBODY>
<TR align=center>
<TD align=center></TD>
<TD></TD></TR>
<TR>
<TD></TD>
<TD></TD></TR></TBODY></TABLE>
-------------------------------

Without doing any change when get script back by using property ‘innerHtml’, it returns
Following script in which 'align=center' has been replaced by align=middle.
Script is given below:

<TABLE>
<TBODY>
<TR align=middle>
<TD align=middle></TD>
<TD></TD></TR>
<TR>
<TD></TD>
<TD></TD></TR></TBODY></TABLE>

HTML 4.0 specifications says Align attribute in element TR, TD can have values left | center | right | justify | char.

Can someone please figure out why browser control accepting align=”middle” for TR and TD tags?
Is it using some other schema? If yes then can someone provide me that schema?
Is it the only change which browser makes or it also violate HTML4.0 at some other tags?
Please help in this regards. Thanks


Regards

Bravo