Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CssStyleDeclaration needs operator[] method #13058

Closed
DartBot opened this issue Sep 5, 2013 · 4 comments
Closed

CssStyleDeclaration needs operator[] method #13058

DartBot opened this issue Sep 5, 2013 · 4 comments
Labels
closed-duplicate Closed in favor of an existing report web-libraries Issues impacting dart:html, etc., libraries
Milestone

Comments

@DartBot
Copy link

DartBot commented Sep 5, 2013

This issue was originally filed by Misko.H...@gmail.com


CssStyleDeclartion does not support operator[] notation. CssStyleDeclartion should implement Map methods.

Often times when working with styles one gets the styles in the Map format. There is no easy way to copy the Map properties into the CssStyleDeclartion object without resorting to reflection or complex switch statement.

It is also often useful to enumerate the styles which are declared on the element. Again this is not possible with the current API.

Treating CssStyleDeclartion as both Map and direct property access would be the best solution.

@madsager
Copy link
Contributor

madsager commented Sep 5, 2013

Added Area-HTML, Triaged labels.

@blois
Copy link
Contributor

blois commented Sep 5, 2013

Added this to the M7 milestone.

@DartBot
Copy link
Author

DartBot commented Sep 6, 2013

This comment was originally written by @seaneagan


issue #9230 requests the same except having the Map as a field of CssStyleDeclaration instead of extending Map, but it was merged into issue #5048. This is also a dupe of issue #7177.

@efortuna
Copy link
Contributor

efortuna commented Sep 9, 2013

Added Duplicate label.
Marked as being merged into #5048.

@DartBot DartBot added Type-Defect web-libraries Issues impacting dart:html, etc., libraries closed-duplicate Closed in favor of an existing report labels Sep 9, 2013
@DartBot DartBot added this to the M7 milestone Sep 9, 2013
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-duplicate Closed in favor of an existing report web-libraries Issues impacting dart:html, etc., libraries
Projects
None yet
Development

No branches or pull requests

5 participants