From 04fc74c76a265d1b75a2ded0025d982c5946e1aa Mon Sep 17 00:00:00 2001 From: Gabriel Wicke Date: Thu, 17 May 2012 17:03:44 +0200 Subject: [PATCH] Strip RDFa attributes in parserTests We are adding some extra information in those, which should not make tests fail. Change-Id: I42cca596330252efeff5d51508f97ef1c566475b --- tests/parser/parserTests.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/parser/parserTests.js b/tests/parser/parserTests.js index 34564db204..3895dd18ed 100644 --- a/tests/parser/parserTests.js +++ b/tests/parser/parserTests.js @@ -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, ''); };