Skip to content

Commit

Permalink
Remove inner html/text update for self-closing tags, fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrosanta committed Mar 8, 2018
1 parent 428f653 commit 4237a4b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion lib/index.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ class EPub
attrs = elem.attribs
that = @
if that.name in ["img", "br", "hr"]
$(that).text("")
if that.name is "img"
$(that).attr("alt", $(that).attr("alt") or "image-placeholder")

Expand Down
1 change: 0 additions & 1 deletion lib/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4237a4b

Please sign in to comment.