--- a/AlluraTesting/alluratest/validation.py
+++ b/AlluraTesting/alluratest/validation.py
@@ -10,6 +10,7 @@
import subprocess
import json
import urllib2
+import re
import tg
import mock
@@ -199,9 +200,10 @@
'Required attributes missing on element "object"',
'Stray end tag "embed".',
'Stray end tag "param".',
+ r'Bad value .+? for attribute "onclick" on element "input": invalid return',
]
for ignore in ignored_errors:
- resp = resp.replace('Error: ' + ignore, 'Ignoring: ' + ignore)
+ resp = re.sub('Error: ' + ignore, 'Ignoring: ' + ignore, resp)
if 'Error:' in resp:
fname = dump_to_file('html5-', html)