chrisglass/xhtml2pdf — pull request #110 by abravetti (2013-05-24 15:42:26+00:00)
Title: Fix a sneaky bug in the css cache

When you call pisaParser the first time it's okay but on subsequent calls the pdf is pseudo-randomly corrupted.

1. We need node.tagName in getCSSAttrCacheKey.

2. CSSAttrCache in pisaParser() should be global else initialization has no effect.