[thelist] DHTML: IE clip bug?
Gary McPherson
lists at ingenyus.net
Mon Jan 12 11:17:57 CST 2004
I've observed some unhelpful behaviour from IE (6, WinXP) when trying to
manipulate the clip values of an element using Javascript. If the values
are delimited using commas (which I discovered was necessary for CSS
validation), then IE fails to retrieve a clip value from the style
object at all. I tried moving the definitions from inline style
attributes to a stylesheet, but it behaves in the same way.
So essentially this will validate as CSS, but breaks IE:
myElem { clip: rect(5px,25px,25px,5px); }
while this will work in IE but not validate as CSS:
myElem { clip: rect(5px 25px 25px 5px); }
Curiously, I tried making up a rule for an "iclip" value, which IE
retrieves just fine. Of course, it wouldn't validate as CSS, but it
indicates that IE has a specific expectation of the clip string format
that doesn't match the W3C standard. I've Googled for this, but haven't
found any instances relating to this particular bug, so I'm hoping
someone here can help me out. I can knock up a demo page if anyone needs
a live example.
Thanks in advance,
Gary
More information about the thelist
mailing list