<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Given that both Mozilla Firefox and Microsoft Edge both agree with WebKit, it is unlikely we would accept a change to this behavior.<div class=""><br class=""></div><div class="">—Myles</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On May 10, 2016, at 7:31 PM, jongdeok.kim &lt;<a href="mailto:jongdeok.kim@navercorp.com" class="">jongdeok.kim@navercorp.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div style="font-size: 9pt; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-family: 나눔고딕, NanumGothic, sans-serif;" class=""><div style="margin-top: 0px; margin-bottom: 0px;" class="">Hi Everyone,</div><p style="margin-top: 0px; margin-bottom: 0px;" class="">&nbsp;</p><div style="margin-top: 0px; margin-bottom: 0px;" class="">A web page that I'm testing with webkit, uses two event listeners about load event.</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">It registered those by assigning to window.onload and setting as an 'onload' attribute of body element.</div><p style="margin-top: 0px; margin-bottom: 0px;" class="">&nbsp;</p><div style="margin-top: 0px; margin-bottom: 0px;" class="">On webkit, last registered one replaces previous one, in this case 'onload' attribute wins.</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">I checked other browsers, but only chrome permits two&nbsp;listeners&nbsp;on same event type.</div><p style="margin-top: 0px; margin-bottom: 0px;" class="">&nbsp;</p><div style="margin-top: 0px; margin-bottom: 0px;" class="">I googled and found out that it's DOM Level 0 event handling.</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">And I'm wondering this is a webkit bug when using a mix of&nbsp;<span style="font-size: 9pt; line-height: 1.5;" class="">traditional model and&nbsp;</span><span style="font-size: 9pt; line-height: 1.5;" class="">inline&nbsp;model (</span>as referred to below),<span style="font-size: 9pt; line-height: 1.5;" class="">&nbsp;or implementor&nbsp;dependent.</span></div><p style="margin-top: 0px; margin-bottom: 0px;" class="">&nbsp;</p><div style="margin-top: 0px; margin-bottom: 0px;" class=""><a href="https://en.wikipedia.org/wiki/DOM_events#DOM_Level_0" class="">https://en.wikipedia.org/wiki/DOM_events#DOM_Level_0</a>&nbsp;</div><p style="margin-top: 0px; margin-bottom: 0px;" class="">&nbsp;</p><div style="margin-top: 0px; margin-bottom: 0px;" class="">&lt;html&gt;&nbsp;</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">&lt;head&gt;&nbsp;</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">&lt;title&gt;onloadload&lt;/title&gt;&nbsp;</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">&lt;script type="text/javascript"&gt;&nbsp;</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">function load() {</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">&nbsp; &nbsp; alert("body.onload");</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">}</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">window.onload = function () { // traditional model</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">&nbsp; &nbsp; alert("window.onload");</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">};</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">&lt;/script&gt;&nbsp;</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">&lt;/head&gt;&nbsp;</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">&lt;body onload="load()"&gt; &lt;!-- inline model --&gt;</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">&lt;p&gt;onload.&lt;/p&gt;&nbsp;</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">&lt;/body&gt;&nbsp;</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">&lt;/html&gt;&nbsp;</div><p style="margin-top: 0px; margin-bottom: 0px;" class="">&nbsp;</p><div style="margin-top: 0px; margin-bottom: 0px;" class="">Thanks in advance.</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">jongdeok.</div><p style="margin-top: 0px; margin-bottom: 0px;" class="">&nbsp;</p></div><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">_______________________________________________</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">webkit-dev mailing list</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="mailto:webkit-dev@lists.webkit.org" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">webkit-dev@lists.webkit.org</a><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="https://lists.webkit.org/mailman/listinfo/webkit-dev" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">https://lists.webkit.org/mailman/listinfo/webkit-dev</a></div></blockquote></div><br class=""></div></body></html>