diff --git a/src/core/render/compiler/image.js b/src/core/render/compiler/image.js index 3cc48c360..982e5e55e 100644 --- a/src/core/render/compiler/image.js +++ b/src/core/render/compiler/image.js @@ -22,7 +22,7 @@ export const imageCompiler = ({ renderer, contentBase, router }) => if (height) { attrs.push(`width="${width}" height="${height}"`); } else { - attrs.push(`width="${width}" height="${width}"`); + attrs.push(`width="${width}"`); } } diff --git a/test/unit/render.test.js b/test/unit/render.test.js index 67d3bcf09..9a7163024 100644 --- a/test/unit/render.test.js +++ b/test/unit/render.test.js @@ -168,7 +168,7 @@ text expectSameDom( output, - '

alt text

' + '

alt text

' ); }); });