>From ccb4a6d1090cdedb502af0ab6b95d6542cc201c2 Mon Sep 17 00:00:00 2001 From: Kevin Carhart Date: Thu, 30 Jun 2016 20:14:31 -0700 Subject: [PATCH] (1) Commenting out the iframe may cause regressions, so this is backed out. (2) The changes to addEventListener are undone because the reason why it works is too opaque. It isn't stable enough to go in the master branch. We want event firing to work, but if it doesn't, we had better implement something with better comprehension of the root cause of why (3) fixing KC mistake in adding hasAttribute to prototypes. --- src/decorate.c | 2 +- src/startwindow.js | 48 ++++++++++++++++++------------------------------ 2 files changed, 19 insertions(+), 31 deletions(-) diff --git a/src/decorate.c b/src/decorate.c index 0704596..d512357 100644 --- a/src/decorate.c +++ b/src/decorate.c @@ -1274,7 +1274,7 @@ const struct tagInfo availableTags[] = { {"form", "a form", TAGACT_FORM, 10, 1}, {"button", "a button", TAGACT_INPUT, 0, 4}, {"frame", "a frame", TAGACT_FRAME, 2, 4}, -// {"iframe", "a frame", TAGACT_FRAME, 2, 4}, + {"iframe", "a frame", TAGACT_FRAME, 2, 4}, {"map", "an image map", TAGACT_MAP, 2, 4}, {"area", "an image map area", TAGACT_AREA, 0, 4}, {"table", "a table", TAGACT_TABLE, 10, 1}, diff --git a/src/startwindow.js b/src/startwindow.js index a8223de..2675875 100644 --- a/src/startwindow.js +++ b/src/startwindow.js @@ -510,7 +510,6 @@ Third arg is not used cause I don't understand it. function addEventListener(ev, handler, notused) { -ev_before_changes = ev; ev = "on" + ev; var evarray = ev + "$$array"; // array of handlers var evorig = ev + "$$orig"; // original handler from html @@ -524,7 +523,7 @@ this[ev] = undefined; } this[evarray] = a; eval( -'this.' + ev + ' = function(){ var a = this.' + evarray + '; if(this.' + evorig + ') this.' + evorig + '(); for(var i = 0; i