<?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>43440</bug_id>
          
          <creation_ts>2010-08-03 12:33:11 -0700</creation_ts>
          <short_desc>&lt;noscript&gt; is not allowed inside &lt;p&gt;</short_desc>
          <delta_ts>2010-12-17 08:09:48 -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>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://i.imgur.com/rQSRl.png</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="Mathias Bynens">mathias</reporter>
          <assigned_to name="Adam Barth">abarth</assigned_to>
          <cc>abarth</cc>
    
    <cc>ap</cc>
    
    <cc>commit-queue</cc>
    
    <cc>mathias</cc>
    
    <cc>peter</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>259624</commentid>
    <comment_count>0</comment_count>
    <who name="Mathias Bynens">mathias</who>
    <bug_when>2010-08-03 12:33:11 -0700</bug_when>
    <thetext>Here&apos;s a &quot;demo&quot; page where the issue occurs: http://jsperf.com/slugs Note that this document validates as HTML5.

I wasn&apos;t sure what to do with this, so I asked #whatwg: http://krijnhoetmer.nl/irc-logs/whatwg/20100803#l-952

# [21:20] &lt;Matjas&gt; What is up with this? Web Inspector gives the following error: &quot;&lt;noscript&gt; is not allowed inside &lt;p&gt;&quot; Screenshot: http://i.imgur.com/rQSRl.png  
# [21:21] &lt;Matjas&gt; But the HTML validates and everything… Is this is a Webkit bug or am I doing something wrong?  
# [21:21] &lt;annevk5&gt; sounds like a WebKit bug  
# [21:23] &lt;Matjas&gt; annevk5: http://www.w3.org/TR/REC-html40/interact/scripts.html#h-18.3.1 says &quot;&lt;!ELEMENT NOSCRIPT - - (%block;)+ &quot;  
# [21:23] &lt;Matjas&gt; (That&apos;s from HTML4 though)  
# [21:24] &lt;annevk5&gt; HTML4 does not seem relevant  
# [21:24] &lt;annevk5&gt; and that does not tell anything about what &lt;p&gt; allows  
# [21:24] &lt;annevk5&gt; though I guess if &lt;noscript&gt; just allows %block; &lt;p&gt; does not allow &lt;noscript&gt;  
# [21:24] &lt;annevk5&gt; but still a bug in WebKit</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>259635</commentid>
    <comment_count>1</comment_count>
    <who name="Mathias Bynens">mathias</who>
    <bug_when>2010-08-03 12:47:32 -0700</bug_when>
    <thetext>Cross-posted on crbug.com, as recommended by Paul Irish: http://code.google.com/p/chromium/issues/detail?id=51085</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>259983</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2010-08-04 05:54:45 -0700</bug_when>
    <thetext>I can reproduce this with both Safari/WebKit 5 and ToT. Indeed, this seems to be something HTML4 didn&apos;t allow.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>260057</commentid>
    <comment_count>3</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2010-08-04 09:43:02 -0700</bug_when>
    <thetext>This is likely to get fixed today or tomorrow when we turn on the HTML5 tree builder.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>260502</commentid>
    <comment_count>4</comment_count>
    <who name="Peter Beverloo">peter</who>
    <bug_when>2010-08-05 03:52:28 -0700</bug_when>
    <thetext>I can confirm Adam&apos;s comment, the error no longer appears.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>260659</commentid>
    <comment_count>5</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2010-08-05 09:38:18 -0700</bug_when>
    <thetext>Great!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>260735</commentid>
    <comment_count>6</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2010-08-05 11:44:22 -0700</bug_when>
    <thetext>Adam, do we want to make and land a regression test?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>260740</commentid>
    <comment_count>7</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2010-08-05 11:46:47 -0700</bug_when>
    <thetext>I believe this case is already tested in the html5lib test suite, but we can add another test if you want to be sure.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>260774</commentid>
    <comment_count>8</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2010-08-05 12:31:41 -0700</bug_when>
    <thetext>Reopening to add a test.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>260777</commentid>
    <comment_count>9</comment_count>
      <attachid>63619</attachid>
    <who name="Adam Barth">abarth</who>
    <bug_when>2010-08-05 12:34:31 -0700</bug_when>
    <thetext>Created attachment 63619
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>261204</commentid>
    <comment_count>10</comment_count>
      <attachid>63619</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-08-06 05:13:54 -0700</bug_when>
    <thetext>Comment on attachment 63619
Patch

Clearing flags on attachment: 63619

Committed r64838: &lt;http://trac.webkit.org/changeset/64838&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>261205</commentid>
    <comment_count>11</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-08-06 05:14:00 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>323779</commentid>
    <comment_count>12</comment_count>
    <who name="Mathias Bynens">mathias</who>
    <bug_when>2010-12-17 08:09:48 -0800</bug_when>
    <thetext>*** Bug 51254 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>63619</attachid>
            <date>2010-08-05 12:34:31 -0700</date>
            <delta_ts>2010-08-06 05:13:54 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-43440-20100805123430.patch</filename>
            <type>text/plain</type>
            <size>1301</size>
            <attacher name="Adam Barth">abarth</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL0xheW91dFRlc3RzL0NoYW5nZUxvZyBiL0xheW91dFRlc3RzL0NoYW5nZUxv
ZwppbmRleCA3NTJjMDk0YmU5YWVkNzExN2FjODk3NzE2NDhjZWVmMjk2MDY3MTI3Li5jMjcwM2Zj
OTIwM2NmNmQ4MjliMWJhZmVlZjk0ZTM1M2ZiNzRhYzhlIDEwMDY0NAotLS0gYS9MYXlvdXRUZXN0
cy9DaGFuZ2VMb2cKKysrIGIvTGF5b3V0VGVzdHMvQ2hhbmdlTG9nCkBAIC0yLDYgKzIsMTcgQEAK
IAogICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KIAorICAgICAgICA8bm9zY3Jp
cHQ+IGlzIG5vdCBhbGxvd2VkIGluc2lkZSA8cD4KKyAgICAgICAgaHR0cHM6Ly9idWdzLndlYmtp
dC5vcmcvc2hvd19idWcuY2dpP2lkPTQzNDQwCisKKyAgICAgICAgQWRkIGEgdGVzdCB0aGF0IHdl
IG5vdyB3ZSBwYXJzZSB0aGlzIGV4YW1wbGUgY29ycmVjdGx5LgorCisgICAgICAgICogaHRtbDVs
aWIvcmVzb3VyY2VzL3dlYmtpdDAyLmRhdDoKKworMjAxMC0wOC0wNSAgQWRhbSBCYXJ0aCAgPGFi
YXJ0aEB3ZWJraXQub3JnPgorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWS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