The following will work in all major browsers, even though it is 'illegal'.
This is a span with the ID of rule1 - accessed by #rule1
This is also a span with the ID of rule1 - accessed by #rule1
This is a span with the ID of rule2 - accessed by [id=rule2]
This is also a span with the ID of rule2 - accessed by [id=rule2]