Created attachment 215246 [details] HTML document (needs script.js in same folder) Documents loaded with the mime-type of "application/xhtml+xml" fail to defer JavaScript execution until after the DOM has been loaded. Appears to be a problem with all WebKit-derived that I tested. Firefox 24 and Internet Explorer 11 handle the attached test case correctly.
Created attachment 215247 [details] JavaScript to defer (needs index.xhtml)
I just encountered this in the Blink fork used by Chromium, and opened a bug over there: https://bugs.chromium.org/p/chromium/issues/detail?id=611136
Unsubscribing from this one going forward. XHTML is dead, as much as I wish it hadn't lost to the "tag soup" of HTML5. The issue got wontfix'd by Chrome. There's just no hope left for strict page syntax.