Commit Graph

306 Commits

Author SHA1 Message Date
Daniel Silverstone
79068dd50f Support pushing NULL nodes, by pushing a JS 'null' object instead 2015-10-21 18:32:40 +02:00
Daniel Silverstone
629287c224 Revert "allow for libdom node calls which return NULL to indicate no node."
This reverts commit 37ea372a10.
2015-10-21 18:30:42 +02:00
Daniel Silverstone
0ddb60d82a Revert "The node acessors should return javacript null not an error"
This reverts commit 0645bc7570.
2015-10-21 18:30:36 +02:00
Vincent Sanders
0645bc7570 The node acessors should return javacript null not an error 2015-10-20 22:49:41 +01:00
Vincent Sanders
37ea372a10 allow for libdom node calls which return NULL to indicate no node. 2015-10-20 22:36:42 +01:00
Vincent Sanders
6d0d964cac Implement Document::documentElement binding 2015-10-18 11:06:41 +01:00
Vincent Sanders
eb17f4ab37 Implement basic browsing context name property 2015-10-18 10:53:49 +01:00
Vincent Sanders
9409bc2ad7 add automaticaly generated property setter and getters to HTMLTitleElement 2015-10-14 15:54:22 +01:00
Vincent Sanders
9666888f0c add automaticaly generated property setter and getters to HTMLTextAreaElement 2015-10-14 15:48:35 +01:00
Vincent Sanders
c7ca9ae819 add automaticaly generated property setter and getters to HTMLTableSectionElement 2015-10-14 15:39:45 +01:00
Vincent Sanders
f624e9f272 add automaticaly generated property setter and getters to HTMLTableRowElement 2015-10-14 15:36:43 +01:00
Vincent Sanders
3e6feede1f add automaticaly generated property setter and getters to HTMLTableElement 2015-10-14 15:15:42 +01:00
Vincent Sanders
0805bf2cd6 add automaticaly generated property setter and getters to HTMLTableColElement 2015-10-14 15:09:16 +01:00
Vincent Sanders
0d4105907d add automaticaly generated property setter and getters to HTMLTableCellElement 2015-10-14 14:46:31 +01:00
Vincent Sanders
47fb74ee88 add automaticaly generated property setter and getters to HTMLTableCaptionElement 2015-10-14 14:22:56 +01:00
Vincent Sanders
3bcc9922ee add automaticaly generated property setter and getters to HTMLStyleElement 2015-10-14 14:17:30 +01:00
Vincent Sanders
d676b64bec add automaticaly generated property setter and getters to HTMLSelectElement 2015-10-14 13:28:19 +01:00
Vincent Sanders
c1937ee617 add automaticaly generated property setter and getters to HTMLScriptElement 2015-10-14 13:20:28 +01:00
Vincent Sanders
4f843d3b6f add automaticaly generated property setter and getters to HTMLQuoteElement 2015-10-14 12:51:35 +01:00
Vincent Sanders
02fb81009e add automaticaly generated property setter and getters to HTMLParamhElement 2015-10-14 09:21:26 +01:00
Vincent Sanders
b516854d0a add automaticaly generated property setter and getters to HTMLParagraphElement 2015-10-14 09:15:59 +01:00
Vincent Sanders
2b71eef763 add automaticaly generated property setter and getters to HTMLOptionElement 2015-10-14 09:09:41 +01:00
Vincent Sanders
079667ee6c add automaticaly generated property setter and getters to HTMLObjectElement 2015-10-13 23:36:01 +01:00
Vincent Sanders
2f129cdef7 add automaticaly generated property setter and getters to HTMLMenuElement 2015-10-13 23:31:52 +01:00
Vincent Sanders
b667375dcc add automaticaly generated property setter and getters to HTMLMetaElement 2015-10-13 23:28:35 +01:00
Vincent Sanders
94a740c7c1 split out html marquee element support
libdom does not support this element at all so there are currently no
automatic implementations defined.
2015-10-13 23:24:37 +01:00
Vincent Sanders
d57dec2454 add automaticaly generated property setter and getters to HTMLMapElement 2015-10-13 23:20:50 +01:00
Vincent Sanders
5fdf040e90 add automaticaly generated property setter and getters to HTMLLinkElement 2015-10-13 23:17:05 +01:00
Vincent Sanders
4fa4786035 add automaticaly generated property setter and getters to HTMLLIElement 2015-10-13 22:23:22 +01:00
Vincent Sanders
71849b0c04 add automaticaly generated property setter and getters to HTMLLegendElement 2015-10-13 21:26:23 +01:00
Vincent Sanders
444721354e add automaticaly generated property setter and getters to HTMLLabelElement 2015-10-13 21:00:02 +01:00
Vincent Sanders
2f68549812 add automaticaly generated property setter and getters to HTMLInputElement 2015-10-13 20:54:54 +01:00
Vincent Sanders
e1769827fc add automaticaly generated property setter and getters to HTMLImageElement 2015-10-13 20:41:10 +01:00
Vincent Sanders
b54bf459a5 add automaticaly generated property setter and getters to HTMLIFrameElement 2015-10-13 16:24:22 +01:00
Vincent Sanders
450cefbd49 add automaticaly generated property setter and getters to HTMLHtmlElement 2015-10-13 10:37:12 +01:00
Vincent Sanders
c39096c30d add automaticaly generated property setter and getters to HTMLHeadingElement 2015-10-13 09:57:35 +01:00
Vincent Sanders
5263712ad4 add automaticaly generated property setter and getters to HTMLFrameSetElement 2015-10-13 09:27:06 +01:00
Vincent Sanders
d01cecdf7f add automaticaly generated property setter and getters to HTMLFrameElement 2015-10-13 09:22:46 +01:00
Vincent Sanders
7b6d89db04 Introduce a binding flags to allow local config changes 2015-10-12 20:33:11 +01:00
Vincent Sanders
f3e0267ccd turn full debugging off again 2015-10-12 20:25:54 +01:00
Michael Drake
b8ea788aba Ensure the cause of the problem is logged when an htmlc has no parser. 2015-10-12 19:51:13 +01:00
Vincent Sanders
ce32141057 Split up javascript engine makefiles
by splitting javascript engine specific makefiles and source up we
avoid having to consider old JSAPI or none code while working on
duktape.
2015-10-12 17:40:35 +01:00
Vincent Sanders
3877d4ad03 add automaticaly generated property setter and getters to HTMLFormElement 2015-10-12 13:29:40 +01:00
Vincent Sanders
967cfda0f8 add automaticaly generated property setter and getters to HTMLFontElement 2015-10-12 09:18:04 +01:00
Vincent Sanders
0d4942d42c add automaticaly generated property setter and getters to HTMLElement 2015-10-12 09:10:03 +01:00
Dave Higton
9443f201fe fix null dereference in document.writeln
The fix recently applied to document.write() also needs to be applied
to document.writeln()  This prevents a null pointer dereference.
2015-10-10 11:14:54 +01:00
Vincent Sanders
0636ee0f20 Add automaticaly generated property setter and getters to HTMLBodyElement 2015-10-10 11:08:48 +01:00
Vincent Sanders
9f925da516 Add automaticaly generated property setter and getters to HTMLBaseElement 2015-10-10 10:28:10 +01:00
Vincent Sanders
5a569322a4 Add automaticaly generated property setter and getters to HTMLAreaElement 2015-10-09 15:03:25 +01:00
Vincent Sanders
c7275edc26 Add automaticaly generated property setter and getters to HTMLAppletElement 2015-10-09 14:54:26 +01:00
Vincent Sanders
7c4fa72fa4 Add automaticaly generated property setter and getters to HTMLAnchorElement 2015-10-09 14:40:14 +01:00
Vincent Sanders
b72f750748 implement cookie reading in js document binding 2015-10-09 12:54:40 +01:00
Vincent Sanders
f34a223b9a Implement user agent reporting 2015-10-09 12:54:00 +01:00
Vincent Sanders
a897d87d18 use the duckky_instanceof from the bindings
The bindings provide a generated duckky_instanceof function, this
changes to using that implementation.
2015-10-09 10:16:17 +01:00
Vincent Sanders
b9a23939b2 Add some HTML Element specialisations for HR and BR
These specialisations make use of the new nsgenbind feature of
generated property accessors.
2015-10-08 16:20:18 +01:00
Vincent Sanders
6fd2c320f2 Turn off excessive debugging in javascript 2015-10-07 21:06:17 +01:00
Vincent Sanders
b5f1c5eee2 complete binding for HTML BR element 2015-10-07 14:45:57 +01:00
Vincent Sanders
315339cbc8 Add a brief explanation of whats in the unimplemented documentation 2015-10-07 10:28:01 +01:00
Vincent Sanders
d0371d5d3b Add documentation showing unimplemented javascript bindings 2015-10-07 09:18:14 +01:00
Vincent Sanders
a46d9057d8 Update html IDL to current spec 2015-10-05 21:54:44 +01:00
Vincent Sanders
6a4a7d7c25 report error getting user data in document.write 2015-10-05 21:53:43 +01:00
Vincent Sanders
fbc3f36fb5 initial js navigator binding 2015-10-05 15:46:22 +01:00
Dave Higton
33264e012b Makes the Javascript document.writeln() function work as well as write() 2015-10-01 12:38:39 +01:00
Vincent Sanders
4bdd4cf7b6 Update bindings to cope with improved nsgenbind syntax 2015-09-28 08:57:45 +01:00
Michael Drake
51c2dd70e2 Add assert before we wander off into the weeds.
Visiting slashdot we get a document write with a node that has no
html content user data.
2015-09-26 12:53:43 +01:00
Vincent Sanders
46945f6362 Improve location implementation to be more complete 2015-09-20 10:35:32 +01:00
Vincent Sanders
63dba3a061 expose the location object through document as well as window 2015-09-10 08:51:56 +01:00
Daniel Silverstone
73c6476112 Fix instanceof to be correct and improve documentation of stack contents 2015-09-09 14:00:37 +01:00
Vincent Sanders
1a43dd21b3 Add initial readonly location implementation 2015-09-07 13:53:59 +01:00
John-Mark Bell
fd9aa16ece JS: mark idx_func volatile to remove warning 2015-08-15 10:03:39 +00:00
John-Mark Bell
a7fb19f3a9 JS: use deep stack, regardless of platform.
Without enabling this, the compiler recursion limit will be hit
when parsing most non-trivial JS libraries.
2015-08-15 10:00:35 +00:00
Daniel Silverstone
a76de90a2e Final (untested) bits of Node 2015-08-14 16:09:28 +02:00
Daniel Silverstone
e46a705b0f More (untested) Node stuff 2015-08-14 15:34:00 +02:00
Vincent Sanders
dc7f0dce9f expose Math operations to javascript code 2015-08-13 23:05:02 +01:00
Michael Drake
4c975aafa3 Fix typo in unused jsapi code. 2015-08-13 14:30:28 +01:00
Michael Drake
16fd36eb9d Proper error handling for JS context creation. 2015-08-13 12:23:59 +01:00
Michael Drake
526b0e3bb4 Add assertion that jscontext is non-NULL when making new compartment. 2015-08-13 09:26:50 +01:00
Daniel Silverstone
ecc6a12ed6 Slight tidying of error report 2015-08-12 15:56:01 +02:00
Daniel Silverstone
1ee30e7632 Log more of the JS error object 2015-08-12 15:39:34 +02:00
Daniel Silverstone
e331784ea3 Expose Array, Date and RegExp on Window 2015-08-12 15:19:57 +02:00
Daniel Silverstone
3a6da36fc9 Add missing node unref 2015-08-12 12:27:18 +02:00
Daniel Silverstone
c47db23f8f Attempt to prevent use of STRPTIME or GETDATE on platforms where we know it is broken 2015-08-12 10:43:34 +02:00
Daniel Silverstone
b4d26fd160 Take tip of the fix-cast-align-warnings branch from Sami to see if it helps 2015-08-12 08:40:35 +02:00
Michael Drake
9354adacdb Fix: warning: pointer targets ... differ in signedness [-Wpointer-sign] 2015-08-11 20:44:52 +01:00
Daniel Silverstone
ab79f0a9c5 document.write shoud stringify all args 2015-08-11 19:39:31 +02:00
Vincent Sanders
c1d5bbe7df add urlutils IDL to netsurf binding 2015-08-11 14:36:43 +01:00
Daniel Silverstone
a590117246 Element::getElementsByTagName() 2015-08-11 15:13:14 +02:00
Daniel Silverstone
73fbaf6fb1 Add support for a lot of Node's interface 2015-08-11 14:45:59 +02:00
Daniel Silverstone
1af1ab1c3c Add a variant of dukky_instanceof which can take an index 2015-08-11 14:45:59 +02:00
Vincent Sanders
45ced343af Add urlutils IDL 2015-08-11 12:14:18 +01:00
Daniel Silverstone
d4f487acf1 Basic Console support 2015-08-10 20:09:58 +02:00
Daniel Silverstone
0df3439eb2 Fix constructor injection to use new constructor type, add test 2015-08-09 18:54:37 +01:00
Daniel Silverstone
3d7de6cf8d Fix window.window 2015-08-09 16:20:09 +01:00
Daniel Silverstone
da77e9c91c Avoid strptime on platforms where NetSurf knows we don't have a good one 2015-08-09 14:51:22 +01:00
Chris Young
8d4c4b9179 Support PowerPC 2015-08-09 14:07:38 +01:00
Daniel Silverstone
d6a0f3fef0 Fix copyright header on dukky.h 2015-08-09 12:28:44 +01:00
Daniel Silverstone
061472e520 Support duktape and WebIDL 2015-08-09 12:27:13 +01:00
Daniel Silverstone
aadb820089 Add duktape bindings 2015-08-09 12:26:41 +01:00
Daniel Silverstone
37b118d966 Add duktape binding support code 2015-08-09 12:26:28 +01:00
Daniel Silverstone
ad82c49a80 Add duktape 1.2.3 release ready for use 2015-08-09 12:26:11 +01:00