<?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>159489</bug_id>
          
          <creation_ts>2016-07-06 13:51:39 -0700</creation_ts>
          <short_desc>iframe srcdoc with quirky doctype should be no-quirks mode</short_desc>
          <delta_ts>2022-08-11 02:15:40 -0700</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>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Simon Pieters (:zcorpan)">zcorpan</reporter>
          <assigned_to name="Ryosuke Niwa">rniwa</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <cc>cdumez</cc>
    
    <cc>rniwa</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1208376</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Pieters (:zcorpan)">zcorpan</who>
    <bug_when>2016-07-06 13:51:39 -0700</bug_when>
    <thetext>http://software.hixie.ch/utilities/js/live-dom-viewer/saved/4303

&lt;iframe srcdoc=&quot;&lt;!doctype x&gt;&quot;&gt;

The srcdoc document should always be in no-quirks mode, regardless of the doctype. In WebKit if there&apos;s a quirky doctype it triggers quirks mode.

https://html.spec.whatwg.org/multipage/syntax.html#the-initial-insertion-mode</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1889845</commentid>
    <comment_count>1</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-08-08 16:54:18 -0700</bug_when>
    <thetext>I am able to reproduce this bug in Safari 15.6 on macOS 12.5 using attached test case, where it shows &quot;BackCompat&quot; mode for Safari in logs, while CSS1Compat mode for Firefox Nightly 105 and Chrome Canary 106. Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1889846</commentid>
    <comment_count>2</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-08-08 16:55:43 -0700</bug_when>
    <thetext>*** Safari 15.6 on macOS 12.5 ***

log: BackCompat
rendering mode: CSS1Compat
document has no title

*** Firefox Nightly 105 ***

log: CSS1Compat
rendering mode: CSS1Compat
document has no title

*** Chrome Canary 106 ***

log: CSS1Compat
rendering mode: CSS1Compat
document has no title</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1890358</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-08-10 11:05:54 -0700</bug_when>
    <thetext>&lt;rdar://problem/98460686&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1890369</commentid>
    <comment_count>4</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2022-08-10 12:15:43 -0700</bug_when>
    <thetext>Oh, we have a check for this in HTMLConstructionSite::setDefaultCompatibilityMode() but we&apos;re missing one in HTMLConstructionSite::setCompatibilityModeFromDoctype</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1890378</commentid>
    <comment_count>5</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2022-08-10 13:10:20 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/3199</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1890520</commentid>
    <comment_count>6</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-08-11 02:15:38 -0700</bug_when>
    <thetext>Committed 253326@main (4401d4e5b5d9): &lt;https://commits.webkit.org/253326@main&gt;

Reviewed commits have been landed. Closing PR #3199 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>