When an XML page is transformed via a stylesheet to (X)HTML, and the resulting HTML has an onload script in it's body tag, this script is not executed. An example can be found at http://astro.nickshanks.com/library/extrasolar.xml Pre-processed HTML output can be found at http://astro.nickshanks.com/library/extrasolar.en The two pages should look identical. The latter was produced by libxslt processing of the former.
I believe this has been fixed recently. Given that page has other issues (like the DTD issue) can you attach a simpler test case just so we can verify?
Test case: http://web.nickshanks.com/safari/xslt-js.xml (fails with 412) HTML Version: http://web.nickshanks.com/safari/xslt-js.html (passes with 412) XSL used: http://web.nickshanks.com/safari/xslt-js.xsl
Hmmm, I was wrong. This does not pass.
The bug I fixed recently is fixes the test case in layout tests: fast/events/xsl-onload.xhtml. I guess the test case attached here wasn't fixed by that change.
Turns out that this bug was a completely different one. I'm working on this so I'll reassign it to me.
Created attachment 3228 [details] Implement setting innerHTML for xhtml documents
Comment on attachment 3228 [details] Implement setting innerHTML for xhtml documents In the past Dave Hyatt has suggested that things like innerHTML should not be implemented for XML documents. I'd like to hear his take on this. Other than that, this looks good.
OK. For the record, Deer Park has this feature now and that's kinda why I implemented it.
Comment on attachment 3228 [details] Implement setting innerHTML for xhtml documents looks good r=me