The attributes I want to add are not for display purposes. An example would be an attribute named "helpmsg" which would be set to a value that is looked up in a javascript array to show context-sensitive help. I can create a map in javascript that will have the same effect, but it would be cleaner if there were an attribute on the element.Thanks for the info on the MIME type, I hadn't come across that yet.