MW*ImageNode's can't take link annotations

Because there's no sane wikitext to handle that case, and Parsoid
will just output garbage.

Bug: 53151
Change-Id: I9e065aa46d88f6bed9c47127b3e002ec2e1fec5a
This commit is contained in:
Ed Sanders 2013-09-19 19:03:04 +01:00
parent f001d306ad
commit 2d0bf61c78
2 changed files with 4 additions and 0 deletions

View file

@ -43,6 +43,8 @@ ve.dm.MWBlockImageNode.static.childNodeTypes = [ 'mwImageCaption' ];
ve.dm.MWBlockImageNode.static.matchTagNames = [ 'figure' ];
ve.dm.MWBlockImageNode.static.blacklistedAnnotationTypes = [ 'link' ];
ve.dm.MWBlockImageNode.static.getMatchRdfaTypes = function () {
return Object.keys( this.rdfaToType );
};

View file

@ -39,6 +39,8 @@ ve.dm.MWInlineImageNode.static.storeHtmlAttributes = {
ve.dm.MWInlineImageNode.static.matchTagNames = [ 'span' ];
ve.dm.MWInlineImageNode.static.blacklistedAnnotationTypes = [ 'link' ];
ve.dm.MWInlineImageNode.static.getMatchRdfaTypes = function () {
return Object.keys( this.rdfaToType );
};