Releases: cburgmer/rasterizeHTML.js
Releases · cburgmer/rasterizeHTML.js
0.9.2
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 includingnode_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
0.9.0
- 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
- 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
- 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 optionshover
andactive
. Seeexamples/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
andfont-style
values.
0.6.0
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