Closed walnutist closed 10 years ago
Only fetch the value of href attribute if the src attribute of img tag is undefined. Otherwise, any customized dialect returning img tag would fail if the processing is done thru toHTML(toHTMLTree(text, dialect)).
href
src
img
undefined
Please remove this pull request due to a stupid commit messed up everything
Only fetch the value of
href
attribute if thesrc
attribute ofimg
tag isundefined
. Otherwise, any customized dialect returning img tag would fail if the processing is done thru toHTML(toHTMLTree(text, dialect)).