Kor wrote:
Hi,
Does anybody understand why the technique described in
http://www.macromedia.com/devnet/ser...sitioning.html
doesnt work in Netscape 6/7 and Mozilla? I tried it out but to no
avail. I am certainly not a (javascript) programmer / DOM expert but
it seems to me it should work (see for example
http://www.quirksmode.org/dom/w3c_html.html )
I hope somebody can help,
cheers,
Kor
"
Stricter Style Sheet Parsing
(...)
When you use the !DOCTYPE declaration to switch on standards-compliant
mode, Internet Explorer 6 or later ignores style sheet declarations that
do not comply with CSS1.
(...)
Missing Unit Type Identifiers Treated as Pixel Values
According to CSS1, length values must specify a unit type identifier,
such as cm, mm, in, pt, pc, or px. Values without unit type identifiers
and values with white space between the number and the unit type
identifier are ignored. Earlier versions of Internet Explorer treat
numbers without any unit type identifier as pixel units—as if "px" were
appended to the string.
"
CSS Enhancements in Internet Explorer 6, March 2001
http://msdn.microsoft.com/library/en...hancements.asp
If the author of that DW document would have added a doctype decl.
triggering standards compliant rendering mode in MSIE 6, then the
resulting rendering would have been the same as with Mozilla and NS 7.1.
A simple CSS validation of that file (link broken to avoid causing
scrolling)
http://jigsaw.w3.org/css-validator/v...warning=2&uri=
http%3A//www.macromedia.com/devnet/server_archive/articles/css_positioning_dynamic_repositioning.html
will report the (error) space between the value and the unit (width: 35
px). CSS1 and CSS2 indicate how user agents should handle such error.
"User agents must ignore a declaration with an illegal value. For example:
(...)
IMG { border-width: 3 } /* a unit must be specified for length values */
"
CSS2
4.2 Rules for handling parsing errors
http://www.w3.org/TR/CSS2/syndata.html#parsing-errors
The bottom line is this: Mozilla and NS 7.x rendered correctly that
page. Had the page included a doctype decl. indicating, say, a strict
definition, then MSIE 6 would have handled/rendered it correctly.
DU