Error with _AttributeMap in Firefox #11879
Labels
closed-obsolete
Closed as the reported issue is no longer relevant
web-libraries
Issues impacting dart:html, etc., libraries
Iterating over the keys of an element's attributes is throwing an error in Firefox. Note: https://codereview.chromium.org/18302005/ does not fix this issue.
What is the expected output? What do you see instead?
To not have an error. Instead the following happens:
uncaught exception: NoSuchMethodError : method not found: 'length'
Receiver: Instance of 'JSUnknown'
Arguments: []
.wrapException@http://127.0.0.1:3030/.../web/out/index.html_bootstrap.dart.js:31163
.Interceptor.noSuchMethod$1@http://127.0.0.1:3030/.../web/out/index.html_bootstrap.dart.js:26585
.Object.get$length@http://127.0.0.1:3030/.../web/out/index.html_bootstrap.dart.js:59790
._AttributeMap.get$keys@http://127.0.0.1:3030/.../web/out/index.html_bootstrap.dart.js:72279
._AttributeMap.forEach$1@http://127.0.0.1:3030/.../web/out/index.html_bootstrap.dart.js:72266
$.forEach$1$ax@http://127.0.0.1:3030/.../web/out/index.html_bootstrap.dart.js:124158
._DataAttributeMap.forEach$1@http://127.0.0.1:3030/.../web/out/index.html_bootstrap.dart.js:72452
$.forEach$1$ax@http://127.0.0.1:3030/.../web/out/index.html_bootstrap.dart.js:124158
.HashMap.addAll$1@http://127.0.0.1:3030/.../web/out/index.html_bootstrap.dart.js:50440
$.addAll$1$ax@http://127.0.0.1:3030/.../web/out/index.html_bootstrap.dart.js:123996
.Config.setAll$1@http://127.0.0.1:3030/.../web/out/index.html_bootstrap.dart.js:37466
.Config_Config$fromHtmlContainer@http://127.0.0.1:3030/.../web/out/index.html_bootstrap.dart.js:37483
.main@http://127.0.0.1:3030/.../web/out/index.html_bootstrap.dart.js:98655
.main0@http://127.0.0.1:3030/.../web/out/index.html_bootstrap.dart.js:32528
._IsolateContext.eval$1@http://127.0.0.1:3030/.../web/out/index.html_bootstrap.dart.js:28202
.startRootIsolate@http://127.0.0.1:3030/.../web/out/index.html_bootstrap.dart.js:29368
@http://127.0.0.1:3030/.../web/out/index.html_bootstrap.dart.js:131827
What version of the product are you using? On what operating system?
Firefox 22.0 Mac
Please provide any additional information below.
Running
document.body.attributes
in FF returns[object MozNamedAttrMap]
.The text was updated successfully, but these errors were encountered: