Commit Graph

318 Commits

Author SHA1 Message Date
Vincent Sanders
392307bb1f reduce content header interdependancy 2016-04-18 23:04:16 +01:00
Michael Drake
618e4570ef Fix copyrights. 2016-02-29 11:28:31 +00:00
Michael Drake
51084243a2 Add switch case fallthrough comment. 2016-02-09 13:54:21 +00:00
Michael Drake
9fb755b754 Handle known HTML elements without specialisations. 2016-02-01 18:48:42 +00:00
Michael Drake
2443cc432d Attempt to squash warning that happens on CI. 2016-02-01 15:27:26 +00:00
Michael Drake
6904622d9f JavaScript: Fix & optimise HTMLElement specialisation proto str generation.
We now map from tag name to appropriate specialisation of HTMLElement.

We also build the prototype strings at build time, rather than
using duktape to concatinate them together at run time.
2016-02-01 15:17:39 +00:00
John-Mark Bell
bf4382e3ec HTMLElement: stub .style getter. For #2413. 2016-01-31 12:19:58 +00:00
John-Mark Bell
720a8fec0e Javascript: introduce script execution timeout. For #2413. 2016-01-31 01:39:13 +00:00
Vincent Sanders
6d63f7959a make declarations match definitions for duk_raw_read_xxx_be 2016-01-25 15:49:31 +00:00
Michael Drake
9e1622a679 Wrap verbose JS logging in debug macro. 2016-01-25 12:20:58 +00:00
Vincent Sanders
c2bd86ca96 Fix atari mint duktape build 2016-01-22 13:47:02 +00:00
Michael Drake
b29bd85274 Disable JavaScript force-on for forthcoming release. 2016-01-21 22:15:14 +00:00
Michael Drake
f831d81ab1 Restore prevention of clang static analysis from 336326af3a 2016-01-15 11:43:24 +00:00
Michael Drake
2937b2f871 Update to Duktape 1.4.0 release. 2016-01-15 11:43:24 +00:00
Michael Drake
f5dee49aa0 In the customisation header we need to use DUK_USE_* rather than DUK_OPT_* 2016-01-03 22:50:31 +00:00
Michael Drake
01953378ac Squash warning: variable ‘exc’ set but not used 2015-12-20 13:44:28 +00:00
Michael Drake
dbbf4ad648 Add assert that we got a base URI from the node. 2015-12-20 13:33:41 +00:00
Michael Drake
abf8d542b1 Don't set DUK_USE_DEEP_C_STACK since the option has been removed. 2015-12-14 16:05:10 +00:00
Michael Drake
6d792468c5 Enable the REGEXP_CANON_WORKAROUND option
We need to enable this option now as it is off by default, but it was on in
the regexp-canonicalize-lookup branch we used previously.
2015-12-14 15:53:57 +00:00
Michael Drake
de637fa571 Restore prevention of clang static analysis from 336326af3a 2015-12-14 15:51:31 +00:00
Michael Drake
9d097b37f6 Restore volatility introduced in fd9aa16ece 2015-12-14 15:49:36 +00:00
Michael Drake
91bcaaccfd Update to duktape snapshot suggested by svaarala.
http://duktape.org/snapshots/duktape-1.3.99-20151209151055-v1.3.0-383-gb7b1c5f-duk-config-improvements.tar.xz
2015-12-14 15:47:44 +00:00
Daniel Silverstone
c92726d3aa Support (in a slightly dodgy way) the onload event 2015-11-22 16:53:04 +00:00
Daniel Silverstone
180a8f452e Add missing finaliser -- releases events properly 2015-11-22 16:52:10 +00:00
Daniel Silverstone
b42a910ed9 Ensure that those events listed in 8.1.5.2 as forwarded from body to window, don't get registered for listeners on body 2015-11-22 14:50:35 +00:00
Daniel Silverstone
9fe01f09c8 Replace duktape's default allocators. Realloc to zero is not guaranteed to free on all platforms 2015-11-22 14:36:24 +00:00
Daniel Silverstone
b41b672fe5 Hacky fix to prevent attribute fetch on document objects 2015-11-22 09:55:19 +00:00
Vincent Sanders
727bbbd216 Protect against attribute not being present 2015-11-09 19:35:41 +00:00
Vincent Sanders
718f17a57f Use automatically generated event handers on Document 2015-11-06 11:06:07 +00:00
Vincent Sanders
0397a6637d Use automatic generation for all HTMLElement event handler attributes 2015-11-05 23:58:16 +00:00
Vincent Sanders
b54174e54a Add CSS object model and DOM parsing IDL ready for implementation 2015-11-04 16:15:00 +00:00
Daniel Silverstone
336326af3a Try and prevent duktape from taking part in clang analysis 2015-11-01 11:53:48 +01:00
Daniel Silverstone
e3a5fcf816 Rudimentary Event object binding 2015-11-01 11:23:29 +01:00
Daniel Silverstone
1284731d1a Support generating event objects during events 2015-11-01 11:23:15 +01:00
Daniel Silverstone
c2d51384c1 Current target, not target, otherwise events are fired in the wrong place 2015-11-01 10:42:04 +01:00
Daniel Silverstone
6eb6208159 Log the phase for event debugging 2015-11-01 10:42:04 +01:00
Michael Drake
bfe3e6abbc Implement Element::hasAttribute(). 2015-11-01 09:28:15 +00:00
Michael Drake
ee5efa1349 Element::getAttribute() returns DOMString? which means NULL if none. 2015-11-01 09:17:04 +00:00
Michael Drake
f65ea4b096 Add Element::getAttribute() implementation. 2015-10-31 23:23:38 +00:00
Daniel Silverstone
0247bed13f Example getter/setter pair 2015-10-31 22:59:42 +01:00
Daniel Silverstone
39d967e94b Support for event getters 2015-10-31 22:59:42 +01:00
Daniel Silverstone
47794b32ff Restore volatility introduced in fd9aa16ece 2015-10-31 22:59:41 +01:00
Daniel Silverstone
43f29e4311 Expose a few more bits 2015-10-31 20:11:10 +01:00
Michael Drake
c22706b904 Update duktape to regexp-canonicalize-lookup branch.
- Add an optional 128kB lookup to optimize regexp canonicalization #411.
  https://github.com/svaarala/duktape/pull/411

This speeds up worst-case case-insensitive unicode regex handling.
2015-10-31 17:51:57 +00:00
Daniel Silverstone
4ca737408c Handle events 2015-10-31 18:01:38 +01:00
Daniel Silverstone
00eb6a8e88 Further work toward event handling 2015-10-31 18:01:38 +01:00
Daniel Silverstone
5a107a466b Initial work toward JS event support 2015-10-31 18:01:38 +01:00
Michael Drake
78067fc29a Log window.alert() messages. 2015-10-31 09:23:56 +00:00
Michael Drake
0fabb20cc5 Add support for Element::removeAttribute. 2015-10-29 16:51:57 +00:00
Michael Drake
9198e80c24 Remove space. 2015-10-29 14:27:21 +00:00