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

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>5661</bug_id>
          
          <creation_ts>2008-04-24 22:02:26 +0000</creation_ts>
          <short_desc>&lt;noscript&gt; problem</short_desc>
          <delta_ts>2008-04-28 11:19:28 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Validator</product>
          <component>Parser</component>
          <version>HEAD</version>
          <rep_platform>Other</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</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="Andreas Yulius Nugroho">andre4s_y</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          
          
          <qa_contact name="qa-dev tracking">www-validator-cvs</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>19939</commentid>
    <comment_count>0</comment_count>
    <who name="Andreas Yulius Nugroho">andre4s_y</who>
    <bug_when>2008-04-24 22:02:26 +0000</bug_when>
    <thetext>This following HTML code :
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.1//EN&quot; &quot;http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head&gt;
&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;stylesheet.css&quot; /&gt;
&lt;title&gt;Testing&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;p&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
&lt;!--
document.write(&quot;Hello World!&quot;)
//--&gt;
&lt;/script&gt;
&lt;noscript&gt;Your browser does not support JavaScript!&lt;/noscript&gt;&lt;/p&gt;
&lt;/body&gt;
&lt;/html&gt;

has 2 errors on validator output, using validator with 	XHTML 1.1 doctype.
Line 14, Column 10: character data is not allowed here . 
&lt;noscript&gt;Your browser does not support JavaScript!&lt;/noscript&gt;&lt;/p&gt;
and
Line 14, Column 61: end tag for &quot;noscript&quot; which is not finished . 
ript&gt;Your browser does not support JavaScript!&lt;/noscript&gt;&lt;/p&gt;

I think :
1. the &lt;noscript&gt; has wrapped in a container element, &lt;noscript&gt; has no attribut, &lt;noscript&gt; is not using XHTML-style self-closing tags. So why the first error is occured?
2. i have closed the &lt;noscript&gt; tag properly. I also have closed the &lt;p&gt; tag properly. So why the second error is occured??

Do the code invalid or the validator&apos;s bug?
Thank you for giving me more and more reference on this problem.

Andre</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19940</commentid>
    <comment_count>1</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2008-04-25 00:10:33 +0000</bug_when>
    <thetext>noscript is a block element, and thus can&apos;t be inside a &lt;p&gt;. You could use &lt;div&gt; instead, I suppose.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19941</commentid>
    <comment_count>2</comment_count>
    <who name="Andreas Yulius Nugroho">andre4s_y</who>
    <bug_when>2008-04-25 05:07:27 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; noscript is a block element, and thus can&apos;t be inside a &lt;p&gt;. You could use
&gt; &lt;div&gt; instead, I suppose.
&gt; 

Thank you for replying.. I have change the &lt;p&gt; tag with &lt;div&gt; tag.. But still invalid... Still have 2 errors. Any reference please?? Just resolved as invalid?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19948</commentid>
    <comment_count>3</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2008-04-26 01:27:43 +0000</bug_when>
    <thetext>1) you need something inside the noscript, it can&apos;t contain content &quot;just like that&quot;.
so something like &lt;noscript&gt;&lt;p&gt;...&lt;/p&gt;&lt;/noscript&gt;

2) you should&apos;t be using document.write in XHTML. Either use HTML, or don&apos;t use document.write.
http://www.w3.org/MarkUp/2004/xhtml-faq#docwrite
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19961</commentid>
    <comment_count>4</comment_count>
    <who name="Andreas Yulius Nugroho">andre4s_y</who>
    <bug_when>2008-04-28 11:19:28 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; 1) you need something inside the noscript, it can&apos;t contain content &quot;just like
&gt; that&quot;.
&gt; so something like &lt;noscript&gt;&lt;p&gt;...&lt;/p&gt;&lt;/noscript&gt;
&gt; 
&gt; 2) you should&apos;t be using document.write in XHTML. Either use HTML, or don&apos;t use
&gt; document.write.
&gt; http://www.w3.org/MarkUp/2004/xhtml-faq#docwrite
&gt; 
Thank you so much Oliver.. Your 2 points above prove that my code is invalid..
</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>