{"action":"created","issue":{"url":"https://api.github.com/repos/yourlabs/django-autocomplete-light/issues/654","repository_url":"https://api.github.com/repos/yourlabs/django-autocomplete-light","labels_url":"https://api.github.com/repos/yourlabs/django-autocomplete-light/issues/654/labels{/name}","comments_url":"https://api.github.com/repos/yourlabs/django-autocomplete-light/issues/654/comments","events_url":"https://api.github.com/repos/yourlabs/django-autocomplete-light/issues/654/events","html_url":"https://github.com/yourlabs/django-autocomplete-light/issues/654","id":142680750,"number":654,"title":"Attribute \"multiple\" twice in <select> tag","user":{"login":"guettli","id":414336,"avatar_url":"https://avatars.githubusercontent.com/u/414336?v=3","gravatar_id":"","url":"https://api.github.com/users/guettli","html_url":"https://github.com/guettli","followers_url":"https://api.github.com/users/guettli/followers","following_url":"https://api.github.com/users/guettli/following{/other_user}","gists_url":"https://api.github.com/users/guettli/gists{/gist_id}","starred_url":"https://api.github.com/users/guettli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guettli/subscriptions","organizations_url":"https://api.github.com/users/guettli/orgs","repos_url":"https://api.github.com/users/guettli/repos","events_url":"https://api.github.com/users/guettli/events{/privacy}","received_events_url":"https://api.github.com/users/guettli/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-22T15:12:42Z","updated_at":"2016-03-23T13:24:23Z","closed_at":"2016-03-23T13:24:23Z","body":"The html output I get from the widget looks like this:\r\n```\r\n<select multiple=\"multiple\" data-autocomplete-light-function=\"select2\" data-autocomplete-light-url=\"/foo/bar/\" id=\"id_to\" multiple=\"multiple\" name=\"barfoo\">\r\n</select>\r\n```\r\n\r\nThe attribute `multiple` exists twice. I tried to find a reason for this, but failed.\r\n\r\nThis is forms/widget.py from Django==1.8.9. \r\n```\r\n\r\nclass SelectMultiple(Select):\r\n    allow_multiple_selected = True\r\n\r\n    def render(self, name, value, attrs=None, choices=()):\r\n        if value is None:\r\n            value = []\r\n        final_attrs = self.build_attrs(attrs, name=name)\r\n        output = [format_html('<select multiple=\"multiple\"{}>', flatatt(final_attrs))]\r\n\r\n```\r\n\r\nThe attribute is in the final_attrs and in the format_html().\r\n\r\n\r\nIs the attribute in your html twice?\r\n\r\nI am unsure how to fix it.\r\n\r\nDo you have an idea?"},"comment":{"url":"https://api.github.com/repos/yourlabs/django-autocomplete-light/issues/comments/200342023","html_url":"https://github.com/yourlabs/django-autocomplete-light/issues/654#issuecomment-200342023","issue_url":"https://api.github.com/repos/yourlabs/django-autocomplete-light/issues/654","id":200342023,"user":{"login":"guettli","id":414336,"avatar_url":"https://avatars.githubusercontent.com/u/414336?v=3","gravatar_id":"","url":"https://api.github.com/users/guettli","html_url":"https://github.com/guettli","followers_url":"https://api.github.com/users/guettli/followers","following_url":"https://api.github.com/users/guettli/following{/other_user}","gists_url":"https://api.github.com/users/guettli/gists{/gist_id}","starred_url":"https://api.github.com/users/guettli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guettli/subscriptions","organizations_url":"https://api.github.com/users/guettli/orgs","repos_url":"https://api.github.com/users/guettli/repos","events_url":"https://api.github.com/users/guettli/events{/privacy}","received_events_url":"https://api.github.com/users/guettli/received_events","type":"User","site_admin":false},"created_at":"2016-03-23T13:24:23Z","updated_at":"2016-03-23T13:24:23Z","body":"We have a CheckHTMLMiddleware which checks the HTML going from webserver to browser. It must be something in Python.\r\n\r\nSince you don't see it, I don't care very much. I will close this. Thank you checking this."}}