Jonas Fonseca
ea675cbb6e
DOM: Fix get_dom_node_map_index() so it returns the correct ordered index
...
This was cause by the recent change to allocate string during incremental
parsing where the node string was set after insertion. Test for this in the
works.
Fixes: b6b6d3c67e
2006-01-30 06:02:02 +01:00
Jonas Fonseca
f268d0c495
DOM: Add missing config.h #include
2006-01-30 05:55:35 +01:00
Jonas Fonseca
ba2b6e633a
DIRLIST:Use directory listing initializer in the Gopher protocol module
2006-01-30 02:41:09 +01:00
Jonas Fonseca
94f4b2fd1d
DIRLIST: Cleanup macros used in the FTP directory listing
2006-01-30 01:29:40 +01:00
Jonas Fonseca
d8ef7e1b68
DIRLIST: Use directory listing initializer in the FSP protocol module
2006-01-30 01:25:39 +01:00
Jonas Fonseca
b567f6a5db
DIRLIST: Use directory listing initializer in the FTP protocol module
2006-01-30 01:25:30 +01:00
Jonas Fonseca
c96cb0bbae
DIRLIST: Use directory listing initializer in the file protocol module
2006-01-30 01:25:18 +01:00
Jonas Fonseca
865af9ac4a
DIRLIST: Add helper to at start of (HTML) directory listing
2006-01-30 01:22:31 +01:00
Jonas Fonseca
7d1ff4fbf1
Only add ending slash to directory URLs
...
Not even to directory names. We don't do that for file: or ftp: protocol.
Fixes: af2cc87054
2006-01-29 18:35:59 +01:00
Laurent MONIN
cf429c4ecc
FSP: trim trailing whitespaces.
2006-01-29 18:01:48 +01:00
Laurent MONIN
af2cc87054
FSP: display_entry() cleanup, and mark directories by an ending /
...
in lists.
2006-01-29 18:01:22 +01:00
Laurent MONIN
0c4bc5a362
FSP: reduce code redundancy, introducing display_entry().
2006-01-29 17:53:26 +01:00
Laurent MONIN
d07cf588bd
FSP: reduce code redundancy.
2006-01-29 17:48:09 +01:00
5511c5b748
Merge with git+ssh://pasky.or.cz/srv/git/elinks.git
2006-01-29 16:51:11 +01:00
5c607c1ce8
Check for python
2006-01-29 16:48:33 +01:00
87e27b9b3e
goto_url_hook takes 2 params not 1. Some dumbprefixes defined in hooks.py
2006-01-29 14:58:03 +01:00
Jonas Fonseca
a236608554
Do not set the content type for FSP files
...
Simplify commit 8d4f44f2f1
, in particular
detecting MIME types for files. It is more consistent to do it the way
it was already done by the session/download code.
Instead, write a NUL byte to stderr when getting FSP files and only set
cache->content_type when the header string is non-empty.
Additionally it also moves close(stderr) after the fsp_error() in the
file handling part of do_fsp() so the error message is shown with the
correct type.
2006-01-29 14:27:14 +01:00
46aae704eb
Added slash to base href when directory didn't end with '/'
2006-01-29 13:22:05 +01:00
Jonas Fonseca
0cb0d0aaae
Add Eric Wald to authors
2006-01-29 12:59:48 +01:00
8cc828bf7c
Compilation fix
2006-01-29 12:28:05 +01:00
Jonas Fonseca
9fe0608bd2
DOM: Fix checking of out-of-bound access to scanned strings
2006-01-29 12:12:41 +01:00
Jonas Fonseca
ca5a5f230a
Make render_dom_node_source static
2006-01-29 12:11:35 +01:00
Jonas Fonseca
2e3e18595f
Normalize all links added by the plain renderer
...
Fixes problems with host or protocol parts not being lowercased. This
triggers an assertion failure when trying to download such links. Reported
by lindi-.
2006-01-29 09:04:52 +01:00
Jonas Fonseca
2918e3f595
DOM: Add STATIC_DOM_STRING macro and make INIT_DOM_STRING cleaner
2006-01-28 22:55:15 +01:00
Jonas Fonseca
58b8635caf
DOM: Add test to check that '\f' (form feed) counts as a newline
2006-01-28 22:51:52 +01:00
cb6a63f09e
Translation fixes
2006-01-28 22:06:10 +01:00
c518a9f06a
Compilation fix when --without-openssl was used
2006-01-28 22:03:46 +01:00
Miciah Dashiel Butler Masters
be07858b2b
Refactor the document.write routines
...
Factor js_document_write_do out of js_document_write and
js_document_writeln and document_write_do out of document_write and
document_write_ln.
2006-01-28 20:39:07 +00:00
Miciah Dashiel Butler Masters
5bcb1309da
Use enum connection_state
...
Use enum connection_state instead of int in load_uri,
proxy_uri, get_proxy_worker, and get_proxy_uri. See commit
d18809522e
. I hope that satisfies TCC.
2006-01-28 20:21:09 +00:00
669d4af154
Compilation fixes
2006-01-28 20:54:11 +01:00
645689f1aa
I have no idea why it is still crashing. This is last attempt
...
today to fix it
2006-01-28 19:57:40 +01:00
Jonas Fonseca
20f5b76bb2
ECMASCRIPT: Fix unused SEE specific variables when using spidermonkey
2006-01-28 18:26:45 +01:00
de468660f1
Merge with git+ssh://pasky.or.cz/srv/git/elinks.git
2006-01-28 17:20:22 +01:00
71871edd43
Maybe this time it won't crash
2006-01-28 17:08:45 +01:00
Jonas Fonseca
c223f6ce94
Sed the expected output instead of the output from sgml-parser
2006-01-28 15:12:49 +01:00
Jonas Fonseca
03c467bcbf
Move URI normalization to the test library
2006-01-28 15:03:19 +01:00
7c7541f4d1
parent, self and top are the same since now
2006-01-28 14:15:55 +01:00
52d3a6411d
Sort links when necessary
2006-01-28 14:13:41 +01:00
dacb694e33
Merge with git+ssh://pasky.or.cz/srv/git/elinks.git
2006-01-28 12:11:29 +01:00
997f61bb32
Use document_view instead of view_state. It is safer probably
2006-01-28 12:07:00 +01:00
9cc9db4e24
Handling onsubmit
2006-01-28 11:17:22 +01:00
6e4c80a29e
Avoid memleak
2006-01-28 08:37:58 +01:00
Jonas Fonseca
6a592b073c
BUILD: Do not create .vimrc files
...
They are considered insecure, use the newly added ftplugin instead. This
also removes the config/vimrc master file.
2006-01-28 05:25:02 +01:00
Eric Wald
c6ba201e0c
CONTRIB: Add ftplugin for setting Vim to the ELinks coding style
...
This will replace the .vimrc infrastructure currently used, which is
considered insecure.
2006-01-28 05:21:45 +01:00
Jonas Fonseca
99067f0497
Merge with git+ssh://pasky/srv/git/elinks.git
2006-01-28 04:52:04 +01:00
Jonas Fonseca
b6b6d3c67e
DOM: Allocate all node strings when doing incremental rendering
...
This changes init_dom_node_() to take an allocated argument saying whether
to allocate or not. If the value is -1, node->allocated will be set to the
value of node->parent->allocated. This way the value is inherited like we
do it in the menu code. It should be a sane default since we eventually
want not to rely on the 'underlying' source of the document and there will
be less variables to pass around.
2006-01-28 04:51:25 +01:00
Jonas Fonseca
24a9d103b4
DOM: Add allocated flag to struct dom_node; replaces subtype flags
...
Prepare for handling of allocated strings in the various nodes.
2006-01-28 04:50:04 +01:00
Miciah Dashiel Butler Masters
2e9d433402
SMJS: mangle_deb_bugnumbers: add <pre>; set rendered view
...
Use the newly available view_state object to change to rendered view
and wrap everything in <pre> ... </pre> if the document MIME type is
text/plain.
2006-01-28 03:27:45 +00:00
Miciah Dashiel Butler Masters
495fb2805b
SMJS: Give user scripts access to the view_state
...
Introduce the view_state object to ECMAScript with properties .uri and
.plain and pass the current view_state to preformat hooks.
2006-01-28 03:27:45 +00:00
Jonas Fonseca
3b183c1685
Merge with git+ssh://pasky/srv/git/elinks.git
2006-01-28 03:36:47 +01:00