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" Newsgroups: comp.lang.javascript Subject: Re: DOM styling modified by JavaScript does not affect first rendering Date: Sun, 02 Nov 2014 20:55:08 +0100 Organization: solani.org Lines: 33 Message-ID: References: <0Qpl$Ta+fVUUFw8H@invalid.uk.co.demon.merlyn.invalid> <1487860.gEOcuQC4dx@PointedEars.de> <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 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): > > 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] > Thanks for the link to an interesting comment. :) -- Christoph M. Becker