Actually, there is a standard that dictates XML declarations are allowed in XHTML; see: http://www.w3.org/TR/xhtml1/
"XHTML document authors are strongly encouraged to use XML declarations in all their documents" (I supposed one can argue the intent of the W3C r.e. this line and whether it would be applicable to injecting XHTML into another XHTML document via AJAX; my point is merely that what I'm doing should not be considered all that unusual.) Since Mozilla and Web Toolkit handle this elegantly, I chalk this up to an IE bug (thus the "argh"). I would be surprise if others have not encountered this, given a very common use case of AJAX is injecting XHTML into the DOM. Thus the post here. My initial reaction is to handle this situation by override Request.success, and if we're dealing with IE, strip any declarations. I can certainly do this for my situation, but figured it may be a value-add to the MooTools community, so I figured I'd foster some feedback :-) Off to override Request.success; let me know if anyone else has pros/ cons/alternative suggestions and if they would find such an extension useful. Eric
