doctype for capturing was missing spaces
document.write, etc is forbidden
Attributes on <html>, <head>, <body> in decor need to be merged.
This patch uses them to completely override the previous ones