From c91fa958436f4204f2f6b1abf5e7bc2a041f67d4 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Wed, 18 Apr 2012 09:52:12 +0200 Subject: [PATCH] Fixed problem with accidentally using HREF instead of SRC with the IMG tag Surprisingly, it worked fine with HREF in mode browsers. --- js/macros/image.js | 2 +- test/wikitests/Fourth Tiddler.html | 2 +- test/wikitests/ThirdTiddler.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/js/macros/image.js b/js/macros/image.js index 972d0e4c1..931488eb7 100644 --- a/js/macros/image.js +++ b/js/macros/image.js @@ -33,7 +33,7 @@ exports.macro = { } } else { return [Renderer.ElementNode("img",{ - href: this.params.src, + src: this.params.src, alt: this.params.text, title: this.params.text })]; diff --git a/test/wikitests/Fourth Tiddler.html b/test/wikitests/Fourth Tiddler.html index 011348ed5..b9fa3b19e 100644 --- a/test/wikitests/Fourth Tiddler.html +++ b/test/wikitests/Fourth Tiddler.html @@ -1 +1 @@ -
A missing image and a $1 couple of Ç Ç "HTML Entity"
\ No newline at end of file +
A missing image and a $1 couple of Ç Ç "HTML Entity"
\ No newline at end of file diff --git a/test/wikitests/ThirdTiddler.html b/test/wikitests/ThirdTiddler.html index 9f8ebb13a..5227a2de7 100644 --- a/test/wikitests/ThirdTiddler.html +++ b/test/wikitests/ThirdTiddler.html @@ -1 +1 @@ -
An explicit link Fourth Tiddler and a pretty link and a transclusion
A missing image and a Stringy couple of Ç Ç "HTML Entity"



\ No newline at end of file +
An explicit link Fourth Tiddler and a pretty link and a transclusion
A missing image and a Stringy couple of Ç Ç "HTML Entity"



\ No newline at end of file