dojo.io.checkChildrenForFile evaluates length.getAttribute - is not a function
|Reported by:||s.milek@…||Owned by:||anonymous|
Using dojo.io.bind with a formNode, I get an exception in dojo.io.checkChildrenForFile (BrowserIO.js line 15 / trunk HEAD) :
"input.getAttribute is not a function"
this is because the result of the call on line 12 of BrowserIO.js:
var inputs = node.getElementsByTagName("input");
'inputs' does not evaluate to an Array according the dojo.lang.isArray, which is called in dojo.lang.forEach
this eventually causes inputs.length.getAttribute() to be attempted
in Venkman, 'inputs' is an HTMLCollection object (FF1.5 WinXP)
based on the svn log for lang/common.js, dojo.lang.forEach was modified a couple of times each by 2 different developers on 03-24. This may be part of it. I do not know if this was a problem prior to now, because I just created this case.
Also, the form is created via ContentPane.setContent, which uses innerHTML. I'm mentioning this because I'm imagining that the node-tree created via setting innerHTML may have peculiarities about it that cause the error in my case but not in the normal case (where the content is not set with innerHTML).
Change History (9)
comment:2 Changed 8 years ago by s.milek@…
- Component changed from General to Core
- Version changed from 0.2 to 0.3
comment:3 Changed 8 years ago by jeoffwilks@…
- Cc jeoffwilks@… added
- severity changed from normal to blocker