Fixed parseInputAttributes to parse only specified input types