Adding details of hidden attribute from html5 to determining visibility