Skip to content

Commit

Permalink
Fix upstream/#306
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-i authored and jhchen committed Nov 10, 2015
1 parent 846ffd8 commit f05e07f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/normalizer.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,10 @@ class Normalizer
node.removeAttribute(attribute)
)
# Chrome turns <b> into style in some cases
if (node.style.fontWeight == 'bold')
if (node.style.fontWeight == 'bold' or node.style.fontWeight > 500)
node.style.fontWeight = ''
dom(node).wrap(document.createElement('b'))
node = node.parentNode
this.whitelistStyles(node)
return this.whitelistTags(node)

Expand Down

0 comments on commit f05e07f

Please sign in to comment.