1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-10-02 03:46:21 -04:00
Commit Graph

2859 Commits

Author SHA1 Message Date
Witold Filipczyk
1db5affa6d DOM Ecmascript: Compilation fix when compiled --with-see. 2007-07-01 12:54:05 +02:00
Witold Filipczyk
81bef35b02 configure.in: Do not check for SEE without --enable-see.
Use #error instead of choke_on_see(), because choke_on_see could
be defined by some library (very unlikely).
2007-07-01 12:49:11 +02:00
Witold Filipczyk
a033323639 configure: Check for see-2.0 or later. 2007-06-30 18:42:27 +02:00
Kalle Olavi Niemitalo
cb4b6bc0ac Bug 755: Document that SpiderMonkey 1.5 RC3 no longer works.
The SpiderMonkey support in ELinks now uses JS_GetReservedSlot,
which was added in SpiderMonkey 1.5 RC3a, released on 2001-05-11.
So ELinks no longer supports earlier versions of SpiderMonkey.
However, be careful not to claim that ELinks needs "SpiderMonkey
1.5 RC3a or later", because we haven't tested 1.5 RC3a.
(I guess we didn't test zlib 1.2.0.2 either... oh, well.)
2007-06-29 18:24:02 +02:00
Witold Filipczyk
6d2f111a11 Bug 755: Check for JS_GetReservedSlot in configure.in
I'm not sure if JS_GetReservedSlot exists in all versions of the SpiderMonkey.
IMHO the configure script should check for JS_GetReservedSlot.
The patch in the attachment.
2007-06-29 18:23:56 +02:00
Witold Filipczyk
f0c720c19b DOM ecmascript: Defined getElementById. 2007-06-29 17:37:33 +02:00
Witold Filipczyk
fc8c5fa024 DOM ecmascript: register/unregister anchors, applets, forms, images and links. 2007-06-28 15:25:45 +02:00
Witold Filipczyk
6efff6f21d DOM ecmascript: Defined properties of HTMLDocument. 2007-06-28 14:47:35 +02:00
Witold Filipczyk
6949b91db1 DOM ecmascript: moved the ecmascript_ctx to the struct dom_node.
JSContext is accessible from every node.
2007-06-28 14:17:17 +02:00
Kalle Olavi Niemitalo
4c81e5e1c8 Bug 755: Save the form_state index in a reserved slot, not as private data.
The previous code cast the integer (long actually) to void * and gave
that to JS_SetPrivate.  This did not work because JS_SetPrivate
expects pointers to be aligned and replaces the least significant bit
with a tag.  By using JS_SetReservedSlot instead, we get control of
the jsval conversions and can store the integer properly.
2007-06-25 18:42:05 +02:00
Kalle Olavi Niemitalo
6308bcd919 NEWS: temporarily mention bug 920 2007-06-24 11:59:37 +02:00
Kalle Olavi Niemitalo
af2f6e995a Bug 920, move_download: Sort the queue before calling cancel_download. 2007-06-24 11:59:30 +02:00
Kalle Olavi Niemitalo
712ffb13ee Change connection.pri[] to int, reverting part of 7215c964e4.
Revert part of commit 7215c964e40afe953787d7831b04182fbaba4662,
"Use real types (enum connection_{state,priority})." of 2005-06-14.

connection.pri[] is indexed by enum connection_priority, but its
elements are merely reference counts; they are never assigned from
or compared to enum connection_priority.  Defining the elements
as int will result in more readable output from GDB.

Noted in bug 920.
2007-06-24 11:59:24 +02:00
Witold Filipczyk
7101479366 DOM, ecmascript: Export jsrt. It will be used by DOM.
Nothing special else. I have no inspiration to do more.
2007-06-24 11:48:28 +02:00
Kalle Olavi Niemitalo
0668b4fd5c NEWS: mention bug 957, in the commented-out part 2007-06-23 19:20:32 +02:00
Kalle Olavi Niemitalo
16909ddddd Regenerated manpages.
In doc/man/man1/elinks.1.in, only the date had changed, so I'm
omitting that file from this commit.
2007-06-22 18:34:07 +02:00
Kalle Olavi Niemitalo
a6ca579b9e elinkskeys.5: Revert 8f030fcb63, which ESR did not review.
Revert 8f030fcb63, "Hack elinkskeys.5
with sed some more, to please ESR."  I asked ESR on 2007-01-06 and
2007-06-09 whether the changes were OK, but he never answered.  So I'm
reverting the changes until someone with troff knowledge reviews them.
2007-06-22 18:33:27 +02:00
Kalle Olavi Niemitalo
9a5a2ecc34 Bug 957: Assert that the ECMAScript interpreter is not running.
Add ecmascript_interpreter.backend_nesting, increment it when
beginning to evaluate an expression, and decrement it when evaluation
finishes.  Then assert that it is zero in ecmascript_put_interpreter.
This detects bug 957 and similar ones before they corrupt memory.
2007-06-22 18:31:36 +02:00
Kalle Olavi Niemitalo
ddcf329fa8 Link to gitweb at repo.or.cz, rather than pasky.or.cz.
The history converted from CVS is not in repo.or.cz though, so keep
referring to pasky.or.cz for that.  (We don't seem to use
"gitweb.elinks.cz", which is a DNS alias for pasky.or.cz.)

<paakku> Do you think we should maybe point people to gitweb at
    repo.or.cz rather than pasky.or.cz?
<pasky> absolutely
<pasky> actually I thought we already are pointing people at
    repo.or.cz
<pasky> at least there was some movement to do that already, I believe
    :)
