Merge "Use blacklist instead of whitelist for storeHtmlAttributes of MWBlockImageNode."

This commit is contained in:
jenkins-bot 2013-06-07 23:09:17 +00:00 committed by Gerrit Code Review
commit 8a614ae395

View file

@ -26,7 +26,9 @@ ve.inheritClass( ve.dm.MWBlockImageNode, ve.dm.BranchNode );
ve.dm.MWBlockImageNode.static.name = 'mwBlockImage';
ve.dm.MWBlockImageNode.static.storeHtmlAttributes = [ 'data-parsoid' ];
ve.dm.MWBlockImageNode.static.storeHtmlAttributes = {
'blacklist': [ 'typeof', 'class', 'src', 'resource', 'width', 'height', 'href', 'rel' ]
};
ve.dm.MWBlockImageNode.static.handlesOwnChildren = true;