Bug 123387 - Loading XHTML documents breaks defer on script tags
Summary: Loading XHTML documents breaks defer on script tags
Status: UNCONFIRMED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-26 06:37 PDT by Chris Rawnsley
Modified: 2024-02-13 13:16 PST (History)
2 users (show)

See Also:


Attachments
HTML document (needs script.js in same folder) (376 bytes, application/xhtml+xml)
2013-10-26 06:37 PDT, Chris Rawnsley
no flags Details
JavaScript to defer (needs index.xhtml) (69 bytes, application/x-javascript)
2013-10-26 06:38 PDT, Chris Rawnsley
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.