Bug 123387

Summary: Loading XHTML documents breaks defer on script tags
Product: WebKit Reporter: Chris Rawnsley <casrawnsley+bugs>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: UNCONFIRMED ---    
Severity: Normal CC: ahmad.saleem792, ysuzuki
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
HTML document (needs script.js in same folder)
none
JavaScript to defer (needs index.xhtml) none

Description Chris Rawnsley 2013-10-26 06:37:08 PDT
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.
Comment 1 Chris Rawnsley 2013-10-26 06:38:08 PDT
Created attachment 215247 [details]
JavaScript to defer (needs index.xhtml)
Comment 2 Anthony Ryan 2016-05-11 12:15:41 PDT
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
Comment 3 Anthony Ryan 2024-02-13 13:16:33 PST
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.