internetarchive/wayback — pull request #41 by kngenie (2014-10-13 19:22:17+00:00)
Title: Allow XML declaration to appear before head-insert

XML declaration triggers head-insert, which results in XML parse error while replaying XHTML pages. FastArchivalUrlReplayParseEventHandler must allow preamble and PIs appear before the head-insert.
Fixes ARI-4010.