W3C home > Mailing lists > Public > public-html@w3.org > February 2008

Parsing: <applet>, scoping element or not

From: Simon Pieters <simonp@opera.com>
Date: Wed, 27 Feb 2008 20:16:21 +0100
To: public-html <public-html@w3.org>
Message-ID: <op.t666hjx0idj3kv@hp-a0a83fcd39d2.palace.opera.no>

A page (a Sun tutorial on <applet> that is now gone) broke in Opera  
because it had markup like:

    <p>
     <applet>
      <p><center></center></p>
      Blah
     </applet>
    </p>

...and we parse it as if it were:

    <p>
     <applet>
      <p></p><center></center></applet></p>
      Blah
    <p></p>

Per HTML5 currently it should be parsed as if it were:

    <p>
     <applet>
      </applet></p><p></p><center></center><p></p>
       Blah
    <p></p>

The net result in both Opera's case and HTML5 is that the applet and the  
text "Blah" are both shown, which is not what was intended.

It appears that in IE and Firefox (but not Safari), applet is a "scoping  
element" just like object.

I don't know how many pages break because of this, but perhaps HTML5  
should align with IE and Firefox here.

-- 
Simon Pieters
Opera Software
Received on Wednesday, 27 February 2008 19:16:35 UTC

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:38:53 UTC