<?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>4560</bug_id>
          
          <creation_ts>2005-08-21 12:38:57 -0700</creation_ts>
          <short_desc>Markup in &lt;title&gt; prevents decoder from looking for a charset</short_desc>
          <delta_ts>2005-09-01 09:13:46 -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>Layout and Rendering</component>
          <version>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <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>1</everconfirmed>
          <reporter name="Alexey Proskuryakov">ap</reporter>
          <assigned_to name="Darin Adler">darin</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>17052</commentid>
    <comment_count>0</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2005-08-21 12:38:57 -0700</bug_when>
    <thetext>Currently, Decoder::decode() stops looking for a charset definition as soon as it sees a tag forbidden in 
&lt;title&gt;. However, it sometimes happens that HTML markup gets into &lt;title&gt;. Other parts of WebKit 
handle tags in &lt;title&gt; correctly, so it&apos;s only Decoder that doesn&apos;t like this.

Firefox handles such pages just fine.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17053</commentid>
    <comment_count>1</comment_count>
      <attachid>3493</attachid>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2005-08-21 12:39:24 -0700</bug_when>
    <thetext>Created attachment 3493
Test case</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17054</commentid>
    <comment_count>2</comment_count>
      <attachid>3494</attachid>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2005-08-21 12:44:04 -0700</bug_when>
    <thetext>Created attachment 3494
Proposed patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17057</commentid>
    <comment_count>3</comment_count>
      <attachid>3494</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2005-08-21 15:20:52 -0700</bug_when>
    <thetext>Comment on attachment 3494
Proposed patch

I would call the variable just &quot;inTitle&quot; rather than &quot;areInTitle&quot;, but
otherwise looks good. r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17087</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2005-08-21 21:43:27 -0700</bug_when>
    <thetext>The reason why I didn&apos;t call it &quot;inTitle&quot; is that &quot;in&quot;, &quot;out&quot; and &quot;io&quot; are prefixes widely used in Mac OS APIs 
to distinguish input and output parameters.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18020</commentid>
    <comment_count>5</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2005-08-31 01:09:56 -0700</bug_when>
    <thetext>Understood, but I don&apos;t think that convention is relevant in a large cross-platform code base that never 
uses that convention at all.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18022</commentid>
    <comment_count>6</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2005-08-31 01:16:51 -0700</bug_when>
    <thetext>Maybe withinTitle would be best.

(Sorry I didn&apos;t land this earlier. It was marked UNCONFIRMED so it was not showing up in my query.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18023</commentid>
    <comment_count>7</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2005-08-31 01:19:59 -0700</bug_when>
    <thetext>Sure, I really have no problem with most coding conventions :) And withinTitle looks like the best variant.

Would you like me to update the patch?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18117</commentid>
    <comment_count>8</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2005-08-31 10:25:13 -0700</bug_when>
    <thetext>It&apos;s would be fine, but I can also just update the name when landing the patch.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>3493</attachid>
            <date>2005-08-21 12:39:24 -0700</date>
            <delta_ts>2005-08-21 12:39:24 -0700</delta_ts>
            <desc>Test case</desc>
            <filename>tagintitle.html</filename>
            <type>text/html</type>
            <size>494</size>
            <attacher name="Alexey Proskuryakov">ap</attacher>
            
              <data encoding="base64">PGh0bWw+CiA8aGVhZD4KIDx0aXRsZT703MfJIDxiPjxmb250IGNvbG9yPXJlZD5bUl08L2ZvbnQ+
PC9iPiDXICZsdDt0aXRsZSZndDs8L3RpdGxlPgogPGxpbmsgcmVsPSJzaG9ydGN1dCBpY29uIiBo
cmVmPS9mYXZpY29uLmljbyB0eXBlPWltYWdlL3gtaWNvbj4KIDxtZXRhIGh0dHAtZXF1aXY9IkNv
bnRlbnQtVHlwZSIgY29udGVudD0idGV4dC9odG1sOyBjaGFyc2V0PUtPSTgtUiI+CiA8L2hlYWQ+
Cgo8Ym9keT4KICA8cD5UaGlzIHRlc3QgY2hlY2tzIHRoYXQgV2ViS2l0IGRvZXNuJ3Qgc3RvcCBs
b29raW5nIGZvciBhIGNoYXJzZXQgZGVmaW5lZCBpbiBhbiBIVFRQLUVRVUlWIG1ldGEgd2hlbiBp
dCBlbmNvdW50ZXJzIGEgdGFnIHdpdGhpbiAmbHQ7dGl0bGUmZ3Q7LjwvcD4KICA8cD5UaGUgZmly
c3QgbGV0dGVyIHNob3VsZCBsb29rIGxpa2UgYSBMYXRpbiAiSyIgaGVyZTo8L3A+CiAgPHA+CiAg
68HLwdEgx8HEz9PU2CEKICA8L3A+CjwvYm9keT4KPC9odG1sPgo=
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>3494</attachid>
            <date>2005-08-21 12:44:04 -0700</date>
            <delta_ts>2005-08-21 15:20:52 -0700</delta_ts>
            <desc>Proposed patch</desc>
            <filename>tagsintitle.diff</filename>
            <type>text/plain</type>
            <size>1811</size>
            <attacher name="Alexey Proskuryakov">ap</attacher>
            
              <data encoding="base64">SW5kZXg6IGRlY29kZXIuY3BwCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KUkNTIGZpbGU6IC9jdnMvcm9vdC9XZWJDb3Jl
