Thanks to Alain Takoudjou <alain.takoudjou@nexedi.com> for his original work on this topic. Conflicts: test/tests.html