<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>4102</bug_id>
          
          <creation_ts>2006-12-19 18:36:25 +0000</creation_ts>
          <short_desc>&lt;img onload&gt;</short_desc>
          <delta_ts>2007-03-08 23:33:41 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Validator</product>
          <component>check</component>
          <version>HEAD</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Denis Germ">webmaster</reporter>
          <assigned_to name="Olivier Thereaux">ot</assigned_to>
          <cc>egil</cc>
          
          <qa_contact name="qa-dev tracking">www-validator-cvs</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>13254</commentid>
    <comment_count>0</comment_count>
    <who name="Denis Germ">webmaster</who>
    <bug_when>2006-12-19 18:36:25 +0000</bug_when>
    <thetext>Hi.

I&apos;ve a little problem with the tag &quot;onload&quot;. Each browser supports this command, but on wc3 its permanently an error... This is the only error on the page :(

I need this, becouse i have transparent images, and the IE6 is unable to display transparency :/
So i need Javascript to fix this error.... +

MFG</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13262</commentid>
    <comment_count>1</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2006-12-20 18:30:11 +0000</bug_when>
    <thetext>In all standardized versions of HTML, onload is only available for body and frameset elements, not img.

see e.g.
http://www.w3.org/TR/html401/interact/scripts.html#events</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14352</commentid>
    <comment_count>2</comment_count>
    <who name="Maciej Jaros">egil</who>
    <bug_when>2007-03-08 14:39:14 +0000</bug_when>
    <thetext>I believe this should be reconsidered. I have a JavaScript 1.3 reference manual which says that onLoad is available since 1.1. You can probably find it somewhere on the net.

OnLoad works in all browsers supporting JavaScript I know off and so in real this is a standard, so why isn&apos;t it a standard for W3C?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14353</commentid>
    <comment_count>3</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2007-03-08 23:33:41 +0000</bug_when>
    <thetext>(In reply to comment #2)

&gt; OnLoad works in all browsers supporting JavaScript I know off and so in real
&gt; this is a standard, so why isn&apos;t it a standard for W3C?

The onload event is present in standard HTML specifications, but, as mentioned in Comment #1, it is only allowed for the body element.

If you believe that it should be available for other elements, this bugzilla, and by extension, the markup validator, is not the right place to ask: the validator validates exstablished standards, and does not discuss the why of things. If you want to ask why onload is only available for &lt;body&gt; or suggest it be added to other elements in a future version of the HTML standard, you want to discuss in the public mailing-list www-html@w3.org
</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>