Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Keep display:none elements with -emogrifier-keep #737

Merged
merged 2 commits into from
Sep 29, 2019

Conversation

JakeQZ
Copy link
Contributor

@JakeQZ JakeQZ commented Sep 28, 2019

The additional part of the XPath expression was obtained by running
:not(.-emogrifier-keep) through CssSelectorConverter::toXPath(). It tests
for attribute presence before checking the value, presumably as an omptimization
to avoid unnecessary processing of a null/empty value. On the presumed basis
that this is a good idea, a similar check has been added for the style
attribute.

Resolves #252.

The additional part of the XPath expression was obtained by running
`:not(.-emogrifier-keep)` through `CssSelectorConverter::toXPath()`.  It tests
for attribute presence before checking the value, presumably as an omptimization
to avoid unnecessary processing of a null/empty value.  On the presumed basis
that this is a good idea, a similar check has been added for the `style`
attribute.

Resolves #252.
@JakeQZ JakeQZ added this to the 3.0.0 milestone Sep 28, 2019
@JakeQZ JakeQZ self-assigned this Sep 28, 2019
README.md Show resolved Hide resolved
@oliverklee oliverklee merged commit 8dfeb5f into master Sep 29, 2019
@oliverklee oliverklee deleted the feature/emogrifier-keep branch September 29, 2019 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Invisible node removal: preheaders and responsive design
2 participants