I have the following document, at http://ataru.gomen.org/file/test.html:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Test</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<h1>Hello, world!</h1>
<iframe></iframe>
</body>
</html>
The whole point of <iframe> is to embed a frame in a page, is it not?
But this document is not 4.01 strict, nor is it 4.01 frameset. Can I
use an <object> to get exactly the same effect as the <iframe>, or
must I resign myself to having a non-conforming page?
--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cybers pace.org | don't, I need to know. Flames welcome.
Jul 23 '05
28 4123
Nick Kew wrote: An author might want to suggest a size under some circumstances, but that's not a general case.
If the author doesn't care enough about the size to specify a width and
height, then the author shouldn't care if the width and height are set to
0.
--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
In article <pa************ *************** *@tobyinkster.c o.uk>, us**********@to byinkster.co.uk says... Nick Kew wrote:
An author might want to suggest a size under some circumstances, but that's not a general case.
Yes, usually stuff loaded in iframe is supposed to be shown fully at
least on one direction. I don't think anybody aims to make two scrollbars
on iframe. But because this IE bug, that is much more common than just
having one.
If the author doesn't care enough about the size to specify a width and height, then the author shouldn't care if the width and height are set to 0.
And if author goesn't care to specify size of h1, he shouldn't care if
height and width are set to 0? How the hell could author know how big
iframe should be? How could he know how big h1 would be?
--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Lauri Raittila <la***@raittila .cjb.net> wrote: > An author might want to suggest a size under > some circumstances, but that's not a general case. Yes, usually stuff loaded in iframe is supposed to be shown fully at least on one direction. I don't think anybody aims to make two scrollbars on iframe. But because this IE bug, that is much more common than just having one.
Had you bothered to read the thread you would have noticed that we are
discussing embedding html via the object element.
If the author doesn't care enough about the size to specify a width and height, then the author shouldn't care if the width and height are set to 0.
And if author goesn't care to specify size of h1, he shouldn't care if height and width are set to 0? How the hell could author know how big iframe should be? How could he know how big h1 would be?
Apples and pears, embedded html is replaced content with no intrinsic
width and/or height, h1 content is non replaced.
--
Spartanicus
In article
<et************ *************** *****@news.spar tanicus.utvinte rnet.ie>, me@privacy.net says... Lauri Raittila <la***@raittila .cjb.net> wrote:
> An author might want to suggest a size under > some circumstances, but that's not a general case. Yes, usually stuff loaded in iframe is supposed to be shown fully at least on one direction. I don't think anybody aims to make two scrollbars on iframe. But because this IE bug, that is much more common than just having one.
Had you bothered to read the thread you would have noticed that we are discussing embedding html via the object element.
So s/iframe/object/g. Makes no difference here. If the author doesn't care enough about the size to specify a width and height, then the author shouldn't care if the width and height are set to 0.
And if author goesn't care to specify size of h1, he shouldn't care if height and width are set to 0? How the hell could author know how big object should be? How could he know how big h1 would be?
Apples and pears,
Yes, similar, but not exactly same...
embedded html is replaced content with no intrinsic width and/or height,
Definition: Replaced element
An element for which the CSS formatter knows only the intrinsic
dimensions. In HTML, IMG and OBJECT elements can be replaced elements.
For example, the content of the IMG element is often replaced by the
image that the "src" attribute designates.
<http://www.w3.org/TR/CSS21/conform.html#re placed-element>
I was unable to find term replaced in HTML spec.
So, if embedded html doesn't have intrinsic width and height, it can't be
replaced element. Browser should either get width and height for it by
rendering it, and then treat it as replaced, or treat it like non-
replaced content. In both cases, result is same, and it is not that width
and height are 0.
h1 content is non replaced.
Sure, but so is HTML content of object. Or at least I interpret specs
that way.
--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Lauri Raittila <la***@raittila .cjb.net> wrote: embedded html is replaced content with no intrinsic width and/or height,
Definition: Replaced element An element for which the CSS formatter knows only the intrinsic dimensions. In HTML, IMG and OBJECT elements can be replaced elements. For example, the content of the IMG element is often replaced by the image that the "src" attribute designates. <http://www.w3.org/TR/CSS21/conform.html#re placed-element>
This is an HTML issue, not CSS. Per HTML spec the behaviour of an object
element regarding size is undefined if no width and height are specified
and the replaced content has no intrinsic dimensions.
CSS is not a requirement for a www renderer, hence CSS rules are
irrelevant here. h1 content is non replaced.
Sure, but so is HTML content of object.
The content isn't, the embedded HTML is:
<object data="foo.html" type="text/html" width="100" height="100">
Content
</object>
--
Spartanicus
In article
<v7************ *************** *****@news.spar tanicus.utvinte rnet.ie>, me@privacy.net says... Lauri Raittila <la***@raittila .cjb.net> wrote:
embedded html is replaced content with no intrinsic width and/or height, Definition: Replaced element An element for which the CSS formatter knows only the intrinsic dimensions. In HTML, IMG and OBJECT elements can be replaced elements. For example, the content of the IMG element is often replaced by the image that the "src" attribute designates. <http://www.w3.org/TR/CSS21/conform.html#re placed-element>
This is an HTML issue, not CSS.
I almost agree.
Per HTML spec the behaviour of an object element regarding size is undefined if no width and height are specified and the replaced content has no intrinsic dimensions.
Yes.
CSS is not a requirement for a www renderer, hence CSS rules are irrelevant here.
But IE has CSS renderer, so they aren't irrelevant in this case. h1 content is non replaced.
Sure, but so is HTML content of object.
The content isn't, the embedded HTML is:
<object data="foo.html" type="text/html" width="100" height="100"> Content </object>
Fine example. Could you tell any use for above code, when foo.html has
more than a little text in it? The problem is that text will overflow
object box. Or rather, won't overflow but gets scrollbars. In other
words, it is useless.
--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Lauri Raittila <la***@raittila .cjb.net> wrote: CSS is not a requirement for a www renderer, hence CSS rules are irrelevant here.
But IE has CSS renderer, so they aren't irrelevant in this case.
Whether or not a particular UA is CSS capable or enabled is not
relevant. CSS is 100% optional and should never be assumed present. From
that also follows that you should not try and explain width and/or
height behaviour according to CSS rules when width & height are supplied
(or not supplied) as HTML attribute values. This is an HTML issue, HTML
rules apply, if there are none as in this case then the behaviour is
undefined. >> h1 content is non replaced. > >Sure, but so is HTML content of object.
The content isn't, the embedded HTML is:
<object data="foo.html" type="text/html" width="100" height="100"> Content </object>
Fine example. Could you tell any use for above code, when foo.html has more than a little text in it? The problem is that text will overflow object box. Or rather, won't overflow but gets scrollbars. In other words, it is useless.
A different point entirely, I'm not arguing for it's use, just that
there's nothing incorrect about IE's behaviour regarding this particular
issue.
--
Spartanicus
In article
<08************ *************** *****@news.spar tanicus.utvinte rnet.ie>, me@privacy.net says... Lauri Raittila <la***@raittila .cjb.net> wrote:
CSS is not a requirement for a www renderer, hence CSS rules are irrelevant here. But IE has CSS renderer, so they aren't irrelevant in this case.
Whether or not a particular UA is CSS capable or enabled is not relevant.
Of course it is relevant, if HTML and CSS spec differ. Especially as it
is said in CSS spec that CSS rules on presentation override HTML ones.
When presentation is undefined in HTML and there is some in CSS, of
course CSS one should be used, when making CSS enabled browser.
CSS is 100% optional and should never be assumed present.
Of course, but it is bug in IE to not follow CSS spec. It has nothing to
do with assuming CSS being present. It is like saying that IE doesn't
have any CSS bugs because CSS is optional
From that also follows that you should not try and explain width and/or height behaviour according to CSS rules when width & height are supplied (or not supplied) as HTML attribute values.
Why? CSS rules should be used when rendering HTML in CSS enabled browser.
IE is CSS enabled browser by default.
This is an HTML issue, HTML rules apply, if there are none as in this case then the behaviour is undefined.
If it is against CSS spec it is a bug. That CSS is optional doesn't make
it less bug, while CSS is enabled in IE. And it is not very good UI
planning to make something practically invisible.
There is lots of stuff that is defined in CSS but not in HTML, and is
considered bug when it doesn't work. Saying margins should not collapse
like CSS defines as it is not defined in HTML is just like this - it
applies even whitout any CSS code.
--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Lauri Raittila <la***@raittila .cjb.net> wrote: >> CSS is not a requirement for a www renderer, hence CSS rules are >> irrelevant here. > >But IE has CSS renderer, so they aren't irrelevant in this case. Whether or not a particular UA is CSS capable or enabled is not relevant.
Of course it is relevant, if HTML and CSS spec differ. Especially as it is said in CSS spec that CSS rules on presentation override HTML ones. When presentation is undefined in HTML and there is some in CSS, of course CSS one should be used, when making CSS enabled browser.
On reflection I concede that IE should use the CSS rules to establish
the width and height.
That leads us back to the question how a UA should establish the width &
height. To bring back a point you made earlier: embedded html is replaced content with no intrinsic width and/or height,
Definition: Replaced element An element for which the CSS formatter knows only the intrinsic dimensions. In HTML, IMG and OBJECT elements can be replaced elements. For example, the content of the IMG element is often replaced by the image that the "src" attribute designates. <http://www.w3.org/TR/CSS21/conform.html#re placed-element>
I was unable to find term replaced in HTML spec.
So, if embedded html doesn't have intrinsic width and height, it can't be replaced element.
Interesting conclusion, but it follows not from the definition of a
replaced element, but from the definition of intrinsic dimensions:
Definition: Intrinsic dimensions
The width and height as defined by the element itself, not imposed by
the surroundings. In CSS2 it is assumed that all replaced elements --
and only replaced elements -- come with intrinsic dimensions.
Browser should either get width and height for it by rendering it, and then treat it as replaced, or treat it like non- replaced content. In both cases, result is same, and it is not that width and height are 0.
Although none of the big three rendering engines actually do this, the
behaviour you describe does now make sense to me.
--
Spartanicus This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: dj |
last post by:
Hi,
Anyone have a snippet of code that will guide me as follows;
I want to use an iframe but if the browser does not support iframes I
want to simply replace the iframe HTML code with the URL which will be
in the iframe.
I'll probably detect the browser to make the switch.
|
by: Silver Arrow |
last post by:
Iframe ReturnValue returns undefined if domains are not the same
I am using a modal window and an iFrame to try and pull a return value
back.
IMPORTANT : I am doing this across domains.
Main app: http://webSite1.domain.com/mainApplication
Other app call in ModalWindow:
http://webSite2.domain.com/mainApplication
I have the value returned from the modal window to the iFrame window
|
by: Peroli |
last post by:
Hi all,
I have an iframe as stated below. When i initiate the function
"open_frm()" everything is working as i expected.
When the document is loaded, i click on a link in the iframe, with
posts some data to the server (to url "myscript.peroli?q=something")
and gets back with results. Everything happens inside the iframe, no
interaction with parent window.
But when i do this 2 or more times, mozilla and IE is giving me a
|
by: djdave |
last post by:
Pb with javascript.
I've a 'main.html' script containing an 'iframe.html' IFRAME.
The 'iframe.html' is containing a form.
My problem is that i'm unable to get form fields values. What's the
syntax ???
NB: the script has to be generic, because it has to work with any .html
(i may don't know form's name and iframe's name).
Thanks
|
by: ej1002 |
last post by:
Hi
I have developed a Windows Application(C# Windows Form) which will get the IFrame Source of the page it is navigating using Webbrowser Control. Now I want do this in ASP.Net web application(C# Web Form).
Is there any other method through which I will be able to access the IFrame Source of the page I am navigating to. Also I need to click on some of the links in the page I am navigating. Requirement is to read the data the IFrame source...
| |
by: moondaddy |
last post by:
I have a htm page where I need to pass some data to an aspx page as a means
of sending data to the database. I don't need to see the aspx page so I was
going to put it in a hidden iframe. This works real good. Since I don't
need the aspx page to do any postback, is there a way to pass a parameter to
it with out it finishing the round trip back to the htm page?
Thanks.
--
moondaddy@newsgroup.nospam
|
by: jad2006 |
last post by:
Hi guys
We have a requirement like in one iframe we have to show one site and in another iframe we have to show some other external site, we did it using
<iframe src="http://www.a.com"> </iframe>
<iframe src="http://www.b.com"> </iframe>
now if the session expires in any one site, the login page is shown in only the correponding iframe, what we require is that the login page has to be shown in the entire window(since both...
|
by: victorduwon |
last post by:
Hi guys,
I wanted to know if anyone knew if it was possible to use iframe to view only a particular section of a site in another page. I ask because I want to view only the body of a particular site without the header and footer or ads on another site. The site in question is public domain, so there are no copyright issues. I thought of using iframe, but I don't know if it it possible to do so and only view certain parts of the site. ...
|
by: vunet |
last post by:
It is recommended by some sources I found to create IFrames in IE
using
document.createElement('<iframe src="#">')
instead of document.createElement('iframe').
Why and what browser versions to use it? IE5 or IE6?
Thanks
|
by: metomeya |
last post by:
I was wondering what the code would be to have 3 different submit buttons that would change the website iframe (or a css box) web page being displayed.
thanks
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |