assaf/zombie — pull request #575 by FrozenCow (2013-09-08 13:55:14+00:00)
Title: Load images as resources when 'img' feature enabled

This patch will load the actual image content of 'img'-tags into resources, but only if the 'img'-feature is enabled.

document.coffee: Adds feature 'img'
jsdom_patches.coffee: Adds jsdom patch to allow actually loading img tags (instead of only triggering the 'load' event).
resources.coffee: Adds exception for decoding response body to string for images: those will stay as buffers, like octet-streams.