Nvu progress 20040409
By glazou on Friday 9 April 2004, 21:07 - Nvu - Permalink
Implemented completely the proposed CSS Editing Object Model into Gecko. This will allow a very powerful class assignment to the selection.
And implementing it gave me more ideas for that CSS E OM.

Comments
Interesting, will this cover pseudo elements/classes and attribute selectors?
Great anounce. But I have a question about another matter:
What about frames support in Nvu? I've tested 0.20 and I can't see them in it.
Note: I'm not a web designer. I only need a program for editing simple and "domestic" html webs. Because of it I may find interesting frames support in Nvu. Is this planned to a near future?
Thanks for your time.
Regards.
@XaRz: do you really want to use frames? There are much better ways to do similiar things in HTML and CSS without all the nasty frame problems. So far I still want to see a web site really requiring frames. Frames are a constant source of problems. One of them makes web search engines unable to properly indes your site. Do you really want to scare off your visitors coming from Google by just displaying a single frame without the navigation? They will not come back anymore.
Daniel, is there a summary somewhere of what the target applications are for this particular spec? I'd be curious to know how Nvu uses this method.
Boris: I am using this method to populate a dropdown menu with all the class names "defined" in the stylesheets attached to the edited document. That dropdown "styles" the selection. If you have ever used MS Word, think of the Style dropdown toolbar menu. I will also use this method to populate context menus allowing to assign an ID or add/remove a class to a given element, through the structure toolbar at the bottom of Composer/Nvu.
The extensions I am thinking of are the following ones: (a) get a CSSRuleList with all the style rules attached to the edited document and having a selector matching with a given set of IDs, element types and classes. That's needed for instance to remove all the rules "defining" a given class. (b) get the rules having the selector reduced to a given class selector, ID selector or element type selector
Ah, the styles dropdown sounds cool. I've no idea what Word does (haven't really ever used it), but it sounds similar to FrameMaker's way of applying style.
).
I'm a little confused by your later example of removing all rules "defining" a given class, though. What happens with rules like:
.foo, .bar { something }
?
In short, I'm wondering whether this is the best api we could use for the tasks we want to do (which is why I ask what tasks we want to do, of course
@hdeer:
I know the problems of frames. I'm not asking this. On the other hand..there is a "easy way" to use CSS as frames? If there is a easy way for it...tell me, because I'm a ignorant about html coding.
Regards,
I love these features you are adding CSS editing, but when will the Spell Checker work in the Linux version? Nothing worse then misspellings in web pages!
Thanks,
> I'm a little confused by your later example of removing all rules "defining" a given class, though. What happens with rules like:
>
> .foo, .bar { something }
Removing all rules using class "bar" should result in
.foo { something }