Don't render href as src in MWBlockImageNode

<a src="..."> isn't a thing

Change-Id: Ia192331b88f17480f4285697e024bda25078968b
This commit is contained in:
Roan Kattouw 2013-10-21 16:35:27 +02:00 committed by Esanders
parent 608b8d378d
commit ec008a6464

View file

@ -37,7 +37,7 @@ ve.ce.MWBlockImageNode = function VeCeMWBlockImageNode( model, config ) {
this.$a = this.$$( '<a>' )
.addClass( 'image' )
.attr( 'src', this.model.getAttribute( 'href' ) );
.attr( 'href', this.model.getAttribute( 'href' ) );
this.$image = this.$$( '<img>' )
.attr( 'src', this.model.getAttribute( 'src' ) )