Why not? Plenty of people have no reason to hide their identity - they talk to journalists giving their real names and post their accounts of what happened and photos on their blogs. If someone had something to hide then obviously they wouldn't identify themselves, but there are a vast number of people who post up photos from demos and protests on their flickr accounts or on their blogs.
It might be more useful to list the circumstances where your photos might get you in trouble, to illustrate the point you are making.
well two reasons one is obviously that they can easiley identify you, which may make it harder for you to get shots next time as you may turn up on a list somewhere which then means if they decide to prosicute under an outirght abuse of the anti terrorism laws, which even though in all likelihood would fail in court would and does tied you up and "give" reason to confiscate camera's etc.
the other is that they may simply phone up the host and say take it down all of it which will include all your other photos...
other things don't assume you are protected behind the lens. if at all possible have a 'wingman' so that you aren't caught out.
if possible set your camera to burst mode which shoots a series of shots in quick sucession. often when something kicks off it'll be the chain of events which is important to document one or two shots of someone being attacked by police or other forces is all very news week but a sucession of photos showing an attack is evidence of an assult.
if at all possible get acredditation, news card, press card, someones local rag to say you are freelace for them through to you grans knitting circles quarterly newsletter. it won't help when being phyiscally assualted however you can use it to prevent loss of equipment cards etc by saying you have acredditation.
if at all possilbe join the NUJ or local photographic union.
wear protective head gear, frontline shooting will often involved you getting klonked on the head regardless of intention on either site as when you are chimping behind a camera your head will usually be below others head height in sudden movements of people regardless of whether it's protestors or police your head will get knocked about.
if you are using slr type kit over compacts or mobile then consider investing in some camera armour. rubberised protective shell for your kit which will provide you with an extra level of protection (but not infailable they will kill your camera if they can).
Learn the law verbatium. what can you film where can you film etc and have the number of someone you can call in the event of arrest.
work out what you are there to do are you on a demo taking photos taking photos of a demo or recording images for use as possible evidence.
place yourself in the demo according to which of those you are intending to do.
Get camera insurance cos it fell off the coffee table at home unless of course you're face has been splashed across the tv and net
when you arrive at a slow or slowing part of the demo take some shots of your surroudings which are in the general direction of possible confrontation points and keep these as the begining shots of the card. this helps if you are asked to show people your shots and you think they may ask you to delete it, when asked scroll forwards on your camera to the first of these images which is in that general direction. show them this with nothing in it which is incriminating.
If your camera has a setting disable review/preview on the screen again if someone asks press the review button whilst telling them it's broken and show them it's broken.
---------
Getting images out of places.
memory cards are more important than kit. if they are looking like they are going to take the camera take the memory card out this is also where a 'wingman' can be useful hand the card to them and get them to scarper into the crowd.
if you can afford it wifi transmitter to a hard drive elsewhere (could be on your 'wingman')
there are ways to bury photos in ipods and disablling laptops with protected hidden files partition hard drives etc which can protect your images.