1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05:00
Commit Graph

2703 Commits

Author SHA1 Message Date
Kalle Olavi Niemitalo
7d9d95961b Revert 2d6840b9, "Only set the socket protocol family on success."
Revert commit 2d6840b9bd9d3a7a45a5ad92b4e98ff7224d6d97.  It is causing
passive FTP via IPv6 to fail on ftp.funet.fi.  ELinks sends PASV and
the server says "425 You cannot use PASV on IPv6 connections. Use EPSV
instead."
2007-05-20 14:20:54 +02:00
Kalle Olavi Niemitalo
07548d5a75 Bug 816, html_textarea: Expand entity references.
Because the renderer no longer does that.
The comment "We don't cope well with entities here" may now be
obsolete but I'm not sure about that so I'm leaving it in.
2007-05-20 14:20:49 +02:00
Kalle Olavi Niemitalo
fc4838b740 html_textarea: Use memmove rather than memcpy.
This is an overlapping copy and memcpy is not required to support that.
2007-05-20 14:20:44 +02:00
Kalle Olavi Niemitalo
0b10539d10 Bug 784: Add html_context->doc_cp and parse attributes with it.
options->cp is still used for this in seven places where html_context
is not easily available.  Those should eventually be corrected too,
but I'm checking this change in already because it's better than what
we had before.
2007-05-20 14:20:35 +02:00
Kalle Olavi Niemitalo
483386a6e5 NEWS: mention bug 816 2007-05-20 14:05:47 +02:00
Kalle Olavi Niemitalo
3e16757753 Bug 784: Keep form_control.default_value in the document charset.
Previously, html_special_form_control converted
form_control.default_value to the terminal charset, and init_form_state
then copied the value to form_state.value.  However, when CONFIG_UTF8
is defined and UTF-8 I/O is enabled, form_state.value is supposed to
be in UTF-8, rather than in the terminal charset.

This mismatch could not be conveniently fixed in
html_special_form_control because that does not know which terminal is
being used and whether UTF-8 I/O is enabled there.  Also, constructing
a conversion table from the document charset to form_state.value could
have ruined renderer_context.convert_table, because src/intl/charsets.c
does not support multiple concurrent conversion tables.

So instead, we now keep form_control.default_value in the document
charset, and convert it in the viewer each time it is needed.  Because
the result of the conversion is kept in form_state.value between
incremental renderings, this shouldn't even slow things down too much.

I am not implementing the proper charset conversions for the DOM
defaultValue property yet, because the current code doesn't have
them for other string properties either, and bug 805 is already open
for that.
2007-05-20 14:05:39 +02:00
Kalle Olavi Niemitalo
ec5d0cf0a7 Apply form history to fs->value, not fc->default_value.
I am going make fc->default_value use the charset of the document, and
recoding the string from the form history to that might lose characters.

