Index: /FCKeditor/branches/features/anchors/editor/dialog/fck_anchor.html
===================================================================
--- /FCKeditor/branches/features/anchors/editor/dialog/fck_anchor.html	(revision 30)
+++ /FCKeditor/branches/features/anchors/editor/dialog/fck_anchor.html	(revision 31)
@@ -60,4 +60,8 @@
 {
 	var sNewName = GetE('txtName').value ;
+
+	// Remove any illegal character in a name attribute:
+	// A name should start with a letter, but the validator passes anyway.
+	sNewName = sNewName.replace( /[^\w-_\.:]/g, '_' ) ;
 
 	if ( sNewName.length == 0 )
