Closed
Bug 198545
Opened 23 years ago
Closed 23 years ago
frame margins can't be removed in valid html
Categories
(Core :: Layout: Images, Video, and HTML Frames, defect)
Tracking
()
People
(Reporter: jorishuizer, Unassigned)
Details
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020623 Debian/1.0.0-0.woody.1
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020623 Debian/1.0.0-0.woody.1
In a document with this dtd,
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/html4/frameset.dtd">
This tag doesn't validate:
<frameset rows="100,*"border="0" bordercolor="black"
frameborder="no" framespacing="0">
How do you get rid of the the frame borders without using the above?
------------------
Have a look at these definitions - from
http://www.w3.org/TR/html401/present/frames.html:
<!ATTLIST FRAMESET
%coreattrs; -- id, class,
style, title --
rows %MultiLengths; #IMPLIED -- list of
lengths,
default:
100% (1 row) --
cols %MultiLengths; #IMPLIED -- list of
lengths,
default:
100% (1 col) --
onload %Script; #IMPLIED -- all the
frames have been loaded --
onunload %Script; #IMPLIED -- all the
frames have been removed --
>
]]>
<!ATTLIST FRAME
%coreattrs; -- id, class,
style, title --
longdesc %URI; #IMPLIED -- link to long
description
(complements
title) --
name CDATA #IMPLIED -- name of
frame for targetting --
src %URI; #IMPLIED -- source of
frame content --
frameborder (1|0) 1 -- request
frame borders? --
marginwidth %Pixels; #IMPLIED -- margin
widths in pixels --
marginheight %Pixels; #IMPLIED -- margin
height in pixels --
noresize (noresize) #IMPLIED -- allow users
to resize frames? --
scrolling (yes|no|auto) auto -- scrollbar or
none --
>
]]>
I'd say you do as follows:
<frameset rows="*,*">
<frame src="URL1" frameborder="0" marginwidth="0"
marginheight="0">
<frame src="URL2" frameborder="0" marginwidth="0"
marginheight="0">
</frameset>
The specs clearly says this is the way, but it doesn't work in mozilla 1.0.0
Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Actual Results:
The frame margins keep sitting there
Expected Results:
Don't display the margin
Comment 1•23 years ago
|
||
There is no way with valid markup to remove frame borders, in any browser. This
is a known issue with the HTML 4.01/XHTML 1 spec.
For a good analysis (and the non-valid ways to do it), check out
http://www.stopdesign.com/log/default.asp?date=20030304
->Layout/HTML Frames, though I think the bug is really invalid, since it's the
spec that is lacking on this point.
Component: Browser-General → Layout: HTML Frames
Comment 3•23 years ago
|
||
Turns out this is an old dup anyway. See bug 3655 comment 69
*** This bug has been marked as a duplicate of 3655 ***
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
Updated•7 years ago
|
Product: Core → Core Graveyard
Updated•7 years ago
|
Component: Layout: HTML Frames → Layout: Images
Product: Core Graveyard → Core
You need to log in
before you can comment on or make changes to this bug.
Description
•