Fixed select() generating invalid HTML (not leaving space between attributes)