View Single Post
  #2 (permalink)  
Old 07-23-2008, 05:14 PM
Daniel Crichton
 
Posts: n/a
Re: Htc behavior not applied to eg. INPUT – type image

trosen wrote on Wed, 23 Jul 2008 06:13:02 -0700:

> IE7 Ver. 7.0.5730.11
> Microsoft Windows XP Home Edition, 5.1.2600 Service Pack 3 Build 2600


> I have written a HTC-file for IE to emulate gecko’s watch() function
> The behaviour is attached true CSS by:


> input, textarea, select {
> border: 1px solid orange;
> behavior: url(../FW/htc/NK_watch.htc);
> }
> CSS-selector works as expected (orange border applied to all selected
> elements)
> url() is also correct (behaviour defined in NK_watch.htc applied to all
> selected elements but INPUT, type mage)


> As a test I replaced type-selectors by Universal selector *, looped
> true all elements in DOM (skipping #comment) checking for
> behaviour-objects and found it missing from some elements:


> TITLE, META, LINK - text/css, SCRIPT - text/javascript, BODY, OPTION,
> TABLE,
> TBODY, TR, TH, TD, INPUT – image


> Table and table-childs receives behaviour-objects unless they contains
> INPUT, type image, all other elements listed receives no
> behaviour-objects


> Can’t say I have seen any limitation in the documentation regarding
> which type of elements behaviors may be attached to


> Is this a bug?
> Is there a workaround?


Never used these, but to address the limitation on which elements see the
Applies To section of http://msdn.microsoft.com/en-us/libr...23(VS.85).aspx

Note that META is not in the list. However, the others are, which suggests
either a bug or that the documentation is wrong.

--
Dan


Reply With Quote