<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>123387</bug_id>
          
          <creation_ts>2013-10-26 06:37:08 -0700</creation_ts>
          <short_desc>Loading XHTML documents breaks defer on script tags</short_desc>
          <delta_ts>2025-01-02 10:06:32 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>DOM</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>UNCONFIRMED</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=227469</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Chris Rawnsley">casrawnsley+bugs</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>karlcow</cc>
    
    <cc>ysuzuki</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>943879</commentid>
    <comment_count>0</comment_count>
      <attachid>215246</attachid>
    <who name="Chris Rawnsley">casrawnsley+bugs</who>
    <bug_when>2013-10-26 06:37:08 -0700</bug_when>
    <thetext>Created attachment 215246
HTML document (needs script.js in same folder)

Documents loaded with the mime-type of &quot;application/xhtml+xml&quot; 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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>943880</commentid>
    <comment_count>1</comment_count>
      <attachid>215247</attachid>
    <who name="Chris Rawnsley">casrawnsley+bugs</who>
    <bug_when>2013-10-26 06:38:08 -0700</bug_when>
    <thetext>Created attachment 215247
JavaScript to defer (needs index.xhtml)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1192030</commentid>
    <comment_count>2</comment_count>
    <who name="Anthony Ryan">anthonyryan1</who>
    <bug_when>2016-05-11 12:15:41 -0700</bug_when>
    <thetext>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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2013276</commentid>
    <comment_count>3</comment_count>
    <who name="Anthony Ryan">anthonyryan1</who>
    <bug_when>2024-02-13 13:16:33 -0800</bug_when>
    <thetext>Unsubscribing from this one going forward. XHTML is dead, as much as I wish it hadn&apos;t lost to the &quot;tag soup&quot; of HTML5.

The issue got wontfix&apos;d by Chrome. There&apos;s just no hope left for strict page syntax.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>215246</attachid>
            <date>2013-10-26 06:37:08 -0700</date>
            <delta_ts>2013-10-26 06:37:08 -0700</delta_ts>
            <desc>HTML document (needs script.js in same folder)</desc>
            <filename>index.xhtml</filename>
            <type>application/xhtml+xml</type>
            <size>376</size>
            <attacher name="Chris Rawnsley">casrawnsley+bugs</attacher>
            
              <data encoding="base64">PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCFET0NUWVBFIGh0bWw+Cjxo
dG1sIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hodG1sIj4KCjxoZWFkPgogIDx0aXRs
ZT5EZWZlciBidWc8L3RpdGxlPgogIDxzdHlsZT4KICAgICNkZWZlci1tZSB7CiAgICAgIGNvbG9y
OiB3aGl0ZTsKICAgICAgYmFja2dyb3VuZC1jb2xvcjogcmVkOwogICAgfQogIDwvc3R5bGU+CiAg
PHNjcmlwdCBkZWZlcj0iZGVmZXIiIHNyYz0ic2NyaXB0LmpzIj48L3NjcmlwdD4KPC9oZWFkPgoK
PGJvZHk+CiAgPHAgaWQ9ImRlZmVyLW1lIj5UaGlzIHdpbGwgZ28gZ3JlZW4gaWYgc3VjY2Vzc2Z1
bGx5IGRlZmVyZWQuPC9wPgo8L2JvZHk+Cgo8L2h0bWw+Cg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>215247</attachid>
            <date>2013-10-26 06:38:08 -0700</date>
            <delta_ts>2013-10-26 06:38:08 -0700</delta_ts>
            <desc>JavaScript to defer (needs index.xhtml)</desc>
            <filename>script.js</filename>
            <type>application/x-javascript</type>
            <size>69</size>
            <attacher name="Chris Rawnsley">casrawnsley+bugs</attacher>
            
              <data encoding="base64">ZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoJ2RlZmVyLW1lJykuc3R5bGUuYmFja2dyb3VuZENvbG9y
ID0gJ2dyZWVuJzsK
</data>

          </attachment>
      

    </bug>

</bugzilla>