name attribute problem

We’ve had a problem with users putting a space in the name attribute of an input tag, and that causes an error when they edit a page without loading the ephox editor. Here is the error message supplied to the end-user:

An exception occurred while processing the internal request handler call: com.percussion.error.PSException: org.w3c.dom.DOMException: INVALID_CHARACTER_ERR: An invalid or illegal XML character is specified.

I reported this issue to support(TAR#: MA-08-12-0087) and they suggested to not put spaces in the name attribute because it was invalid html.

However I would prefer either not showing an error to the user at all, or updating the error message to something our end-users would understand.

Here is a sample of the code causing this problem:


<input type="text" name="test test" />