1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-21 00:25:37 +00:00
Commit Graph

2970 Commits

Author SHA1 Message Date
Kalle Olavi Niemitalo
7865bcd7f1 Remove unclearly licensed test files.
test/align.html: from www.czech-tv.cz
test/css/idnes_mail.html: apparently from idnes.cz
test/erreurs_en.htm: unclear origin
test/javascript_broken.html: presumably from www.hotjobs.com
test/poocs.net.html: presumably from poocs.net

I did not find in the source tree a licence to distribute any of these.
(cherry picked from commit 22975bb0ec)
2008-10-03 11:07:53 +03:00
Kalle Olavi Niemitalo
31040d56ba test/optgroup.html is under GNU Free Documentation License
test/optgroup.html was added on 2004-04-17 with no comment about licensing.
I contacted the author via <http://iccl.fi/feedback.cgi?id=mail>, asking
for a licence.  The author noted that a developer of ELinks had originally
asked on the #debian.fi channel whether the file could be used, and he had
allowed it then.  That permission grant had not been recorded in the source
tree though, and it is not clear whether modification had been allowed.
Anyway, the author now explicitly grants us the GNU free documentation
licence on this file, and is willing to consider other licences.
(cherry picked from commit fe78a0249a)
2008-10-03 11:07:10 +03:00
Jonas Fonseca
bf6b5793f1 Add support for reformatting lines in source high-lighting
If wrapping has been enabled, reformat and indent source lines so
start and end tag are on the same column unless only one element
is on the line in which case tags are kept on a single line.

It is slightly abuse of the wrap option but it could be turned into
even wrapping the text nodes.
2007-09-24 11:09:03 +02:00
Jonas Fonseca
2e831c2e37 DOM: Cleanup the parser stack properly in done_sgml_parser 2007-09-18 02:04:40 +02:00
Jonas Fonseca
e12a927857 Resolve the convert table in init_dom_renderer 2007-09-12 20:32:26 +02:00
Jonas Fonseca
892820692a Resolve the doctype in init_dom_renderer 2007-09-12 20:29:02 +02:00
Jonas Fonseca
fc7622829c Make get_doctype return the resolved document type 2007-09-12 20:27:32 +02:00
Jonas Fonseca
1b08be35bc Move DOM source renderer specific variables to source_renderer 2007-09-12 20:22:31 +02:00
Jonas Fonseca
1b35116c00 Alloce the source_renderer struct in init_dom_source_renderer 2007-09-12 20:11:29 +02:00
Jonas Fonseca
5c38661bf4 Move adding of the DOM source renderer context to new init_dom_source_renderer 2007-09-12 20:10:57 +02:00
Jonas Fonseca
97f8a748c1 Rename source_renderer variables from data to source 2007-09-12 19:51:49 +02:00
Jonas Fonseca
278ad051a1 DOM: Introduce set_source_position to update renderer->position
... and perform the associated assertion.
2007-09-12 19:49:17 +02:00
Jonas Fonseca
385ee89b58 DOM: Move get_scanner_token_number from dom/select to dom/scanner 2007-09-12 16:23:46 +02:00
Jonas Fonseca
e568011da7 DOM TEST: Refactor incremental parsing loop to parse_sgml_from_stdin 2007-09-12 16:00:01 +02:00
Jonas Fonseca
e8c99a337e DOM: Remove stack tracing
This code has already been duplicated by the sgml-parser program.
The only user being dom/select should hook into that.
2007-09-12 15:24:29 +02:00
Jonas Fonseca
5c5920ea09 DOM TEST: make sgml-parser support --selector flag
This basically obsoletes the dom-select program so
remove all traces of it.
2007-09-12 15:13:29 +02:00
Miciah Dashiel Butler Masters
fb7377fe81 dom/test/sgml-parser: add --stats option
For now, --stats only prints the number of DOM nodes.
2007-09-12 11:49:31 +00:00
Jonas Fonseca
72537db1cd Fix last merge that reverted commit 4a6a6909ea
Due to conflict in src/document/html/parser.c Zas' meta-refresh changes
were dropped. Reapply them.
2007-09-11 00:27:13 +02:00
Jonas Fonseca
7dab487328 Merge branch 'master' into dom
Conflicts:

	src/document/html/parser.c
2007-09-09 18:41:04 +02:00
Jonas Fonseca
0240c469b7 Merge branch 'elinks-0.12'
Conflicts:

	src/document/dom/renderer.c
