February 27th, 2001, 11:02 PM
I've been slaving on this one, and don't seem to be getting anywhere.
I've accomplished my goal in IE 5.x using the following:
this gives me the "name" of the CSS selector.
In reading the CSS2 DOM, the following "should" work in NN, but I get a "bank" or "null" result.
If I call the cssText attribute, I get all the text (properties) of the class, if I pull a type attribute
I get the appropriate (1) response.
Anyone, have any thoughts as to the nature of the problem?
I'm building a "select" menu of the attached Style Sheet of the given document, to allow for "dynamic" altering of classes in a document, etc.. that's vague I know.. but anyway.. obviously, to build the select menu, I need to know the selectorText values from the style sheet.
March 21st, 2001, 12:32 PM
After much agony, I solved the problems I was having...
Turns out that the currently available version of NS6/6.01 has a bug which prevents it from displaying the selectorText.
This should be corrected in the release of NS6 as Mozilla 0.8 provides the solution.
On a side note, if you're a NetScape 6 user, I would seriously recommend using Mozilla instead, available from Mozilla.org.
This is updated each day, with a daily build..
The download is like really small, less than 3Mb and I've found Mozilla to load about 2 times faster than NS6/6.01
and It's more stable.