W3C home > Mailing lists > Public > www-validator@w3.org > March 2004

Strange validation behaviour in a noscript tag

From: Alexander Poquet <atp@csbd.org>
Date: Wed Mar 10 18:35:41 2004
To: www-validator@w3.org
Message-Id: <20040311023541.823CE1E03001F@csbd.org>

Hi folks.



I recently attempted to validate the following HTML 4.01 page using the online

validator: http://www.gsmcthw.com/index.html.en



It complains about the following piece of markup:

<div class="dynamic">

  <!-- This simply writes a new image everytime the user loads the page -->

  <script type="text/javascript" src="imgrotate.js.en"></script>

  <noscript>

    <img src="images/index_left_pic02.jpg" alt="" class="leftpic"><br class="nodisp">

    <img src="images-en/index_right_pic02.jpg" alt="Foremost in Customer Service" class="rightpic">

  </noscript>

</div>



I believe this may be a bug.  It complains that the img and br elements in the

noscript block are not enclosed by a parent block-level tag (p, div, etc).

However, they are enclosed in such a tag (div.dynamic).   As script and

noscript are mutually exclusive, this really should expand to (in a non-

javascript enabled browser):



<div class="dynamic">

  <img src="images/index_left_pic02.jpg" alt="" class="leftpic"><br class="nodisp">

  <img src="images-en/index_right_pic02.jpg" alt="Foremost in Customer Service" class="rightpic">

</div>



Which should most certainly be valid HTML 4.01.  Am I correct in assuming

that I have located a bug, or is there some strange SGML detail that I'm

missing?  Thanks in advance for any information you can give me.



Alexander Poquet
Received on Thursday, 11 March 2004 00:35:35 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:13 GMT