Vincent Sanders
9318e66449
add document.createElement
2012-11-09 10:52:55 +00:00
Chris Young
b0e43148b5
JSContext needs to be a pointer
2012-11-08 23:28:04 +00:00
Chris Young
2a63ce87bb
Spidermonkey 1.70 headers don't have JS_SET_RVAL
2012-11-08 20:09:40 +00:00
Vincent Sanders
85ede7192d
put correct type casts into constructor
2012-11-08 17:30:43 +00:00
Vincent Sanders
28ac5fe9c1
implement appendChild so wikipedia lcm script works
2012-11-08 17:22:29 +00:00
Vincent Sanders
9006a96119
setup spidermonky 1.7.0 compatability macros, derived from ole's macros
2012-11-08 01:02:14 +00:00
Vincent Sanders
bb42a650df
ensure JS_EvaluateScript has a variable to return its result
2012-11-08 00:45:30 +00:00
Vincent Sanders
06b08d3af0
make compatability macros for garbage collection
2012-11-08 00:40:21 +00:00
Vincent Sanders
882fd4f5c5
implement document.createTextNode operation
2012-11-07 19:55:42 +00:00
Vincent Sanders
ca24b238ed
add Text interface
2012-11-07 18:53:05 +00:00
Vincent Sanders
43fb761f45
add document.body, head and documentElement getters
...
add a dom utility file and use it
2012-11-07 18:53:05 +00:00
Vincent Sanders
b68f928cb2
fix JSAPI_CLASS_NO_INTERNAL_MEMBERS for 1.8.0 spidermonkey
2012-11-06 18:47:26 +00:00
Vincent Sanders
e0dc7d40ab
implement JSAPI_CLASS_NO_INTERNAL_MEMBERS correctly for differring versions of teh jsapi interface
2012-11-06 18:35:59 +00:00
Vincent Sanders
12f874cd92
separate javascript logging macro
2012-11-06 18:20:41 +00:00
Vincent Sanders
4bd5e23fff
ensure garbage collector knows about created objects
2012-11-06 18:20:41 +00:00
Vincent Sanders
478b57c5d7
working docuemnt.cookie
2012-11-04 16:37:51 +00:00
Vincent Sanders
8de9e19077
improve dom reference accounting
2012-11-04 11:20:02 +00:00
Vincent Sanders
3f1b683845
implement dom-getElementsByTagName and nodelist and htmlcollection
2012-11-03 21:37:06 +00:00
Vincent Sanders
85c973f986
add jsstring to jsval conversion macro that copes with null jsstrings
2012-11-03 17:37:59 +00:00
Vincent Sanders
45d508487a
add global api to window binding
2012-11-03 13:52:13 +00:00
Vincent Sanders
48cbca0399
move bindings into the correct place
2012-11-02 22:37:57 +00:00
Vincent Sanders
7cb3150573
improve example binding docuemntation
2012-11-02 13:30:30 +00:00
Vincent Sanders
b84dc91e3d
remove extraneous debug
2012-11-02 11:06:14 +00:00
Vincent Sanders
2b6bd44ef0
add location binding
2012-11-01 23:30:28 +00:00
Vincent Sanders
b34cbc5e83
remove old handmade binding code
2012-11-01 23:29:01 +00:00
Vincent Sanders
2b8cdf1f29
add HTMLElement interface binding
2012-11-01 21:13:14 +00:00
Vincent Sanders
5496a60431
console interface from IDL
2012-10-31 14:31:18 +00:00
Vincent Sanders
ede48d6074
add navigator interface
2012-10-31 01:22:35 +00:00
Vincent Sanders
79e557bbe8
Move WebIDL to be available for all binding types not just jsapi (spidermonkey)
...
Add conversion message display
2012-10-30 13:49:02 +00:00
Vincent Sanders
881daebce2
get minimal window property functionality working on window object
2012-10-29 23:46:07 +00:00
Vincent Sanders
ac286c4a95
add binding for window class
2012-10-29 20:10:39 +00:00
Vincent Sanders
b531318905
fix obtaining the "this" object
2012-10-28 15:37:55 +00:00
Vincent Sanders
ac5ade2f56
add include for bindings
2012-10-26 12:46:49 +01:00
Vincent Sanders
a9f5b2a504
Merge branch 'vince/nsgenbind' of git://git.netsurf-browser.org/netsurf into vince/nsgenbind
2012-10-26 12:41:27 +01:00
Vincent Sanders
99c54f1d9d
split class prototype initialisation from instantiation
2012-10-26 12:36:14 +01:00
Vincent Sanders
3ed0b09beb
use generated htmldocument binding
2012-10-25 11:17:33 +01:00
Vincent Sanders
6a300528fd
add initial binding files for nsgenbind
2012-10-25 11:17:33 +01:00
Vincent Sanders
ad10d63209
Initial webIDL files for core dom and html
2012-10-25 11:17:32 +01:00
Vincent Sanders
b866e3e172
use generated htmldocument binding
2012-10-24 19:00:24 +01:00
Vincent Sanders
f487b77f4f
add initial binding files for nsgenbind
2012-10-23 18:39:34 +01:00
Vincent Sanders
6de9eb4d62
Initial webIDL files for core dom and html
2012-10-23 16:45:41 +01:00
Michael Drake
3c4f4ca461
Alocate jsclass_document_priv size.
2012-10-05 15:06:32 +01:00
Vincent Sanders
c1671f37b1
reduce talloc usage to box tree layout only
2012-10-03 19:26:17 +01:00
Vincent Sanders
2f1ca751d6
make the "none" javascript implmentation specifically disable the scripting option
2012-10-02 13:34:03 +01:00
Vincent Sanders
792e888169
remove comment after checking correctness of sources
2012-08-22 16:59:33 +01:00
Vincent Sanders
22368db232
add js property (dom attribute) support to the document/element objects
2012-08-17 12:25:49 +01:00
Vincent Sanders
a3ef5c2c3c
fixup jsapi dom interface to include correct html/dom acessor hierachy
2012-08-15 18:48:46 +01:00
Vincent Sanders
ad5db89b49
Fix include and structure definition to stop compiler redefinition errors
2012-08-09 16:28:07 +01:00
Michael Drake
2eef2a2264
Add missing #include.
2012-08-08 21:49:31 +01:00
Vincent Sanders
0ace9f5e0b
extend javascript object hierarchy
2012-08-08 20:08:41 +01:00
Vincent Sanders
6205c62ba3
add non rfc 4329 javascript mimetypes to content handler
2012-08-06 17:33:03 +01:00
Vincent Sanders
135aae3921
add element object
2012-08-05 23:42:45 +01:00
Vincent Sanders
f5891097cc
Inital work on supporting getelementbyid
2012-08-05 11:44:43 +01:00
Vincent Sanders
6bbae1f228
add document IDL and test for geteleemntbyid
2012-08-01 19:25:45 +01:00
Vincent Sanders
c0aaf31f5a
fix global handling
2012-07-31 14:48:53 +01:00
Vincent Sanders
d7289f6701
remove parser binding layer
2012-07-13 17:37:22 -06:00
Vincent Sanders
c5a87d3ebb
do not try and write to document if the parser is finished
2012-07-07 00:29:47 +01:00
Vincent Sanders
752261c66c
Improve logging and inline script handling
2012-07-07 00:16:07 +01:00
Vincent Sanders
cc93afcfda
alter usage of libdom hubbub binding
2012-07-06 20:00:32 +01:00
Vincent Sanders
67648c621d
Implement navigator properties
...
Signed-Off-By: Vincent Sanders <vince@netsurf-browser.org>
2012-07-02 22:48:53 +01:00
Vincent Sanders
274a76d97a
Add initial navigator object creation.
...
Basic navigator object outline ready to add methods to.
The navigator object contains all the information about the browser
Signed-Off-By: Vincent Sanders <vince@netsurf-browser.org>
2012-07-02 22:48:41 +01:00
Vincent Sanders
a911ecaa48
Add compatability code to allow compilation with earlier Spidermonky versions
...
By using carefuly built macros we can make the spidermonkey binding
work on earlier editions of spidermonkey.
Some ideas taken from Chris Young and Ole
Signed-off-by: Vincent Sanders <vince@netsurf-browser.org>
2012-06-30 17:38:12 +01:00
Vincent Sanders
d5c900b5f1
fix mimetype handling of script elements
...
svn path=/trunk/netsurf/; revision=13993
2012-06-28 14:38:28 +00:00
Vincent Sanders
ac1dbe0354
fix missing default
...
svn path=/trunk/netsurf/; revision=13992
2012-06-28 09:30:56 +00:00
Vincent Sanders
1c15183fe3
correctly terminate properties list
...
add helper to convert strings
svn path=/trunk/netsurf/; revision=13991
2012-06-27 23:39:18 +00:00
Vincent Sanders
804bec4f99
make non js builds compile
...
make js support compile with older debian/ubuntu packaging
svn path=/trunk/netsurf/; revision=13990
2012-06-27 23:17:18 +00:00
Vincent Sanders
cfd26609bd
add window and self properties
...
svn path=/trunk/netsurf/; revision=13989
2012-06-27 18:16:45 +00:00
Vincent Sanders
638e135c60
correctly setup window object as global
...
svn path=/trunk/netsurf/; revision=13987
2012-06-26 18:55:57 +00:00
Vincent Sanders
3b5c782c16
ensure javascript content handler is initialised
...
svn path=/trunk/netsurf/; revision=13976
2012-06-19 23:21:15 +00:00
Vincent Sanders
8611281b2e
add content handler for javascript
...
svn path=/trunk/netsurf/; revision=13971
2012-06-19 22:57:29 +00:00
Vincent Sanders
49effe103a
restructure javascript binding layout to be more explicit
...
fix html content so it correctly loads all the script tags
svn path=/trunk/netsurf/; revision=13968
2012-06-19 09:35:51 +00:00
Vincent Sanders
9dc376bdec
use the correct version macro
...
svn path=/trunk/netsurf/; revision=13966
2012-06-16 12:06:47 +00:00
Vincent Sanders
a5f2a8cfba
Fix stupid braino missing include for non js case
...
svn path=/trunk/netsurf/; revision=13965
2012-06-13 18:02:46 +00:00
Vincent Sanders
0be03dea20
fix include for non javascript builds
...
svn path=/trunk/netsurf/; revision=13964
2012-06-13 17:57:16 +00:00
Vincent Sanders
4c89c9d5df
improve javascript support
...
svn path=/trunk/netsurf/; revision=13962
2012-06-10 22:17:30 +00:00