Reputation: 14088
I just find out some htc files in my solution with some script inside what does those file do ? Is it possible to remove them. the using inside like behavior link inside of CSS
Upvotes: 0
Views: 2457
Reputation: 369
HTC reference from MSDN:
For Microsoft Internet Explorer 5 and later, HTML Components (HTCs) provide a mechanism to implement components in script as Dynamic HTML (DHTML) behaviors. An HTC is an HTML file that contains script and a set of HTC-specific elements that define the component. The component is saved with an .htc extension. This section lists these HTC-specific elements and the members they support.
And maybe this comment can be of value.
Upvotes: 3
Reputation: 2256
I have only used an htc file to allow IE (< 9) to draw rounded corners, along with the border-radius property. This is not a recommended practice though. It depends on your priorities: if you prefer efficiency over design, I wouldn't use those files.
Upvotes: 0
Reputation: 1347
http://www.filefacts.net/htc-file-extension
Files that use the file extension .htc are HTML Component Files which are HTML pages that are wrapped in descriptors that define properties etc that are used by the component, an apt description can be found on the w3.org website which states "HTC is literally a normal HTML file with a few defined XML elements inserted in the document"
Upvotes: 0
Reputation: 43087
It's likely there to support CSS features unavailable in older versions of IE.
http://www.fileinfo.com/extension/htc
Upvotes: 2