Turns out this was because I was using an XMLHttpRequest for the parse data, and should have checked that the XMLHttpRequest was in a finished state before attempting to parse; eventually, it would parse correctly, but intermediate states would cause the parsing to occur on incomplete data.
↧