Export (0) Print
Expand All

Binary behaviors and XML schema

As of Windows Internet Explorer 9, XML schemas no longer allow binary behaviors to be imported using namespaces. This affects IE9 standards mode and later document modes.

Instead of using HTML markup, use Cascading Style Sheets (CSS)-based registration through the behavior property.

You can use CSS-based registration through elements other than the class attribute.

A behavior can be specified at the top of a webpage by using HTML markup, as the following code example shows.


<html xmlns:myNamespace>
  <?import namespace="myNamespace" implementation = "my.htc">
  ...
  <myNamespace:calendar/>


However, the code above does not work in XML mode.

Instead, use the code below inXML mode


<style>
.calendar {
  -ms-behavior: url(my.htc);
}
</style>
...
<div class="calendar"></div>


Related topics

-ms-behavior Attribute | behavior Property
Binary Behaviors

 

 

Show:
© 2014 Microsoft