diff options
author | Damien Lespiau <damien.lespiau@intel.com> | 2015-12-20 03:53:53 +0000 |
---|---|---|
committer | Stephen Finucane <stephen.finucane@intel.com> | 2016-02-08 19:03:46 +0000 |
commit | c02b41a30f8fb2554c6f57d2063a1944c89aab8e (patch) | |
tree | 97b0edd49e899c7b8803d66b3424b923fea616d9 /patchwork/filters.py | |
parent | 73b0a3db61d3bfe28d48149233215190190d7c5b (diff) | |
download | patchwork-c02b41a30f8fb2554c6f57d2063a1944c89aab8e.tar patchwork-c02b41a30f8fb2554c6f57d2063a1944c89aab8e.tar.gz |
ui: Switch to HTML5 doctype and fix issues
A few common things:
- Remove the 'role' attribute of <nav>
- Don't use the self closing syntax ('/>') on non void elements
- Don't use the language attribution in <script>
- Remove spurious attributes
- The 'check' attribute of <input> doesn't take any value
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Acked-by: Stephen Finucane <stephen.finucane@intel.com>
Diffstat (limited to 'patchwork/filters.py')
-rw-r--r-- | patchwork/filters.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/patchwork/filters.py b/patchwork/filters.py index b66407e..7d0d03c 100644 --- a/patchwork/filters.py +++ b/patchwork/filters.py @@ -309,10 +309,10 @@ class ArchiveFilter(Filter): label = self.description_map[b] selected = '' if self.archive_state == b: - selected = 'checked="true"' + selected = 'checked' s += ('<label class="checkbox-inline">' - ' <input type="radio" name="%(param)s" ' + - '%(selected)s value="%(value)s">%(label)s' + + ' <input type="radio" name="%(param)s" ' + '%(selected)s value="%(value)s">%(label)s' '</label>') % \ {'label': label, 'param': self.param, |