Jeff wrote:
Quote:
Ben C wrote:
On 2008-11-29, Jonathan N. Little <lws4art (AT) central (DOT) net> wrote:
Ben C wrote: |
Quote:
There you're just removing it from the style attribute-- it will still
apply if it's in a CSS rule whose selector matches the element.
Sorry, I've been out of town...
It seems to me that if setting the style to empty works then it seems
like |
Method addRule is not documented to work that way[1]. This would result
in unexpected results such as a javascript error, no effect, creates a
rule that is ignored because the property value is invalid, or shadows
the existing property.
Quote:
you should also be able to addRule/insertRule and set the css text
to empty.
I'm assuming you guys know about that, for those that don't, something
like this will add a rule to the end of your last stylesheet: |
Use:-
td.some {
display: block;
display: table-cell;
}
User agents must ignore a declaration with an illegal value[2]. To IE,
table-cell is illegal, so it ignores that.
Garrett
[1]http://msdn.microsoft.com/en-us/library/aa358796(VS.85).aspx
[2]http://www.w3.org/TR/CSS21/syndata.html#ignore
--
comp.lang.javascript FAQ <URL: http://jibbering.com/faq/ >