![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
Oh that's IE7 |
#2
| |||
| |||
|
|
You should also use the standardized intrinsic event handler `onload' attribute of the `body' element instead of the proprietary event handler property `onload' |
#3
| |||
| |||
|
|
On Dec 18, 11:13 pm, Thomas 'PointedEars' Lahn <PointedE... (AT) web (DOT) de wrote: You should also use the standardized intrinsic event handler `onload' attribute of the `body' element instead of the proprietary event handler property `onload' A very bad advise from the point of view of content-layout-scripting separation: |
#4
| |||
| |||
|
|
You should also use the standardized intrinsic event handler `onload' attribute of the `body' element instead of the proprietary event handler property `onload' A very bad advise from the point of view of content-layout-scripting separation: Nonsense. Whether either the `script' element contains an assignment of a reference to a Function object to `window.onload' (or performing an equivalent), or the `script' element to contain a function declaration and the `onload' property of the `body' element to contain a call to that function makes no real difference. The script is always tied to and tailored to the markup. |
|
The real difference here is that the `onload' property is proprietary, and both it and a standards-compliant equivalent would require feature-testing for themselves |
#5
| |||
| |||
|
|
VK wrote: On Dec 18, 11:13 pm, Thomas 'PointedEars' Lahn <PointedE... (AT) web (DOT) de wrote: You should also use the standardized intrinsic event handler `onload' attribute of the `body' element instead of the proprietary event handler property `onload' A very bad advise from the point of view of content-layout-scripting separation: Nonsense. Whether either the `script' element contains an assignment of a reference to a Function object to `window.onload' (or performing an equivalent), or the `script' element to contain a function declaration and the `onload' property of the `body' element to contain a call to that function makes no real difference. The script is always tied to and tailored to the markup. The real difference here is that the `onload' property is proprietary, and both it and a standards-compliant equivalent would require feature-testing for themselves, while the `onload' attribute is standardized as per HTML 4.01 (and supported long before that) and requires no feature-testing on itself. PointedEars |
#6
| |||
| |||
|
|
[...] Thomas 'PointedEars' Lahn [...] wrote: The real difference here is that the `onload' property is proprietary, and both it and a standards-compliant equivalent would require feature-testing for themselves, while the `onload' attribute is standardized as per HTML 4.01 (and supported long before that) and requires no feature-testing on itself. [...] I have considered moving back to 4.01, but I get layout issues (DIV positioning). |
|
I'll find some midway between the two. |
|
Thanks for your reply. |
![]() |
| Thread Tools | |
| Display Modes | |
| |