diff --git a/premailer/premailer.py b/premailer/premailer.py index 76736b3..fe1852f 100644 --- a/premailer/premailer.py +++ b/premailer/premailer.py @@ -441,6 +441,8 @@ def transform(self, pretty_print=True, **kwargs): for item in page.xpath("//@%s" % attr): parent = item.getparent() url = parent.attrib[attr] + if parent.attrib.pop(self.attribute_name, None) == 'ignore': + continue if ( attr == 'href' and self.preserve_internal_links and url.startswith('#')