Would be useful for fuzzing.
Created attachment 566600 [details] [diff] [review] patch Do it in a simple way. Once we need to be able to force different doc types, we can change aSVGDocument parameter to an enum.
This should really be fixed by fixing 512688.
This is orthogonal to bug 512688.
Since http://mxr.mozilla.org/mozilla-central/source/content/base/public/nsIDOMParser.idl#80 lists the supported content types, it should probably be updated too. dev-doc-needed for: https://developer.mozilla.org/en/DOMParser
I've updated (and created that §) https://developer.mozilla.org/en/DOM/DOMParser#Parsing_a_SVG_document It would need another update when bug 512688 will be fixed (I've added dev-doc-needed to that bug).