Playing with SharePoint 2010 and have noticed a very strange behavior. When uploading html or css file to the document library (by user and by C# code), SharePoint automatically adds such code into the files:
<html xmlns:mso="urn:schemas-microsoft-com:office:office" xmlns:msdt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"><head>
<!--[if gte mso 9]><xml>
<mso:CustomDocumentProperties>
******************************
</mso:CustomDocumentProperties>
</xml><![endif]-->
</head>
That's really undesired behavior, cause uploaded files will be used later for validation purposes by custom library.
Is there any possibility to avoid such behavior at SharePoint side? It's not desired to modify the validation lib.
Thanks in advance.