Fixed some invalid html, and tweaked the html validation settings in the test crawler.

- Legacy-Id: 12066
This commit is contained in:
Henrik Levkowetz 2016-09-30 18:47:56 +00:00
parent cd2d8a597e
commit 8e11c7cb64
3 changed files with 10 additions and 6 deletions

View file

@ -133,7 +133,7 @@ def check_html_valid(url, response, args):
key = re.sub("/draft-[a-z0-9-]+/", "/draft-foo/", key)
key = re.sub("/group/[a-z0-9-]+/", "/group/foo/", key)
key = re.sub("/ipr/search/.*", "/ipr/search/", key)
key = re.sub("/meeting/[0-9]+/agenda/[0-9a-z]+/", "/meeting/nn/agenda/foo/", key)
key = re.sub("/meeting/[-0-9a-z]+/agenda/[0-9a-z]+/", "/meeting/nn/agenda/foo/", key)
key = re.sub("/release/[0-9dev.]+/", "/release/n.n.n/", key)
key = re.sub("/rfc[0-9]+/", "/rfcnnnn/", key)
key = re.sub("/rg/[a-z0-9-]+/", "/rg/foo/", key)
@ -248,7 +248,9 @@ for url in initial_urls:
parser = html5lib.HTMLParser(strict=True)
validated_urls = {}
# initialise validated_urls with some patterns we don't want to check,
# because they aren't under our control, such as uploaded group agendas.
validated_urls = {'/meeting/nn/agenda/foo/': True, }
doc_types = [ t.slug for t in DocTypeName.objects.all() ]

View file

@ -35,6 +35,7 @@
{% endif %}
</tr>
<tr>
<td></td>
<th>State</th>
<td>
@ -43,6 +44,7 @@
<div class="label label-info">In the process of being closed</div>
{% endif %}
</td>
</tr>
{% if group.features.has_chartering_process %}
<tr>

View file

@ -56,14 +56,13 @@
{% for item in releases %}
{% ifchanged %}
</tbody>
<thead>
<tbody>
<tr><td colspan="3"></td></tr>
<tr class="year-row">
<th><h3>{{ item.date|slice:"7:11" }}</h3></tth>
<th class="h3">{{ item.date|slice:"7:11" }}</th>
<th></th>
<th></th>
</tr>
</thead>
<tbody>
{% endifchanged %}
<tr class="version-row">
<td class="version"><a href="/release/{{item.version}}/">{{ item.version }}</a></td>
@ -71,6 +70,7 @@
<td class="release-title">{{ item.title }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endblock %}