> The reason for this is because if the element.style.display and > element.style.visibility are not always visible via JS calls. This means > you can not probe elements that use class names and inline styles for > their default state. After JS is used to alter the state of display, it > then becomes a readable attribute (I don't know why).
That is partly correct. JS cannot access the attributes if they were set using a <style> block or an external stylesheet. If you set them via inline styles (div style="display: none") it can. There must be some way to get at it otherwise, but I haven't ever found one that works in all browsers. I wish the browser makers would fix this, so if you look at element.style you get all of the attributes, whether they were applied via css, inline style, or javascript. But I doubt they will. Greg _______________________________________________ Rails-spinoffs mailing list [email protected] http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