2007-09-09 18:25:49 +02:00
Jonas Fonseca
58b3b1e752 Reinstate "canonicalization" of path names for file URIs
This reverts commit 4f0aaa166e
and insert check for the "//" -> "/" change only to occur for
file:// URIs. This fixes the recent reports on broken handling
of relative file URIs starting with "..".
2007-09-09 18:17:25 +02:00
Laurent MONIN
24d88d2f3e Add a simple testcase for missing ; in meta refresh content attribute. 2007-09-08 21:06:28 +02:00
Laurent MONIN
4a6a6909ea Make meta refresh content attribute parsing more tolerant.
Simply search for 'url' marker ignoring anything
before it.
ELinks is now able to follow incorrectly written
meta refresh content attribute with missing ; before
url= parameter.
As an example, try http://akkada.tivi.net.pl/
2007-09-08 21:03:22 +02:00
Jonas Fonseca
76fba5fcd8 CSS: devious work-around for px unit to absolute calculation 2007-09-06 23:29:36 +02:00
Jonas Fonseca
146c6e650d CSS: add support for margin-left and margin-right 2007-09-06 23:26:54 +02:00
Jonas Fonseca
7d6cb2bb53 CSS: make length_absolute generally usable
... however, I don't know if this was the original intention
or whether it is really font-size specific.
2007-09-06 23:25:31 +02:00
Jonas Fonseca
4fb4a1af83 CSS: fix broken length + unit parsing 2007-09-06 23:22:51 +02:00
Miciah Dashiel Butler Masters
dbacc9ead2 Support document refresh in frames
Introduce reload_frame, which takes a frame @name argument in addition to the arguments that reload takes.
2007-09-06 20:47:17 +00:00
Miciah Dashiel Butler Masters
2676fcc2cd do_document_refresh: take document_view instead of session 2007-09-06 19:14:35 +00:00
Miciah Dashiel Butler Masters
66d62ca11b start_document_refresh: take document_view instead of session 2007-09-06 19:13:25 +00:00
Miciah Dashiel Butler Masters
a1a8696cce Introduce start_document_refreshes
start_document_refreshes performs the NULL-pointer checks that previously all callers to start_document_refresh must perform and then calls start_document_refresh.
2007-09-06 18:52:23 +00:00
Jonas Fonseca
5a47a1b4d6 DOM HTML: Introduce apply_focusable to setup link attributes
It is supposed to be the equivalent of html_focusable but
using an attribute iterator instead of querying each attribute.
It also adapts some mikuparser code to help the parsing of
attributes containing numbers. Finally, add onhover to the
list of known HTML attributes.
2007-09-06 17:03:44 +02:00
Jonas Fonseca
e5f3e6ca92 Merge branch 'master' into dom
Conflicts:

	src/document/html/parser.c
2007-09-06 15:54:10 +02:00
Laurent MONIN
34212320fa French translation was updated. 2007-09-05 17:19:52 +02:00
Miciah Dashiel Butler Masters
a8f28f21c9 Reflow check_head_for_cache_control 2007-09-04 12:13:20 +00:00
Miciah Dashiel Butler Masters
2a2aad15f9 Factor check_head_for_cache_control out of process_head 2007-09-04 12:11:37 +00:00
Miciah Dashiel Butler Masters
fc12376bf5 Factor check_head_for_refresh out of process_head 2007-09-04 12:09:19 +00:00
Miciah Dashiel Butler Masters
2d0180d1e7 Fix process_head to check for cache-control information even if no refresh
Previously, process_head immediately returned if there was no refresh, never giving the cache-control check further down a chance to run.

Also add new tests:

   nocache.html
   refresh+nocache.html
2007-09-04 12:08:08 +00:00
Miciah Dashiel Butler Masters
34c9389e9b Display cache mode in the cache manager's info box for cache entries 2007-09-04 11:54:18 +00:00
Kalle Olavi Niemitalo
cdf2d8181c More missing va_ends.
Somehow, these slipped from commit
af14d00d17 yesterday.
2007-09-04 10:26:57 +03:00
Kalle Olavi Niemitalo
16d4e81f1b Merge commit 'pasky.or.cz/elinks-0.12' into elinks-0.12 2007-09-03 21:04:40 +03:00
Kalle Olavi Niemitalo
c44739e039 Refer to bug 96 in a comment. 2007-09-03 21:02:58 +03:00
Kalle Olavi Niemitalo
a59f44c4b5 Document Unicode characters for ACS_S[1379]. 2007-09-03 21:01:49 +03:00
Kalle Olavi Niemitalo
af14d00d17 Add missing va_ends.
I'm not sure they're needed anywhere nowadays, but still.
2007-09-03 21:01:11 +03:00
Witold Filipczyk
7f49eda39e DOM renderer: off by one error. 2007-09-02 20:44:36 +00:00
Miciah Dashiel Butler Masters
596b9b4d72 Fix compiler warning
Initialise @td to NULL in textarea_edit.  Assert @td in done_textarea_data while we're at it.
2007-09-01 23:46:37 +00:00
Miciah Dashiel Butler Masters
e0f0112de9 Fix -dump with multicell characters 2007-09-01 17:04:58 +00:00
Miciah Dashiel Butler Masters
e1f0c10926 Drop unneeded #include "util/lists.h" from viewer/text/textarea.c 2007-09-01 12:55:02 +00:00
Miciah Dashiel Butler Masters
312a48a24a Merge branch 'master' of ssh://pasky.or.cz/srv/git/elinks 2007-09-01 12:50:57 +00:00
Miciah Dashiel Butler Masters
14af901277 In free_textarea_data, set term->textarea_data to NULL 2007-09-01 12:49:02 +00:00