Jim Ley wrote :
So, that's completlely irrelevant.
I do not understand why you say it's completely irrelevant.
How often does one resize the body element without using the resizing
window handles of a browser window?
I do not know of a single occurence or webpage where one resizes the
body element without resizing the browser window; theoretically, that
should be doable, possible.
<body onresize="...">
is invalid markup code. That markup code is supported by many browsers
because the onresize event handler gets handled by the window, not the
body element. That's why I referred to internal browser error mechanism.
Please understand, that it's potentially completely valid, even with
an HTML 4.01 strict doctype declaration, you can just add it into the
internal subset.
I understand that it's potentially completely valid. But it's not valid
with a standard HTML 4.01 doctype declaration. onresize attribute is not
listed anywhere in the HTML 4.01 spec.:
http://www.w3.org/TR/html4/index/attributes.html
onresize attribute for body element is not even listed as deprecated either.
How often do you see web authors/web pages using a custom DTD or a
modified DTD or an extended DTD?
How often do you see people saying in this newsgroup that they use a
custom DTD or a modified DTD or an extended DTD?
<body asdf="ghjk">
is invalid markup code. But then if one has to always add that this is
in cases where a custom DTD or extended/modified DTD is not used, then
posting in this newsgroup can/should become very long, tediously
explicit, excessively exact, miserably cautious, mono-maniacally detailed.
The reason I'm discussing this is that your post was
I said word for word this:
"There is no onresize event handler for the body element in HTML 4.01:
so that too is invalid."
and you're saying my post was misleading.
the onresize in body is well supported, almost certainly
the preferred way to declare onresize,
Well that way should not be the preferred way to declare and use the
onresize attribute. In HTML 4.01. When using an official W3C doctype. In
a non-modified DTD. In a non-custm DTD. In a very vast majority of
webpages on the web.
Is that the way we should always post from now on?
and well documented in Mozilla
Ok go ahead: bring the url at mozilla.org where it says that <body
onresize="..."> is valid, ok, good enough, preferable or whatever.
as well as other user agents.
We have no reason to believe the OP was using HTML 4.01
Jim.
Above 99% of all webpages on the web and above 99% of people posting in
this newsgroup do not use a custom DTD nor an extended/modified DTD.
Without any url from the OP, without any sufficient chunk of relevant
code pasted from the OP, without any kind of useful data from the OP
post from the OP, why shouldn't I assume he is using HTML 4.01? standard
HTML 4.01 that is. Non-modified HTML 4.01 DTD.
Gérard