Why doesn't DW8 like document arrays assigned to variables? Using the syntax,

formInput = document.getElementsByTagName("input")

Returns an error saying "formInput has no properties."

Here's the full example:

var dom = dw.getDocumentDOM();
// get the current document's SKU_Condition meta tag
var skuCondMeta = dom.getElementsByTagName("meta");
for ( counter = 0; counter < skuCondMeta.length; counter++)
{
if (skuCondMeta[counter].name == "SKU_Condition") // so far so good

// get dom of the extension html form and assign the sku cond to the input
field value

/* why doesn't this code work?

var formInput = document.getElementsByTagName("input");
for ( iter = 0; iter < formInput.length; iter++)
{
if (formInput[iter].name == "sku_cond")
formInput[iter].value = skuCondMeta[counter].content;
*/

/* instead, I have to do this */

for ( iter = 0; iter < document.getElementsByTagName("input").length; iter++)
{
if (document.getElementsByTagName("input")[iter].name == "sku_cond")
document.getElementsByTagName("input")[iter].value =
skuCondMeta[counter].content;
}

Thanks for the help!

-Scott