Strange validation behaviour in a noscript tag

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 UTC