Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #26080

Re: DOM styling modified by <body onload=> JavaScript does not affect first rendering

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From "Christoph M. Becker" <cmbecker69@arcor.de>
Newsgroups comp.lang.javascript
Subject Re: DOM styling modified by <body onload=> JavaScript does not affect first rendering
Date Sun, 02 Nov 2014 20:55:08 +0100
Organization solani.org
Lines 33
Message-ID <m3626r$cd6$1@solani.org> (permalink)
References <op.xognrthttnmj2w@cbealls-imac.local> <0Qpl$Ta+fVUUFw8H@invalid.uk.co.demon.merlyn.invalid> <XnsA3D667E8B5370eejj99@194.109.133.133> <MPmbIcNBU$UUFw6d@invalid.uk.co.demon.merlyn.invalid> <XnsA3D867E6E632Feejj99@194.109.133.133> <m32cqt$qtc$1@solani.org> <1487860.gEOcuQC4dx@PointedEars.de> <m32vge$hu$1@solani.org> <30111511.LVop5iYoBa@PointedEars.de>
Mime-Version 1.0
Content-Type text/plain; charset=windows-1252
Content-Transfer-Encoding 7bit
X-Trace solani.org 1414958107 12710 eJwFwQEBwDAIAzBLdGsBO4eBfwlPdB3eQZdTqzXVjglifyXh+akipHg9i0o3wMi4nZN2fhgCEIg= (2 Nov 2014 19:55:07 GMT)
X-Complaints-To abuse@news.solani.org
NNTP-Posting-Date Sun, 2 Nov 2014 19:55:07 +0000 (UTC)
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0
X-User-ID eJwNxsEBwCAIA8CVYk1AxoEK+4/Q3uu0bdnrNBk1mtXyq2pleFXiPxuhA11DdQ4ts/dDoIPnAyrMEVc=
In-Reply-To <30111511.LVop5iYoBa@PointedEars.de>
Cancel-Lock sha1:KpnZks1ULCpoRfxHIx/luTgX5so=
X-NNTP-Posting-Host eJwNyMEBwCAIA8CViJBYxqko+4+gn3scXVDNEBVsNljmGEuBFTurK8/4N1qW/mJ+jafMmnEyLxQmEK8=
Xref csiph.com comp.lang.javascript:26080

Show key headers only | View raw


Thomas 'PointedEars' Lahn wrote:

> Christoph M. Becker wrote:
> 
>> The body element exposes the onload event handler of the Window object
>> as event handler content attribute with the name onload.
> 
> Unfortunately, indeed they do have made that *implementation bug* somewhat 
> part of the standard (Notes are not normative, and the HTML5 test suite is 
> comparably small as HTML5 was rushed to REC):
> 
> <http://www.w3.org/TR/2014/REC-html5-20141028//dom.html#global-attributes>

In section 4.3.1[1] it even seems to be defined as normative:

| The body element exposes as event handler content attributes a number
| of the event handlers of the Window object. It also mirrors their
| event handler IDL attributes.
|
| The onblur, onerror, onfocus, onload, onresize, and onscroll event
| handlers of the Window object, exposed on the body element, replace
| the generic event handlers with the same names normally supported by
| HTML elements.

[1]
<http://www.w3.org/TR/2014/REC-html5-20141028/sections.html#the-body-element>

> <http://html5doctor.com/the-ride-to-5/#comment-736723>

Thanks for the link to an interesting comment. :)

-- 
Christoph M. Becker

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

DOM styling modified by <body onload=> JavaScript does not affect first rendering "Chris Beall" <Chris_Beall@prodigy.net> - 2014-10-28 18:08 -0400
  Re: DOM styling modified by <body onload=> JavaScript does not affect first rendering BootNic <bootnic.bounce@gmail.com> - 2014-10-29 00:26 -0400
  Re: DOM styling modified by <body onload=> JavaScript does not affect first rendering John Harris <niam@jghnorth.org.uk.invalid> - 2014-10-29 15:33 +0000
  Re: DOM styling modified by <body onload=> JavaScript does not affect first rendering Dr J R Stockton <reply1400@merlyn.demon.co.uk.invalid> - 2014-10-29 21:11 +0000
    Re: DOM styling modified by <body onload=> JavaScript does not affect first rendering "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2014-10-30 10:12 +0100
      Re: DOM styling modified by <body onload=> JavaScript does not affect first rendering Dr J R Stockton <reply1400@merlyn.demon.co.uk.invalid> - 2014-10-31 20:45 +0000
        Re: DOM styling modified by <body onload=> JavaScript does not affect first rendering "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2014-11-01 10:12 +0100
          Re: DOM styling modified by <body onload=> JavaScript does not affect first rendering Tim Streater <timstreater@greenbee.net> - 2014-11-01 10:19 +0000
            Re: DOM styling modified by <body onload=> JavaScript does not affect first rendering "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2014-11-01 12:22 +0100
            Re: DOM styling modified by <body onload=> JavaScript does not affect first rendering Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-11-01 15:22 +0100
          Re: DOM styling modified by <body onload=> JavaScript does not affect first rendering "Christoph M. Becker" <cmbecker69@arcor.de> - 2014-11-01 11:32 +0100
            Re: DOM styling modified by <body onload=> JavaScript does not affect first rendering "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2014-11-01 12:25 +0100
            Re: DOM styling modified by <body onload=> JavaScript does not affect first rendering Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-11-01 15:23 +0100
              Re: DOM styling modified by <body onload=> JavaScript does not affect first rendering "Christoph M. Becker" <cmbecker69@arcor.de> - 2014-11-01 16:50 +0100
                Re: DOM styling modified by <body onload=> JavaScript does not affect first rendering Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-11-01 20:40 +0100
                Re: DOM styling modified by <body onload=> JavaScript does not affect first rendering "Christoph M. Becker" <cmbecker69@arcor.de> - 2014-11-02 20:55 +0100
                Re: DOM styling modified by <body onload=> JavaScript does not affect first rendering Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-11-29 19:27 +0100
    Re: DOM styling modified by <body onload=> JavaScript does not affect first rendering "Chris Beall" <Chris_Beall@prodigy.net> - 2014-10-30 15:46 -0400
  Re: DOM styling modified by <body onload=> JavaScript does not affect first rendering "Christoph M. Becker" <cmbecker69@arcor.de> - 2014-10-31 12:52 +0100
    Re: DOM styling modified by <body onload=> JavaScript does not affect first rendering "Chris Beall" <Chris_Beall@prodigy.net> - 2014-10-31 10:37 -0400
  Re: DOM styling modified by <body onload=> JavaScript does not affect first rendering "Chris Beall" <Chris_Beall@prodigy.net> - 2014-10-31 12:53 -0400
    Re: DOM styling modified by <body onload=> JavaScript does not affect first rendering Joao Rodrigues <groups_jr-1@yahoo.com> - 2014-11-01 10:41 -0200
      Re: DOM styling modified by <body onload=> JavaScript does not affect first rendering Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-11-01 15:29 +0100
      Re: DOM styling modified by <body onload=> JavaScript does not affect first rendering "Chris Beall" <Chris_Beall@prodigy.net> - 2014-11-01 18:03 -0400

csiph-web