mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 10:35:48 +00:00
Strip RDFa attributes in parserTests
We are adding some extra information in those, which should not make tests fail. Change-Id: I42cca596330252efeff5d51508f97ef1c566475b
This commit is contained in:
parent
e2815b516c
commit
04fc74c76a
|
@ -319,7 +319,7 @@ ParserTests.prototype.normalizeHTML = function (source) {
|
|||
// known-ok differences.
|
||||
ParserTests.prototype.normalizeOut = function ( out ) {
|
||||
// TODO: Do not strip newlines in pre and nowiki blocks!
|
||||
return out.replace(/[\r\n]| data-mw="[^">]*"/g, '')
|
||||
return out.replace(/[\r\n]| (data-mw|typeof|resource|rel|prefix|about|rev|datatype|inlist|property|vocab|content)="[^">]*"/g, '')
|
||||
.replace(/<!--.*?-->\n?/gm, '')
|
||||
.replace(/<\/?meta[^>]*>/g, '');
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue