- From: David Dorward <david@dorward.me.uk>
- Date: Wed, 10 Oct 2012 17:19:08 +0100
- To: Paul de Freitas <paul@defreitas.info>
- Cc: <www-validator@w3.org>
Received on Wednesday, 10 October 2012 16:19:41 UTC
On 8 Oct 2012, at 14:53, Paul de Freitas <paul@defreitas.info> wrote: > The following generates an error – note that onload does not generate an error: The onload attribute has been defined in HTML for a while. http://www.w3.org/TR/html4/interact/scripts.html#adef-onload > Line 54, Column 101: there is no attribute "onresize" onresize … hasn't. It is a vendor proprietary extension (as mentioned in the explanation for the error). > You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead). Generally speaking, intrinsic event attributes should be avoided anyway. http://en.wikipedia.org/wiki/Unobtrusive_JavaScript https://developer.mozilla.org/en-US/docs/DOM/element.addEventListener -- David Dorward http://dorward.me.uk
Received on Wednesday, 10 October 2012 16:19:41 UTC