WebArchives do not embed XSL stylesheets I had thought that this would get fixed when I fixed bug 15320, however it appears that XSLStyleSheets don't have any Obj-C DOM representation... preventing WebKit from having any way to get their href (at least that's my theory).
Actually, it looks like WebArchives don't actually save the original xml and xsl, they just save the processed source. it looks like they don't actually do that entirely correctly... they insert a non-self-closing <meta> tag (wrong!), but that's fixable.
Actually, it seems my testcase uses xsl to convert an xml file into html, and that confuses the webarchive.
Created attachment 16451 [details] patch with test case
Created attachment 16452 [details] support file for test
Created attachment 16453 [details] test case (modified to work online in bugzilla), save as a WebArchive to test
Hum... I guess my test case doesn't actually work as part of bugzilla. oh well.
The MIME type should be text/html, but it's application/xml.
In attached test case named (test case [modified..]), only Firefox Nightly 105 display just text "FAILED", all other browsers (Safari 15.6 and Chrome Canary 106) displayed the test case with following error message: ___ This XML file does not appear to have any style information associated with it. The document tree is shown below. <?xml-stylesheet type="text/xsl" href="http://bugs.webkit.org/attachment.cgi?id=16452&action=view" ?> <test>FAILED</test> ___ Just wanted to share updated test results. Thanks!
When the attached test case fails is saved as a webarchive, it fails load due to bogus meta element in the header.