<?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>17465</bug_id>
          
          <creation_ts>2008-02-20 22:18:39 -0800</creation_ts>
          <short_desc>REGRESSION: &lt;DIV&gt; tokenized into Div if still searching for DOCTYPE</short_desc>
          <delta_ts>2008-02-20 23:39:40 -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>Mac</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P1</priority>
          <bug_severity>Critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>mitz</reporter>
          <assigned_to>mitz</assigned_to>
          <cc>hyatt</cc>
    
    <cc>webkit</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>71351</commentid>
    <comment_count>0</comment_count>
    <who name="">mitz</who>
    <bug_when>2008-02-20 22:18:39 -0800</bug_when>
    <thetext>A comment at the beginning of a document causes WebKit to parse tags in some case-sensitive mode, so for example &lt;DIV&gt; is does not create an HTML DIV element. See attached test case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71352</commentid>
    <comment_count>1</comment_count>
      <attachid>19249</attachid>
    <who name="">mitz</who>
    <bug_when>2008-02-20 22:18:54 -0800</bug_when>
    <thetext>Created attachment 19249
Test case</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71353</commentid>
    <comment_count>2</comment_count>
    <who name="Robert Blaut">webkit</who>
    <bug_when>2008-02-20 22:25:51 -0800</bug_when>
    <thetext>Expected behavior of the test case is border around inside? If yes I cannot confirm the bug in Webkit r30377. DIV element is created in DOM.

http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!--%20comment%20--%3E%0A%3CDIV%20style%3D%22border%3A%201px%20solid%3B%22%3EInside%20%3C%2FDIV%3E%0Aoutside

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71354</commentid>
    <comment_count>3</comment_count>
    <who name="">mitz</who>
    <bug_when>2008-02-20 22:48:35 -0800</bug_when>
    <thetext>This is actually very specific, and is caused by the fact that DIV and DOCTYPE begin with the same letter. The lowercasing isn&apos;t in effect while searching for DOCTYPE so the D remains uppercase.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71359</commentid>
    <comment_count>4</comment_count>
    <who name="">mitz</who>
    <bug_when>2008-02-20 23:39:40 -0800</bug_when>
    <thetext>Fixed in &lt;http://trac.webkit.org/projects/webkit/changeset/30455&gt;.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>19249</attachid>
            <date>2008-02-20 22:18:54 -0800</date>
            <delta_ts>2008-02-20 22:18:54 -0800</delta_ts>
            <desc>Test case</desc>
            <filename>DOCTYPE regression.html</filename>
            <type>text/html</type>
            <size>71</size>
            <attacher>mitz</attacher>
            
              <data encoding="base64">PCEtLSBjb21tZW50IC0tPgo8RElWIHN0eWxlPSJib3JkZXI6IDFweCBzb2xpZDsiPkluc2lkZSA8
L0RJVj4Kb3V0c2lkZQo=
</data>

          </attachment>
      

    </bug>

</bugzilla>