2007-06-22 18:30:30 +02:00
Witold Filipczyk
52ebd40f32 contrib: Tool for view pages offline.
This tool is intended for developers to make debugging ELinks more fun.
2007-06-21 14:01:47 +02:00
Witold Filipczyk
a895696ca8 bug 957 fixed. 2007-06-21 10:31:12 +02:00
Witold Filipczyk
f9c2e832b0 date file,ftp: added forgotten spaces. 2007-06-19 09:28:50 +02:00
Witold Filipczyk
a3f45e7ff3 ftp, date: The same trick as for files. 2007-06-18 20:15:05 +02:00
Witold Filipczyk
ea4c09efd4 date: added the width for the month field to the date format.
Since glibc-2.6 Polish locale uses Roman numbers for months in dates.
VIII is 4 bytes long, so %4b. Without this directory listings look ugly.
It adds one space per line in the C locale. IMHO it is not a big problem.
2007-06-18 20:01:08 +02:00
Kalle Olavi Niemitalo
0031fb4e0d NEWS: sync with 0.11.3.GIT and update 2007-06-17 21:11:26 +02:00
Kalle Olavi Niemitalo
cb1658f399 URI: Inline check_uri_file.
And reorder the characters in the string given to strcspn(), to match
their expected order in the URI.  This is also how strcspn() is called
elsewhere in uri.c.
2007-06-17 21:11:20 +02:00
Witold Filipczyk
b2b4e67e0d DOM, ecmascript: removed superflous assignments. 2007-06-16 18:45:54 +02:00
Witold Filipczyk
b28eeb8a38 http-equiv: Do not parse more than one http-equiv="Content-Type".
Other browsers use only the first occurence of http-equiv="Content-Type".
ELinks parsed all and used the last one for the charset.
Noticed at http://gazetaolsztynska.wm.pl/ .
2007-06-15 21:10:19 +02:00
Witold Filipczyk
123e3c9ad7 test, CGI: added a simple form to test CGI. 2007-06-15 14:39:24 +02:00
Witold Filipczyk
58570dfe3b cdplayer: Simplification. 2007-06-14 17:10:47 +02:00
Witold Filipczyk
5f99ad9f88 contrib: cdplayer 2007-06-14 13:54:05 +02:00
Witold Filipczyk
cd1ebf97b7 URI file: Fixed. CGI scripts work, URI fragments work too. 2007-06-14 08:02:29 +02:00
Witold Filipczyk
1629c572b7 uri, file: Commented out broken code.
CGI scripts using GET method didn't work.
2007-06-13 23:05:56 +02:00
Witold Filipczyk
3923a8c4fc DOM: Moved invocation of done_ecmascript_obj to the done_dom_node_data. 2007-06-13 12:24:00 +02:00
Witold Filipczyk
fd1dcfd781 DOM TR,TD: register/unregister cell. 2007-06-13 11:57:29 +02:00
Witold Filipczyk
f00433f233 DOM TR: register/unregister row. 2007-06-13 11:34:45 +02:00
Witold Filipczyk
0702ea97bd DOM TABLE: Redefined register_row and unregister_row. Small fixes. 2007-06-13 11:30:07 +02:00
Witold Filipczyk
c44db5b943 DOM, TableSection: Defined some properties. 2007-06-12 22:34:51 +02:00
Witold Filipczyk
3545c7225f DOM, SELECT: The type of the options property is struct dom_node *. 2007-06-12 18:42:39 +02:00
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