|
From: Antoine Q. <an...@gr...> - 2001-09-28 14:02:30
|
Hey,
The CSSStyleDeclaration interface could be improved.
First off, we need a method to give a string access to this interface's
methods. Like
var string = 'fill: red; opacity: 1';
var CSSString = doc.createCSSStyleDeclaration(string);
Right now, I have to use a non-appended node to which I
createAttribute('style', string). Then I get my CSSString through
getStyle and removeAttribute('style'). This is just annoying.
Other thing that I would like is a change to this interface.
CSSStyleDeclaration::item(n) returns the name of the n-th property in
the CSS string. I wish it returned an object that would have methods
like getPropertyName() and getCSSValue() or something like that.
That's it.
Antoine
|