https://github.com/jquery/jquery/blob/master/src/attributes.js#L205