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

Surprisingly, it worked fine with HREF in mode browsers.
print-window-tiddler
Jeremy Ruston 2012-04-18 09:52:12 +02:00
rodzic 6a7f2473db
commit c91fa95843
3 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

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

Wyświetl plik

@ -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>

Wyświetl plik

@ -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>