Skip to content

Releases: cburgmer/rasterizeHTML.js

0.9.2

26 Aug 18:44
Compare
Choose a tag to compare

Bug fix

  • Viewport size now honours the zoom option (#64).
  • Margins of the rendered content now don't collapse with the outside host document (Chrome & Safari, #65).
  • Fix active & hover option in drawURL() throwing a TypeError in Firefox (#66).
  • Support window.matchMedia (#71).

Other changes:

  • The Git repository does not host the packaged sources anymore. The prefered way of installation is through npm install rasterizehtml and including node_modules/rasterizehtml/dist/rasterizeHTML.allinone.js.
  • Experimental clipping support: The rendered document can be clipped around a given element by passing clip: '.mySelector' as an option.
  • A workaround for browsers with flaky resource loading has been removed, as all up-to-date browsers now seem to correctly handle resources.
  • Integration tests have been stabilized to pass on Linux systems, too.

0.9.1

06 Jun 17:44
Compare
Choose a tag to compare

Bug fix

  • Inlining of resources was broken with the browserified build for Chrome & Safari. (#61)

0.9.0

23 Apr 21:06
Compare
Choose a tag to compare
  • A new option zoom allows the displayed content to be zoomed.
  • When executing JavaScript (executeJs set to true), drawing will now wait for pending XMLHttpRequests to finish.
  • An Invalid source error is now thrown if the input has invalid syntax. Before, this just resulted in the more general Error rendering page being thrown.
  • The npm package is now requirable via browserify. (Fixes #54)
  • The all-in-one bundle now doesn't pollute the global namespace with its dependencies. If you relied on them being pulled in through rasterizeHTML.allinone.js in the past, you will need to load those dependencies yourself. (Fixes #52)
  • The rasterizeHTML.js distributable now comes with a proper UMD header and does not pollute the namespace with internal modules (see #52). If you relied on specific internal code (the API documentation did try to discourage you from doing so), you have two options:
    • Check if one of the dependencies rasterizeHTML.js is using is what you are actually looking for.
    • Raise a ticket to discuss whether that functionality should be (re-)exposed.

0.8.0

17 Feb 21:06
Compare
Choose a tag to compare
  • New API: All methods now return a promise and results can be yielded like rasterizeHTML.drawURL().then(function (renderResult) { ... })
  • The old callback style is now deprecated in favour of the promises style.
  • If rendering fails completely, only the actual failing error is now reported.
  • Fix "!important" not being correctly transfered when inlining background images.
  • Fix same mime type being used for several alternate font face sources.

0.7.0

12 Dec 13:30
Compare
Choose a tag to compare
  • The resulting image now reflects the correct content size, i.e. it will be bigger than the defined viewport if content overflows.
  • New options to simulate a :hover and :active effect on elements by passing a selector to options hover and active. See examples/pseudoClasses.html.
  • Allow AJAX in the executed page to be based on the correct base URL.
  • Correctly render input element values changed through script manipulation.
  • Fix issue with script attributes being stripped on inlining.
  • Fix issue with CSS import paths not being based relatively to the referencing document's URL.
  • Fix issue with font face defintions being stripped of font-weight and font-style values.

0.6.0

25 Nov 13:12
Compare
Choose a tag to compare

New minor version with many fixes for improved stability

  • Fixes handling of relative base paths
  • Fixes rendering of non-UTF8 pages (#44)
  • Fixes issue with attributes missing from top-level element
  • Fixes issue with dashes in comments
  • Fixes issue with closing tags in script content
  • Fixes issue with quoting of special characters in element attributes
  • Fixes issue with invalid ASCII control characters
  • Changed dependencies

Bug fix

02 Nov 18:17
Compare
Choose a tag to compare
  • Updates dependency html2xhtml which fixes a quoting issue with special chars in Chrome & Safari.

0.5.0

30 Oct 21:27
Compare
Choose a tag to compare
  • Fixes issues with certain HTML in Chrome & Safari
  • Fixes an error when parsing CSS in Chrome (fixed upstream)
  • Optional caching of performance critical parts with an extended 'cache' option
  • Only loads scripts if JS in the page is going to be executed