This change also affects what ECMAScript sees in the defaultValue property.
<http://www.w3.org/TR/2003/REC-DOM-Level-2-HTML-20030109/html.html#ID-26091157>
says it should represent the HTML "value" attribute, so changing it
based on form history is not appropriate.
2007-05-20 14:05:32 +02:00
Kalle Olavi Niemitalo
3918c8ef1c Document the meaning of document_options.cp.
Miciah provided part of the text.
2007-05-20 14:05:27 +02:00
Laurent Monin
028cd1c4fe Bug 816, html_special_form_control: Don't parse character entity references. 2007-05-20 14:05:22 +02:00
Kalle Olavi Niemitalo
53cd0dcc95 Document the charset of form_state.value for FC_TEXTAREA. 2007-05-20 14:05:17 +02:00
Kalle Olavi Niemitalo
d66dc7341c NEWS: mention bugs 928, 947 2007-05-20 14:05:11 +02:00
Kalle Olavi Niemitalo
f70c14a706 Bug 947, set_hline: Also recognize NBSP_CHAR #ifndef CONFIG_UTF8. 2007-05-20 14:05:05 +02:00
Kalle Olavi Niemitalo
55102e5f8a Bugs 879, 928, 947: Specially map U+00A0 and U+00AD in translation tables. 2007-05-20 14:05:00 +02:00
Kalle Olavi Niemitalo
c108a425ce Bug 947, set_hline: Respect wrap_nbsp also if !part->document.
This does not yet fix bug 947 for the case where the document is UTF-8
and the terminal is ISO-8859-1.  That will require changing charsets.c
too, it seems.
2007-05-20 14:04:54 +02:00
Kalle Olavi Niemitalo
3baf35b30e set_hline: Outdent some code. 2007-05-20 14:04:50 +02:00
Kalle Olavi Niemitalo
49a3bef153 Bug 879, set_hline: Discard U+00AD SOFT HYPHEN characters if UTF-8.
If not UTF-8, then charsets.c has already discarded them.
2007-05-20 14:04:43 +02:00
Kalle Olavi Niemitalo
c85a226ea4 Bug 879: New constant UCS_SOFT_HYPHEN; use where applicable. 2007-05-20 14:04:36 +02:00
Kalle Olavi Niemitalo
e11b784067 Bug 879, u2cp_: Use UCS_NO_BREAK_SPACE instead of 0xa0. 2007-05-20 14:04:30 +02:00
Kalle Olavi Niemitalo
d18fc9f33d Add contrib/mkdist, used for making ELinks snapshots and releases.
This is the mkdist to which doc/release.txt refers.
The script was originally written by Pasky and then modified by Fonseca.
This version doesn't know the correct directory names and so won't work
without modifications, but it seems better to check it in now than wait.
2007-05-20 14:04:20 +02:00
Witold Filipczyk
86523110d8 DOM: Part of Node properties defined. 2007-05-19 23:16:26 +02:00
Witold Filipczyk
688ca8cf31 ECMAScript: evaluating onclick, onsubmit etc. done in the right way.
Scripts such as onsubmit are called as a function not as a script.
2007-05-19 20:54:08 +02:00
Witold Filipczyk
a29ef8600c DOM: SEE in not supported yet. 2007-05-19 20:43:41 +02:00
Witold Filipczyk
e887efc611 onsubmit: Reverted commit fa93d05b7e.
I don't remember why I cleared "returns", but it doesn't work
with www.hypermedia.pl/altkom/ and probably with many more sites.
2007-05-19 18:47:20 +02:00
Witold Filipczyk
6da89f7acc DOM: Definition of attribute callback. 2007-05-16 21:26:07 +02:00
Witold Filipczyk
e53f3b2c99 DOM: Added add_document_callback and redefined the other callbacks. 2007-05-16 21:21:52 +02:00
Witold Filipczyk
c6a8822926 shadow: Draw transparent shadow like Turbo Vision. 2007-05-16 13:42:36 +02:00
Witold Filipczyk
29bfa86d5d DOM: Added a placeholder for cleaning html_data. 2007-05-13 20:14:43 +02:00
Witold Filipczyk
5626d6499f DOM: Added the html_data field to the struct dom_element_node.
html_data will be used by the future renderer.
2007-05-13 19:58:11 +02:00
Witold Filipczyk
9edc009c10 DOM: Added callbacks when adding an element or an attribute. 2007-05-13 19:46:39 +02:00
Witold Filipczyk
d6c844288a DOM: Node_finalize and done_dom_node_ecmascript_obj.
There should be no dangling pointers to ecmascript_obj.
TODO: Pointer to the root node is needed for performance.
2007-05-13 14:32:33 +02:00
Witold Filipczyk
26966b85bd DOM: Added DOM2-HTML stubs. 2007-05-12 22:26:30 +02:00
Witold Filipczyk
afae921507 DOM: added enums for DOM2-HTML.
Redefined also enums for DOM3-Core in such a way that none of enums
has positive value.
2007-05-12 15:15:23 +02:00
Witold Filipczyk
2252f8d8a9 DOM SpiderMonkey: Typos. 2007-05-10 21:09:45 +02:00
Witold Filipczyk
df573e56e3 DOM: SpiderMonkey's DOM implementation started.
Added placeholders of functions and properties.
2007-05-10 21:04:07 +02:00
Witold Filipczyk
a2f18bb6fc deflate: Used -MAX_WBITS instead of hard coded -15. 2007-05-08 15:28:33 +02:00
Witold Filipczyk
d09334df72 cgi: Set HTTP_ACCEPT_ENCODING. 2007-05-08 09:35:04 +02:00
Witold Filipczyk
f2859f529e encoding: added deflate.
Based on the bzip2 backend. It works (checked with the lighttpd and the PHP
zlib.deflate filter).
2007-05-05 18:57:47 +02:00
Witold Filipczyk
c364abd748 bug 949: Stupid, but works.
Previously object_unlock in push_delete_button_common caused an assertion
failure.
2007-05-02 17:48:06 +02:00
Witold Filipczyk
0f2a24229f bug 949: call done_download_display. 2007-05-02 17:31:40 +02:00
Witold Filipczyk
98450fad79 bug 949: do not remove the downloaded file on abort. 2007-05-02 16:59:41 +02:00
Witold Filipczyk
31768f129a bug 949: Abort button works. 2007-05-02 09:29:39 +02:00
Witold Filipczyk
d26410d0ff bug 397: It works for download_manger. I hope this don't break anything. 2007-05-01 22:07:33 +02:00
Jonas Fonseca
fde144f117 Update source path reference to SGML+DOM 2007-05-01 20:37:55 +02:00
Jonas Fonseca
a3d75eb47e Remove TODO about sane texinfo documentation handling 2007-05-01 20:37:50 +02:00
Jonas Fonseca
910087ff13 Make non-standard pluginspage attribute to embed hyperlinkable
Appears on page reachable from links on
http://www.gilbertogil.com.br/sec_discografia_view.php?id=17
2007-05-01 20:37:08 +02:00
Laurent MONIN
d5acb25a08 Prevent internal errors when terminal width or height are very small
(1x1 was fatal).
2007-05-01 20:37:03 +02:00
Laurent MONIN
81ae381d6a French translation was updated. 2007-05-01 20:36:59 +02:00
Laurent MONIN
e1332c29ce Insert newlines and remove parenthesis in -version and Info box display. 2007-05-01 20:36:49 +02:00
Laurent MONIN
6bed8f1503 Fix trailing whitespaces 2007-05-01 20:36:04 +02:00
Laurent MONIN
c496a7eaf6 Enhance version and features display. Wrap on spaces when features
are sent to console using -version, and let Info dialog do the job in
interactive mode.
2007-05-01 20:32:52 +02:00