L2todG1sL21pc2MvZGVjb2Rlci5jcHAsdgpyZXRyaWV2aW5nIHJldmlzaW9uIDEuNDAKZGlmZiAt
cCAtdSAtcjEuNDAgZGVjb2Rlci5jcHAKLS0tIGRlY29kZXIuY3BwCTE0IEF1ZyAyMDA1IDA4OjQ3
OjEzIC0wMDAwCTEuNDAKKysrIGRlY29kZXIuY3BwCTIxIEF1ZyAyMDA1IDE5OjQzOjQ3IC0wMDAw
CkBAIC00ODMsNiArNDgzLDExIEBAIFFTdHJpbmcgRGVjb2Rlcjo6ZGVjb2RlKGNvbnN0IGNoYXIg
KmRhdGEKICAgICAgICAgICAgIC8vIGlzIHNlZW4sIHJhdGhlciB3aGVuIDwvaGVhZD4gaXMgc2Vl
biwgYmVjYXVzZSB0aGF0IG1vcmUgY2xvc2VseQogICAgICAgICAgICAgLy8gbWF0Y2hlcyBiZWhh
dmlvciBpbiBvdGhlciBicm93c2VyczsgbW9yZSBkZXRhaWxzIGluCiAgICAgICAgICAgICAvLyA8
aHR0cDovL2J1Z3ppbGxhLm9wZW5kYXJ3aW4ub3JnL3Nob3dfYnVnLmNnaT9pZD0zNTkwPi4KKyAg
ICAgICAgICAgIAorICAgICAgICAgICAgLy8gQWRkaXRpb25hbGx5LCB3ZSBwZXJtaXQgdGFncyBp
biA8dGl0bGU+OyBzZWUKKyAgICAgICAgICAgIC8vIDxodHRwOi8vYnVnemlsbGEub3BlbmRhcndp
bi5vcmcvc2hvd19idWcuY2dpP2lkPTQ1NjA+LgorICAgICAgICAgICAgCisgICAgICAgICAgICBi
b29sIGFyZUluVGl0bGUgPSBmYWxzZTsKIAogI2lmIEFQUExFX0NIQU5HRVMKICAgICAgICAgICAg
IGNvbnN0IGNoYXIgKnB0ciA9IGJ1ZmZlci5sYXRpbjEoKTsKQEAgLTUzNSw2ICs1NDAsMTAgQEAg
UVN0cmluZyBEZWNvZGVyOjpkZWNvZGUoY29uc3QgY2hhciAqZGF0YQogICAgICAgICAgICAgICAg
ICAgICB9CiAJCSAgICB0bXBbbGVuXSA9IDA7CiAgICAgICAgICAgICAgICAgICAgIEF0b21pY1N0
cmluZyB0YWcodG1wKTsKKyAgICAgICAgICAgICAgICAgICAgCisgICAgICAgICAgICAgICAgICAg
IGlmICh0YWcgPT0gdGl0bGVUYWcpCisgICAgICAgICAgICAgICAgICAgICAgICBhcmVJblRpdGxl
ID0gIWVuZDsKKyAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgIGlmICgh
ZW5kICYmIHRhZyA9PSBtZXRhVGFnKSB7CiAgICAgICAgICAgICAgICAgICAgICAgICAvLyBmb3Vu
ZCBhIG1ldGEgdGFnLi4uCiAgICAgICAgICAgICAgICAgICAgICAgICAvL3B0ciArPSA1OwpAQCAt
NTc3LDcgKzU4Niw3IEBAIFFTdHJpbmcgRGVjb2Rlcjo6ZGVjb2RlKGNvbnN0IGNoYXIgKmRhdGEK
IAkJICAgIH0gZWxzZSBpZiAodGFnICE9IHNjcmlwdFRhZyAmJiB0YWcgIT0gbm9zY3JpcHRUYWcg
JiYgdGFnICE9IHN0eWxlVGFnICYmCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGFn
ICE9IGxpbmtUYWcgJiYgdGFnICE9IG1ldGFUYWcgJiYgdGFnICE9IG9iamVjdFRhZyAmJgogICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRhZyAhPSB0aXRsZVRhZyAmJiB0YWcgIT0gYmFz
ZVRhZyAmJiAKLSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAoZW5kIHx8IHRhZyAhPSBo
dG1sVGFnKSAmJgorICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIChlbmQgfHwgdGFnICE9
IGh0bWxUYWcpICYmICFhcmVJblRpdGxlICYmCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgKHRhZyAhPSBoZWFkVGFnKSAmJiBpc2FscGhhKHRtcFswXSkpIHsKICAgICAgICAgICAgICAg
ICAgICAgICAgIGJvZHkgPSB0cnVlOwogI2lmZGVmIERFQ09ERV9ERUJVRwo=
</data>
<flag name="review"
          id="413"
          type_id="1"
          status="+"
          setter="darin"
    />
          </attachment>
      

    </bug>

</bugzilla>