fixed tabs/spaces and prevent issues if placeholder attribute is missing