XSLTProcessor.transformToFragment crashes if the owner document is empty. var ownerDocument = document.implementation.createDocument("", null, null); processor.transformToFragment(xml, ownerDocument); Stack trace: 0 WebCore::XMLTokenizer::XMLTokenizer[in-charge](WebCore::DocumentFragment*, WebCore::Element*) + 540 1 WebCore::parseXMLDocumentFragment(WebCore::String const&, WebCore::DocumentFragment*, WebCore::Element*) + 48 2 WebCore::XSLTProcessor::transformToFragment(WebCore::Node*, WebCore::Document*) + 560 3 KJS::XSLTProcessorProtoFunc::callAsFunction(KJS::ExecState*, KJS::JSObject*, KJS::List const&) + 728
Created attachment 10050 [details] test case
Created attachment 10097 [details] proposed fix
Comment on attachment 10097 [details] proposed fix Looks great! r=me
Committed revision 15951.