@oliverklee oliverklee released this Dec 10, 2018

Assets 2

Changed

  • Add a test that a missing document type gets added
    (#641)

Fixed

  • Keep the style element the head
    (#642)

@oliverklee oliverklee released this Dec 10, 2018 · 192 commits to master since this release

Assets 2

Fixed

  • PHP 7.3 support
    (#643)
    • Allow PHP 7.3 in composer.json
    • Test in Travis for PHP 7.3
  • Escape hyphens in regular expressions
    (#599)

Removed

  • Drop the @version PHPDoc annotations
    (#644)

@oliverklee oliverklee released this Dec 8, 2018 · 3 commits to master since this release

Assets 2

Added

  • PHP 7.3 support
    (#638)
    • Allow PHP 7.3 in composer.json
    • Test in Travis for PHP 7.3
  • Add a renderBodyContent() method
    (#633)
  • Add a getDomDocument() method
    (#630)
  • Add a Composer script for PHP CS Fixer
    (#607)
  • Copy matching rules with dynamic pseudo-classes or pseudo-elements in
    selectors to the style element
    (#280,
    #562,
    #567)
  • Add a CssToAttributeConverter
    (#546)
  • Expose the DOMDocument in AbstractHtmlProcessor
    (#520)
  • Add an HtmlNormalizer class
    (#513,
    #516)
  • Add a CssInliner class
    (#514,
    #522)
  • Composer scripts for the various CI build steps
  • Validate the composer.json on Travis
    (#476)

Changed

  • Mark the work-in-progress classes as @internal
    (#640)
  • Remove the unprocessable tags from the DOM, not from the raw HTML
    (#627)
  • Reject empty HTML in setHtml()
    (#622)
  • Stop passing the DOM document around
    (#618)
  • Improve performance by using explicit namespaces for PHP functions
    (#573,
    #576)
  • Add type hint checking to the code sniffs
    (#566)
  • Check the code with PHPMD
    (#561)
  • Add the cyclomatic complexity to the checked code sniffs
    (#558)
  • Use the Symfony CSS selector component
    (#540)

Deprecated

  • Support for PHP 5.5 will be removed in Emogrifier 3.0.
  • Support for PHP 5.6 will be removed in Emogrifier 4.0.
  • The removal of invisible nodes will be removed in Emogrifier 3.0.
    (#473)
  • Converting CSS styles to (non-CSS) HTML attributes will be removed
    in Emogrifier 3.0. Please use the new CssToAttributeConverter instead.
    (#474)
  • Emogrifier 3.x.y will be the last release that supports usage without
    Composer (i.e., you can still require the class file).
    Starting with version 4.0, Emogrifier will only work with Composer.
  • The Emogrifier class will be superseded by CssInliner class in
    Emogrifier 3.0. For this, the Emogrifier class will be deprecated for
    version 3.0 and removed for version 4.0.

Removed

  • Drop the @version PHPDoc annotations
    (#637)
  • Drop the destructors
    (#619)

Fixed

  • Add required XML PHP extension to composer.json
    (#614)
  • Add required DOM PHP extension to composer.json
    (#595)
  • Escape hyphens in regular expressions
    (#588)
  • Fix Travis for PHP 5.x
    (#589)
  • Allow CSS between empty @media rule and another @media rule
    (#534)
  • Allow additional whitespace in media-query-list of disallowed @media rules
    (#532)
  • Allow multiple minified @import rules in the CSS without error (note:
    @imports are currently ignored,
    #527)
  • Style property ordering when multiple mixed individual and shorthand
    properties apply (#511,
    #508)
  • Calculation of selector precedence for selectors involving pseudo-classes
    and/or attributes (#502)
  • Allow @charset in the CSS without error (note: its value is currently
    ignored, #507)
  • Allow attribute selectors in descendants
    (#506,
    #381)
  • Allow adjacent sibling CSS selector combinator in minified CSS
    (#505)
  • Allow CSS property values containing newlines
    (#504)

@oliverklee oliverklee released this Jun 26, 2018 · 192 commits to master since this release

Assets 2

Added

  • Mark as compatible with PHP 7.2.x
    (#582)

Deprecated

  • Support for PHP 5.5 will be removed in Emogrifier 3.0.
  • Support for PHP 5.4 will be removed in Emogrifier 2.0.

@oliverklee oliverklee released this Jan 5, 2018 · 127 commits to master since this release

Assets 2

Added

  • Support for CSS :not() selector (#431)
  • Automatically remove !important annotations from final inline style declarations (#420)
  • Automatically move <style> block from <head> to <body> (#396)
  • PHP 7.2 support (#398)
  • Debug mode. Throw debug exceptions only if debug is active. (#392)

Changed

  • Test with latest and oldest dependencies on Travis (#463)
  • Always enable the debug mode in the tests (#448)
  • Optimize the string operations (#430)

Deprecated

  • Support for PHP 5.5 will be removed in Emogrifier 3.0.
  • Support for PHP 5.6 will be removed in Emogrifier 4.0.

Removed

  • Drop support for PHP 5.4 (#422)
  • Drop support for HHVM (#386)

Fixed

  • Handle invalid/unrecognized selectors in media query blocks (#442)
  • Throw (the correct) exception for invalid excluded selectors (#437)
  • emogrifyBody must not encode umlaut entities (#414)
  • Fix mapped HTML attribute values (#405)
  • Make sure the HTML always has a BODY element (#410)
  • Make inline style priority higher than css block priority (#404)
  • Fix media regex parsing (#402)
  • Silence purposefully ignored PHP Warnings (#400)

@oliverklee oliverklee released this Mar 2, 2017 · 192 commits to master since this release

Assets 2

Added

  • Handling invalid xPath expression warnings
    (#361)

Deprecated

  • Support for PHP 5.5 will be removed in Emogrifier 3.0.
  • Support for PHP 5.4 will be removed in Emogrifier 2.0.

Fixed

  • Allow colon (:) and semi-colon (;) when using the *= selector
    (#371)
  • Ignore "auto" width and height
    (#365)

@oliverklee oliverklee released this Sep 18, 2016 · 205 commits to master since this release

Assets 2

Added

  • Add support for PHP 7.1
    (#342)
  • Support the attr|=value selector
    (#337)
  • Support the attr*=value selector
    (#330)
  • Support the attr$=value selector
    (#329)
  • Support the attr^=value selector
    (#324)
  • Support the attr~=value selector
    (#323)
  • Add CSS to HTML attribute mapper
    (#288)

Changed

  • Remove composer dependency from PHP mbstring extension
    (Actual code dependency were removed a lot of time ago)
    (#295)

Deprecated

  • Support for PHP 5.5 will be removed in Emogrifier 3.0.
  • Support for PHP 5.4 will be removed in Emogrifier 2.0.

Fixed

  • Ignore value with words more than one in the attribute selector
    (#327)
  • Ignore spaces around the > in the direct child selector
    (#322)
  • Ignore empty media queries
    (#307)
    (#237)
  • Ignore pseudo-class when combined with pseudo-element
    (#308)
  • First-child and last-child selectors are broken
    (#293)
  • Second !important rule needs to overwrite the first one
    (#292)
Feb 4, 2016
This is the last version that still supports PHP 5.3.

@oliverklee oliverklee released this Oct 15, 2015 · 277 commits to master since this release

Assets 2
Merge pull request #266 from jjriv/task/release-1.0.0

[TASK] Prepare for the 1.0.0 release

@oliverklee oliverklee released this May 18, 2015 · 373 commits to master since this release

Assets 2
  • some README update
  • added two new options disableInlineStylesParsing and disableStyleBlocksParsing