1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-12 00:34:47 -04:00
Commit Graph

2820 Commits

Author SHA1 Message Date
Witold Filipczyk
6e010d76ff DOM HTMLOptionsCollection: Reused HTMLCollection.
Note that the length property is read-only now.
2007-06-12 16:49:06 +02:00
Witold Filipczyk
46584fc5c0 DOM, HTMLCollection: Defined the namedItem method. 2007-06-12 16:39:44 +02:00
Witold Filipczyk
4df27a6700 DOM forms: register and unregister functions for FORM elements.
Elements like INPUT, TEXTAREA or SELECT look for the parent FORM
and register themselves to it. When those elements are freed they
unregister themselves.
2007-06-12 15:07:43 +02:00
Witold Filipczyk
c6274851b2 DOM, ecmascript: Argument of done functions changed to struct dom_node *.
node is needed by some unregister functions.
2007-06-12 14:37:31 +02:00
Witold Filipczyk
09db7aa8a0 DOM, ecmascript: Added some helper functions for handling forms.
Defined the item function of HTMLCollection.
2007-06-12 13:01:54 +02:00
Witold Filipczyk
829a953eb2 DOM: Added field ctx to the struct dom_node_list to easy get/set
the private data of an object.
2007-06-12 11:47:56 +02:00
Witold Filipczyk
a6eca1ae60 DOM: Export del_from_dom_node_list. 2007-06-12 11:44:58 +02:00
Kalle Olavi Niemitalo
2211994789 Check for gzclearerr in configure. Document needing zlib >= 1.2.0.2.
It was reported at elinks-dev on 2007-06-03 that Solaris 10 comes with
zlib 1.1.4, which does not include gzclearerr(), which ELinks nowadays
requires.  It would be possible to rewrite the decompression support
to use deflate() directly and avoid stdio, in which case gzclearerr()
would not be needed.  That will take some time however, so I'm not
attempting it for ELinks 0.12.0.  Instead, I'm just disabling gzip
decompression entirely if zlib is too old.
2007-06-11 20:55:50 +02:00
Witold Filipczyk
8b19aac004 DOM, ecmascript: In elements that have form property, this property points to
the node which contains that form.
2007-06-11 12:06:29 +02:00
Witold Filipczyk
9b23b1d013 DOM, ecmascript: Defined FIELDSET functions. 2007-06-11 11:33:21 +02:00
Witold Filipczyk
3f99ea9896 leds: Commented out redraw_terminal. The screen flickers with frames. 2007-06-10 21:54:33 +02:00
Witold Filipczyk
ba24e154e2 bug 955 continued: Do not call onsubmit for a BUTTON, either.
Added tricky code for calling submit() from onclick() of BUTTON.
2007-06-10 19:43:59 +02:00
Witold Filipczyk
820afbee0b bug 955: Do not call onsubmit for RESET. 2007-06-10 18:13:03 +02:00
Kalle Olavi Niemitalo
908499bb9e SEE compatibility in forms.namedItem.html. 2007-06-10 17:49:12 +02:00
Kalle Olavi Niemitalo
e8c8e65d66 SEE: Always use SEE_no_enumerator instead of NULL.
Although <see/object.h> of SEE 2.0.1131 has a comment saying that
SEE_objectclass.enumerator is optional and may be left NULL, SEE
crashes if one tries to enumerate the properties of an object created
from such a class.  Conveniently, it provides a suitable stub function.

