Add test cases and fix isRepeaterOfEnclosure() can't detect radio attributes of input elements