Skip to content

Commit

Permalink
add style override to A tag (#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
ikreymer authored Jul 4, 2024
1 parent 04ffd24 commit b9682d7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/wombat.js
Original file line number Diff line number Diff line change
Expand Up @@ -2323,6 +2323,7 @@ Wombat.prototype.rewriteElem = function(elem) {
break;
case 'A':
changed = this.rewriteAttr(elem, 'href') || changed;
changed = this.rewriteAttr(elem, 'style') || changed;
if (elem.hasAttribute('target')) {
var newTarget = this.rewriteAttrTarget(elem.target);
if (newTarget !== elem.target) {
Expand Down

0 comments on commit b9682d7

Please sign in to comment.