http://www.adaptive-enterprises.com.au/bugs/show_bug.cgi?id=75
2007-06-10 17:49:05 +02:00
Kalle Olavi Niemitalo
04828f08b1 SMJS: Fix error "forms.namedItem is not a function".
Commit 63752c854b303f5f58636a512a137bf3702e051b on 2004-12-27
seems to have broken this.
2007-06-10 17:48:58 +02:00
Kalle Olavi Niemitalo
9a48c88229 NEWS: ELinks 0.10.0 and later are GPLv2 only. 2007-06-10 17:48:53 +02:00
Witold Filipczyk
7b26b1dffd DOM, ecmascript: Table with functions to make and done html objects. 2007-06-10 17:26:48 +02:00
Witold Filipczyk
446eec0bd3 http chunked: Better check for overflow. 2007-06-09 18:30:42 +02:00
Witold Filipczyk
a4140594f1 http chunked: avoid unsafe cases when chunks > 2GB.
This and previous commit were inspired by Jonas' mail on elinks-dev.
2007-06-09 17:26:15 +02:00
Witold Filipczyk
eb1fe8ee5a http: use off_t for the chunk size. 2007-06-09 11:40:13 +02:00
Witold Filipczyk
9fb5595948 http: used off_t instead of int.
The progress of files bigger than 2GB is shown properly.
2007-06-07 16:16:53 +02:00
Witold Filipczyk
039a01f6d4 Polish translation was updated. 2007-06-07 12:39:55 +02:00
Witold Filipczyk
096ba3068e DOM, ecmascript: Defined done_ functions. They will be called
from done_dom_node.
2007-06-06 12:16:27 +02:00
Witold Filipczyk
4f68b1af47 DOM, ecmascript: Added functions for creation SpiderMonkey's objects. 2007-06-05 22:18:11 +02:00
Witold Filipczyk
7a55be295c DOM ecmascript: data types conformable with the DOM2-HTML recomendation. 2007-06-05 12:47:56 +02:00
Kalle Olavi Niemitalo
ec32eeb1d3 SMJS: Correct sense of JS_ValueToInt32 return value test.
I made this bug in commit b53525e98e.
2007-05-31 16:48:46 +02:00
Laurent MONIN
5405f08a05 French translation was updated. 2007-05-28 19:41:09 +02:00
Witold Filipczyk
4869c187fc Revert "French translation was updated: make --help output cleaner."
This reverts commit cc0dcc134b.
2007-05-28 19:41:01 +02:00
Witold Filipczyk
c2def18e6b Revert "Minor fix in french translation."
This reverts commit 9a1ba01947.
2007-05-28 19:39:03 +02:00
Witold Filipczyk
2489ea4797 Revert "French translation was updated."
This reverts commit 81ae381d6a.
2007-05-28 19:38:03 +02:00
Jonas Fonseca
bd2503e81b Remove unused add handler in the option_type_info struct 2007-05-28 19:34:59 +02:00
Kalle Olavi Niemitalo
275b50bc90 NEWS: The remaining ECMAScript bugs don't crash ELinks. 2007-05-28 19:33:50 +02:00
Kalle Olavi Niemitalo
ea8f4b755d SEE: Define the synthetic argv as an array.
This does not change the behaviour but perhaps makes the code clearer.
2007-05-27 21:04:36 +02:00
Kalle Olavi Niemitalo
809fa053b6 NEWS: Bug 755 was fixed. 2007-05-27 20:52:54 +02:00
Kalle Olavi Niemitalo
dafba56f7e SMJS: Assert that form_number of input_class is in range. 2007-05-27 20:52:48 +02:00
Kalle Olavi Niemitalo
62257c20af SEE: Assert that js_input.form_number is in range. 2007-05-27 20:52:41 +02:00
Kalle Olavi Niemitalo
5e0b86309c SMJS: comment changes 2007-05-27 20:50:29 +02:00
Kalle Olavi Niemitalo
09d0e88878 SMJS: Use JS_GetInstancePrivate where applicable.
This is a further precaution against reading a pointer from the wrong
type of object.  All of the JS_GetPrivate calls were already protected
with JS_InstanceOf checks if assertions are enabled, and many of them
also if assertions are not enabled.
2007-05-27 20:50:20 +02:00
Kalle Olavi Niemitalo
0417d84e74 SMJS: Check return values of JS_ValueToInt32. 2007-05-27 20:50:12 +02:00
Kalle Olavi Niemitalo
0d39a215c3 NEWS: Bug 951 now has a number.
I trust Miciah will change the "their" to "them" if appropriate.
2007-05-27 18:30:58 +02:00
Kalle Olavi Niemitalo
ff9fd492da NEWS: Compilation under gcc 4.x was fixed already in 0.11.3. 2007-05-27 09:59:45 +02:00
Kalle Olavi Niemitalo
7fbf64ec9d NEWS: remove what seems to be a duplicate of bug 950 2007-05-27 09:59:40 +02:00
Kalle Olavi Niemitalo
3f4846add0 Compare screen_driver.name with strcmp, not memcmp.
screen_driver_change_hook was comparing only strlen(name) characters
and ignoring the '\0'.  To reproduce the bug in ELinks 0.11.3 and
ELinks 0.12.GIT:

- Run TERM=screen elinks.
- In another terminal, run TERM=scr elinks.  Quit this slave ELinks.
- Open the terminal options dialog and set 16 colors.
- Open the option manager and change the terminal.scr.colors option to
  1 and back to 0.
- Note that ELinks no longer displays colors.

That bug could be fixed just by using len+1 instead of len.  However,
there is also another bug: memcmp may compare the specified number of
bytes, even if some of the earlier ones differ; thus, it could in
principle read past the end of the malloc block and thereby crash
ELinks.  Using strcmp may be a little slower but I do not believe it
could become a bottleneck.
2007-05-27 09:59:35 +02:00
Jonas Fonseca
6d14d95386 Simplify TESTDEPS maintainance by adding common objects in Makefile.lib 2007-05-26 20:21:15 +02:00
Jonas Fonseca
447fd16ae0 Fix 'make test' dependency when building test utility programs
Problems was caused by undefined symbols:

	src/util/conv.c:308: undefined reference to `is_cp_utf8'
	src/util/conv.c:320: undefined reference to `cp2u'
2007-05-26 20:21:09 +02:00
Jonas Fonseca
bd0e3a5bc1 DOM test: add test/ to SUBDIRS so DOM test is run for 'make test' 2007-05-26 20:21:03 +02:00
Jonas Fonseca
c192551773 DOM test: make die() in sgml-parser static 2007-05-26 20:20:58 +02:00
Jonas Fonseca
ee8a3fe651 DOM test: refactor options parsing in sgml-parser
Introduce get_opt() to do the tedious work of getting the right
argument for options expecting them and handles both '--opt=arg'
and '--opt arg'. As a side effect it also removes an unneeded
assignment of the source string for stdin.
2007-05-26 20:20:51 +02:00
Witold Filipczyk
c8d345aa12 Revert "make test: Fixed."
This reverts commit 4142f3c80a.
2007-05-26 20:18:39 +02:00