Closed Bug 527255 Opened 15 years ago Closed 15 years ago

<frameset> does not appear to work properly with application/xhtml+xml

Categories

(Firefox :: General, defect)

x86
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 314922

People

(Reporter: oangoazewoxaulia, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 (.NET CLR 3.5.30729)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 (.NET CLR 3.5.30729)

Apparently, if a frameset is established with a
Content-type:application/xhtml+xml header, the resulting page in not able to see the frames named in the frameset;
rather than targeting the named frame, a new tab (or window, depending on the browser setup) is used. Changing to Content-type:text/html header makes frames work properly.

Demo of the aberrant behaviour is at :
  http://tc17.com/cgi-bin/FirefoxBugs/frameset-app.pl
Demo of the expected behaviour is at:
  http://tc17.com/cgi-bin/FirefoxBugs/frameset-text.pl


Reproducible: Always

Steps to Reproduce:
1.http://tc17.com/cgi-bin/FirefoxBugs/frameset-app.pl
2.Click where is says to!!
3.
Actual Results:  
two tabs

Expected Results:  
one tab 

---- source for frameset-app.pl -----
#!/usr/bin/perl -w

use strict;

use CGI;
use CGI::Carp qw(fatalsToBrowser);

my $oClient = CGI->new;
my $sHTML;

$sHTML = $oClient->header (-content_type => "application/xhtml+xml; charset=utf-8");

$sHTML .= <<END_HTML;
<?xml       version=      "1.0"
            encoding=     "UTF-8"?>
<!DOCTYPE   html PUBLIC   "-//W3C//DTD XHTML 1.0 Frameset//EN"
                          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html       xml:lang=     "en"
            xmlns=        "http://www.w3.org/1999/xhtml">
 <head>

  <title>Demo Firefox &lt;frameset&gt; bug </title>

 </head>

 <frameset	cols=		"250px, *">
  <frame	name=		"FrameInput"
		src=		"/FirefoxBugs/input.html"></frame>
  <frame	name=		"FrameOutput"></frame>
  <noframes>
   <body>
    <p>
     Sorry, this page is not set up to work without frames
    </p>
   </body>
  </noframes>

 </frameset>
</html>
END_HTML

print $sHTML;
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.