There appears to be a problem with GetValue when trying to access the "FOR" attribute of a label element... The second assert fails as "for" seems to resolve to "undefined"... I can though evaluate this correctly by enumerating the label elements attributes collection. ...