Questions tagged [html-components]

HTML Components (HTC) is a browser feature found in Microsoft Internet Explorer, allowing Javascript code to be triggered by CSS styles.

58 questions
46
votes
3 answers

What is difference between .htc and .js file?

What is difference between .htc and .js file? Can we convert any .htc file to a .js file? The problem is if we use htc to make png fixes, then we add htc to css file using body { behavior: url("csshover3.htc"); } But this is not W3C valid, so…
Jitendra Vyas
  • 148,487
  • 229
  • 573
  • 852
33
votes
3 answers

Remove/reset CSS behavior property

Is it possible to remove the IE-specific behavior CSS property via a more specific rule or the !important declaration? Example: .a-rule { behavior: url(/some.htc); } .a-rule.more-specific { behavior: /*no HTC*/ } I realize that overriding CSS…
Jeremy Kauffman
  • 10,293
  • 5
  • 42
  • 52
11
votes
2 answers

How to set a content-type for a specific file with Rack?

I want to have Rack serve a specific file with a specific content type. It's a .htc file and it needs to be served as text/x-component so that IE will recognize it. In apache I would just do AddType text/x-component .htc How can I achieve this with…
Sven Koschnicke
  • 6,523
  • 2
  • 34
  • 49
10
votes
6 answers

Using CSS3Pie htc for border-radius in IE8

I'm using the CSS3Pie htc file to enable border-radius in IE8, but I'm getting no effect. My CSS is: button { border-radius: 4px; -webkit-border-radius: 4px; -moz-border-radius: 4px; behavior: url(PIE.htc); } I've put PIE.htc in the…
Adam Hopkinson
  • 28,281
  • 7
  • 65
  • 99
8
votes
3 answers

Angular 10 “No definition found for …” in HTML component in Visual Studio Code

I'm working with angular 10 in VSCode and everything was working fine until today. Suddenly I can't go to definition from HTML component neither via F12, right click - Go to definition nor Ctrl+click. Go to definition works just on typescript…
7
votes
1 answer

Do .htc style behaviours still work if javascript is disabled?

Do .htc style behaviours still work if javascript is disabled? I'd like to use whatever:hover to create some css only drodpowns and would like to know if IE will still pay attention to the htc file if js is disabled.
dmnc
  • 791
  • 7
  • 14
6
votes
2 answers

Why does CSS3Pie + Prototype 1.6.1 crash Internet Explorer 8

I'm trying to understand why Css3Pie used in conjunction with Prototype 1.6.1 crashes Internet Explorer 8. Why is this happening? Relevant information CSS3Pie [source code] is an Internet Explorer behavior (htc) that adds support for CSS3…
5
votes
1 answer

Replacement of HTC files

I am working on a project which is using HTML Components files (.htc), now i want to upgrade the project that should work on all the browsers with IE10, as htc files are no longer supported by IE10. So Please give me solution how we can convert the…
Saurabh
  • 5,661
  • 2
  • 26
  • 32
4
votes
1 answer

Why DHTML behavior not work in IE8 if document.write is executed in ?

We have a 3rd party web application which works on in IE6, but not works in IE8. The sample code is like below, the "message from .htc" message will popup in IE6, but not popup in IE8. test.html
LiuYan 刘研
  • 1,614
  • 1
  • 16
  • 29
3
votes
2 answers

UI templating library built in LitElement

I'm looking for a UI components/templating library that's built with LitElement. I've already checked Aybolit (https://github.com/web-padawan/aybolit) but it has very limited number of components. I need a library like Carbon design systems but…
3
votes
2 answers

Memory leak in IE: Due to ajax call using .load()

I am loading entire data of .html files in a div via ajax call. The html page contains link,script tags required for HTC(html component) to bind with the elements on page. The structure of the page is like: I am using jQuery to load HTML pages like…
2
votes
1 answer

How can I dynamically import litelements

I have been trying to create some components using litelement. Is there any way to prevent importing every component and import dynamically only required components
2
votes
1 answer

Why is IE using styles from media=print CSS?

I have the following HTML where there is a DHTML behavior added to the CSS class. When the code is written in the following way, Internet Explorer (version 8 in compatibility mode) reads the @media print as well instead of using the top style…
Kamal
  • 21
  • 3
2
votes
1 answer

Are .htc files (like CSS3Pie or border-radius.htc) active-x controls?

I'm trying to find a quick (even dirty if needed) solution to implement rounded corners into a client space for my company. Security and IT team tells me that border-radius.htc…
Julien
  • 21
  • 2
2
votes
1 answer

How to combine HTML web component with HTML file? innerHTML = foo("myfile.html")

With the HTML web components, I understand I can set their HTML code with: this.innerHTML = `

`; The problem I have with this is I miss out on the convenience of Emmet Abbreviation and if I'm making a lot of components, this slows me…
Darryl Johnson
  • 646
  • 6
  • 14
1
2 3 4