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

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>65546</bug_id>
          
          <creation_ts>2003-10-05 16:56:01 +0000</creation_ts>
          <short_desc>[test case] &lt;p&gt; ended at &lt;noscript&gt;</short_desc>
          <delta_ts>2006-06-08 15:48:28 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>konqueror</product>
          <component>khtml parsing</component>
          <version>unspecified</version>
          <rep_platform>Debian testing</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Thomas Friedrichsmeier">thomas.friedrichsmeier</reporter>
          <assigned_to name="Konqueror Bugs">konqueror-bugs-null</assigned_to>
          
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>164046</commentid>
    <comment_count>0</comment_count>
    <who name="Thomas Friedrichsmeier">thomas.friedrichsmeier</who>
    <bug_when>2003-10-05 16:56:01 +0000</bug_when>
    <thetext>Version:            (using KDE KDE 3.1.4)
Installed from:    Debian testing/unstable Packages

Consider the following short example html-code:

&lt;html&gt;
&lt;body&gt;
&lt;p&gt;There should not be a
&lt;script type=&quot;text/javascript&quot;&gt;
&lt;!--
document.write (&quot;break&quot;);
//--&gt;
&lt;/script&gt;
&lt;noscript&gt;break&lt;/noscript&gt;
in this paragraph!&lt;/p&gt;
&lt;/body&gt;
&lt;/html&gt;

Konqueror will put a linebreak in the paragraph. This occurs regardless of whether javascript is turned on or off. The break seems to arise at the opening &lt;noscript&gt;-tag. Indeed, the &lt;noscript&gt;-tag seems to be the culprit: even if the &lt;script&gt;...&lt;/script&gt; section is removed, there will still be a line break at the opening &lt;noscript&gt;-tag, while the problem goes away, if you remove the &lt;noscript/&gt;-section only.

Further, if you put an align=&quot;center&quot; in the opening &lt;p&gt;-tag, you will note, that obviously the whole paragraph gets closed at the &lt;noscript&gt;-tag (the first half of the paragraph will be centered, the second half on a separate line will be left-aligned).

Renders as expected (no line/paragraph break) in Mozilla 1.4.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>171345</commentid>
    <comment_count>1</comment_count>
    <who name="Stephan Kulow">coolo</who>
    <bug_when>2003-11-02 11:18:33 +0000</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of 47241 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>171477</commentid>
    <comment_count>2</comment_count>
    <who name="Thomas Friedrichsmeier">thomas.friedrichsmeier</who>
    <bug_when>2003-11-02 16:11:46 +0000</bug_when>
    <thetext>Sorry, I don&apos;t think this is a duplicate of 47241. It may be related internally, I don&apos;t know about that, but it does seem to me to be an entirely different matter.
This bug has nothing to do with withespace-handling. The essence of this bug is, that an opening &quot;&lt;noscript&gt;&quot;-tag should not be considered as closing a &lt;p&gt;-tag that it&apos;s located inside.
I.e. the minimal testcase is the following (regardless of whether javascript is enabled or disabled):

&lt;p align=&quot;right&quot;&gt;This is right-aligned &lt;noscript&gt;and&lt;/noscript&gt; this should be right-aligned, too, since it should be the same paragraph.&lt;/p&gt;

This is a different situation from 47241. It&apos;s simply, that the &lt;noscript&gt;-tag should not close the paragraph, same as a &lt;script&gt;-tag does not close the containing &lt;p&gt; either. The rendering _inside_ the &lt;noscript/&gt;-section is not the problem here (I admit, the bug is somewhat mistitled).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>230331</commentid>
    <comment_count>3</comment_count>
    <who name="Thomas Friedrichsmeier">thomas.friedrichsmeier</who>
    <bug_when>2004-05-10 18:38:52 +0000</bug_when>
    <thetext>Still present in 3.2.2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>287289</commentid>
    <comment_count>4</comment_count>
      <attachid>8335</attachid>
    <who name="Stephan Kulow">coolo</who>
    <bug_when>2004-11-19 15:59:55 +0000</bug_when>
    <thetext>Created attachment 8335
test case</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>287290</commentid>
    <comment_count>5</comment_count>
    <who name="Stephan Kulow">coolo</who>
    <bug_when>2004-11-19 16:00:29 +0000</bug_when>
    <thetext>but you&apos;re aware it&apos;s illegal HTML, aren&apos;t you?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>288260</commentid>
    <comment_count>6</comment_count>
    <who name="Thorsten Schnebeck">thorsten.schnebeck</who>
    <bug_when>2004-11-23 01:50:26 +0000</bug_when>
    <thetext>Hmm, accordind to selfhtml you can not use &lt;noscipt&gt; in &lt;p&gt; but in these blockelements:

applet | blockquote | body | button | center | dd | del | div | fieldset | form | iframe | ins | li | map | noframes | noscript | object | td | th

So the example seems to be wrong html. But what about real world sites? :-}

Bye

  Thorsten</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>288381</commentid>
    <comment_count>7</comment_count>
    <who name="Stephan Kulow">coolo</who>
    <bug_when>2004-11-23 12:15:50 +0000</bug_when>
    <thetext>real world sites don&apos;t care about legal HTML.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>445082</commentid>
    <comment_count>8</comment_count>
    <who name="Allan Sandfeld">kde</who>
    <bug_when>2006-06-08 15:35:16 +0000</bug_when>
    <thetext>Opera has same behavior as Firefox</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>445090</commentid>
    <comment_count>9</comment_count>
    <who name="Allan Sandfeld">kde</who>
    <bug_when>2006-06-08 15:48:28 +0000</bug_when>
    <thetext>SVN commit 549401 by carewolf:

Allow noscript in P like Firefox and Opera
BUG:65546


 M  +2 -2      dtd.cpp  


--- branches/KDE/3.5/kdelibs/khtml/html/dtd.cpp #549400:549401
@@ -599,8 +599,8 @@
         // _1 *
         return check_array(childID, tag_list_1) || check_array(childID, tag_list_6);
     case ID_P:
-        // P: ( _0 | TABLE ) *
-        return check_array(childID, tag_list_0) || (!strict &amp;&amp; childID == ID_TABLE);
+        // P: ( _0 | TABLE | NOSCRIPT) *
+        return check_array(childID, tag_list_0) || (!strict &amp;&amp; (childID == ID_TABLE || childID == ID_NOSCRIPT));
     case ID_H1:
     case ID_H2:
     case ID_H3:
</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>8335</attachid>
            <date>2004-11-19 15:59:55 +0000</date>
            <delta_ts>2004-11-19 15:59:55 +0000</delta_ts>
            <desc>test case</desc>
            <filename>t.html</filename>
            <type>text/html</type>
            <size>207</size>
            <attacher name="Stephan Kulow">coolo</attacher>
            
              <data encoding="base64">PGh0bWw+IAogPGJvZHk+IAogPHA+VGhlcmUgc2hvdWxkIG5vdCBiZSBhIAogPHNjcmlwdCB0eXBl
PSJ0ZXh0L2phdmFzY3JpcHQiPiAKIDwhLS0gCiBkb2N1bWVudC53cml0ZSAoImJyZWFrIik7IAog
Ly8tLT4gCiA8L3NjcmlwdD4gCiA8bm9zY3JpcHQ+YnJlYWs8L25vc2NyaXB0PiAKIGluIHRoaXMg
cGFyYWdyYXBoITwvcD4gCiA8L2JvZHk+IAogPC9odG1sPiAK
</data>

          </attachment>
      

    </bug>

</bugzilla>