Additional fix for BZ#997681 to pick up invalid characters in the ID list (eg: colons, semi-colons, etc...)
More work on BZ#1019013 to update the validation to include custom entities.