fixed up acc name calc for inputs

refer to https://www.w3.org/Bugs/Public/show_bug.cgi?id=20446