Added is_semantic test to the default serialisation in HTML