1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-07-03 10:43:16 +00:00

Fixed problem with accidentally using HREF instead of SRC with the IMG tag

Surprisingly, it worked fine with HREF in mode browsers.
This commit is contained in:
Jeremy Ruston 2012-04-18 09:52:12 +02:00
parent 6a7f2473db
commit c91fa95843
3 changed files with 3 additions and 3 deletions

View File

@ -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
})];

View File

@ -1 +1 @@
<div data-tiddler-target='Fourth Tiddler' data-tiddler-template='Fourth Tiddler' class='tw-tiddler-frame'>A missing image <img href='Something.jpg'> and a $1 couple of &#xc7; &#199; &quot;HTML Entity&quot;</div>
<div data-tiddler-target='Fourth Tiddler' data-tiddler-template='Fourth Tiddler' class='tw-tiddler-frame'>A missing image <img src='Something.jpg'> and a $1 couple of &#xc7; &#199; &quot;HTML Entity&quot;</div>

View File

@ -1 +1 @@
<div data-tiddler-target='ThirdTiddler' data-tiddler-template='ThirdTiddler' class='tw-tiddler-frame'>An explicit link <a href='Fourth%20Tiddler' class='tw-tiddlylink tw-tiddlylink-internal tw-tiddlylink-resolves'>Fourth Tiddler</a> and <a href='Fourth%20Tiddler' class='tw-tiddlylink tw-tiddlylink-internal tw-tiddlylink-resolves'>a pretty link</a> and a transclusion <div data-tiddler-target='Fourth Tiddler' data-tiddler-template='Fourth Tiddler' class='tw-tiddler-frame'>A missing image <img href='Something.jpg'> and a Stringy couple of &#xc7; &#199; &quot;HTML Entity&quot;</div><br><br><img href='http://placehold.it/350x150'><br></div>
<div data-tiddler-target='ThirdTiddler' data-tiddler-template='ThirdTiddler' class='tw-tiddler-frame'>An explicit link <a href='Fourth%20Tiddler' class='tw-tiddlylink tw-tiddlylink-internal tw-tiddlylink-resolves'>Fourth Tiddler</a> and <a href='Fourth%20Tiddler' class='tw-tiddlylink tw-tiddlylink-internal tw-tiddlylink-resolves'>a pretty link</a> and a transclusion <div data-tiddler-target='Fourth Tiddler' data-tiddler-template='Fourth Tiddler' class='tw-tiddler-frame'>A missing image <img src='Something.jpg'> and a Stringy couple of &#xc7; &#199; &quot;HTML Entity&quot;</div><br><br><img src='http://placehold.it/350x150'><br></div>