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

1042 Commits

Author SHA1 Message Date
Witold Filipczyk
a645856fac [libcss] color must be set
Otherwise valgrind shows uninitialized value.
2023-09-26 19:44:34 +02:00
Witold Filipczyk
5e5d7f702a [options] Moved was_xml_parsed below framename
Also call display_timer. For framesets
2023-09-26 16:58:13 +02:00
Witold Filipczyk
15da44d9ea [libdom] reparse document, when it was modified by js 2023-09-24 17:56:58 +02:00
Witold Filipczyk
78543c55ee [table] skip_script 2023-09-24 17:56:06 +02:00
Witold Filipczyk
773ac97e1b [libdom] For parsed document separate function: dump_xhtml 2023-09-23 19:28:28 +02:00
Witold Filipczyk
b3e77ef53e [js] document is already parsed. No need to check 2023-09-23 18:58:21 +02:00
Witold Filipczyk
f461c86ce6 [document] Added body_onkeypress
It is silly, but I want some scripts to work.
2023-09-22 16:37:53 +02:00
Witold Filipczyk
447aa41dc9 [js] placeholder for onkeypress 2023-09-21 09:30:50 +02:00
Witold Filipczyk
5dc2187450 [libdom] Do not rewrite < and > in scripts 2023-09-20 18:46:38 +02:00
Witold Filipczyk
79bfb0bc4a [br] Shorter code 2023-09-14 17:57:56 +02:00
Witold Filipczyk
5fbfacbab6 [xhtml] Special case for BR. Refs #266
Rewrite is as <BR/> instead of <BR></BR>.
2023-09-14 17:40:27 +02:00
Witold Filipczyk
c603fe4058 [libdom] convert back < to &lt; and > to &gt; Refs #266 2023-09-13 21:38:40 +02:00
Witold Filipczyk
e0a125f112 [gmi] Add a new line after the first line of "preformatted" text. Refs #265 2023-09-12 10:23:26 +02:00
Witold Filipczyk
188f63941c [spidermonkey] element.focus() 2023-09-11 15:48:18 +02:00
Witold Filipczyk
e2e7b7332e [libdom] Added map (node -> element_offset) 2023-09-11 14:59:05 +02:00
Witold Filipczyk
207dc70c87 [libcss] Set status = 0 for color. 2023-08-26 09:10:03 +02:00
Witold Filipczyk
abf035f21f [libcss] Do not set black as default color 2023-08-26 09:04:44 +02:00
Witold Filipczyk
80a33fd3ea [css] line-through 2023-08-25 20:53:26 +02:00
Witold Filipczyk
c9fd41588f [terminal] Strikethrough for <STRIKE> element 2023-08-25 20:10:54 +02:00
Witold Filipczyk
4ef70a1cfa [libdom] scan_http_equiv in libdom renderer. Refs #249 2023-07-27 13:30:42 +02:00
Witold Filipczyk
450eda0283 [html] Check encoding line ( <?xml version="1.0" encoding="utf-8"?> ) 2023-07-27 11:41:43 +02:00
Witold Filipczyk
90d4f17031 [head] addcrlf 2023-07-27 11:20:53 +02:00
Witold Filipczyk
83a296234a [terminal] Added terminfo for 24 bit color
To test: Build with terminfo support and run elinks for example as:
TERM=xterm-direct elinks --terminfo 1
2023-07-19 19:00:26 +02:00
Witold Filipczyk
cbc29daab2 [html] Decrease number of line breaks for DL, OL and UL. Refs #248 2023-07-18 19:44:15 +02:00
Witold Filipczyk
d783cf4add [string] string_replace -> el_string_replace 2023-07-01 19:40:24 +02:00
Witold Filipczyk
3ff58b17e4 [gemini] Missing LIs. Refs #242 2023-06-27 16:06:58 +02:00
Witold Filipczyk
f85f899a7f [plain] Compilation fix. Refs #239 2023-06-20 13:58:14 +02:00
Witold Filipczyk
a67188413c [lists] LIST_HEAD -> LIST_HEAD_EL to not clash with libevent's LIST_HEAD. Also added curl implementation of ftpes and sftp
Implementation of ftpes and sftp is based on curl's hiperfifo example. It requires libevent.
ftpes only encrypts control channel. There were problems when both control and data were encrypted. It stucked on SIZE.
Only successful connections work, errors are not handled properly.
2023-06-19 18:43:53 +02:00
Witold Filipczyk
de285144f0 [iframes] Still not functional
There are bugs.
For example:
- frames borders are drawn in wrong place
- iframes are not "relative" to the document, they are drawn in the same position of the screen
  even when scrolling.
- some elements of screen disappear when going back
- crashes
2023-06-10 17:57:28 +02:00
Witold Filipczyk
fb4d1c9a27 [iframe] Pass document->nlinks to iframe 2023-06-04 21:18:04 +02:00
Witold Filipczyk
755b588387 [html] Assign document to html_context every time 2023-06-04 21:08:28 +02:00
Witold Filipczyk
2aa34e0f22 [iframe] do not reset current_link 2023-06-04 17:46:22 +02:00
Witold Filipczyk
cdcb32af8a [html] unused variable 2023-05-30 15:26:38 +02:00
Witold Filipczyk
cdb37b743d [libcss] No warning 2023-05-30 15:24:47 +02:00
Witold Filipczyk
4ffa019038 [libcss] memacpy to avoid warning 2023-05-29 15:27:05 +02:00
Witold Filipczyk
ba0cb07faf [html] libdom can be not compiled-in 2023-05-29 13:46:23 +02:00
Witold Filipczyk
d6cb06f105 [html] Sites with ISO-8859-2 encoding displayed garbage. 2023-05-29 13:07:26 +02:00
Witold Filipczyk
1a05e20203 [libcss] mem_free in resolve_url 2023-05-28 20:48:26 +02:00
Witold Filipczyk
c1fc9ff532 [libcss] No need to select twice 2023-05-28 20:22:50 +02:00
Witold Filipczyk
4f2ff8536b [libcss] Bring back assert 2023-05-28 17:07:47 +02:00
Witold Filipczyk
41074ac1ca [dom] Bad function for unref caused memory leak. 2023-05-28 16:50:19 +02:00
Witold Filipczyk
df7c4c0579 [dom] Do not treat single '\n' specially 2023-05-28 15:48:14 +02:00
gabriele balducci
a96d7b3e5f Allow building with -Dlibsixel=false 2023-05-28 10:52:07 +01:59
Witold Filipczyk
ed1afeb648 [options] Added bool option document.plain.sixel 2023-05-26 19:46:07 +02:00
Witold Filipczyk
c8f55f5df0 [document] Added cell_width and cell_height to document options 2023-05-26 19:22:56 +02:00
Witold Filipczyk
9582f865a6 [plain] done_string(&pixels) 2023-05-26 14:41:28 +02:00
Witold Filipczyk
715c16f4d1 [document] delele sixel images when document done 2023-05-26 13:00:38 +02:00
Witold Filipczyk
5ecf02da29 [plain] Assume that ESC P is sufficient to detect sixel image
Imagick's convert generate some values between 'P' and 'q'.
I left it for the future to detect it properly.
2023-05-26 11:29:33 +02:00
Witold Filipczyk
c0a140f4f3 [sixel] Small progress.
You can see images. In ~/.mailcap:
image/*; img2sixel %s; copiousoutput
2023-05-19 21:31:51 +02:00
Witold Filipczyk
ee29a8877b [line] union in place of struct (sixel)
Chars are accessible via ch.chars not chars as before.
2023-05-18 11:12:05 +02:00
Witold Filipczyk
c1d954ab0a [document] bitifield kind in struct line.
I want to use it for sixel, but later some other kinds might be added.
2023-05-18 10:38:30 +02:00
Witold Filipczyk
bb5511207e [libdom] compilation fix 2023-05-17 12:52:47 +02:00
Witold Filipczyk
40b825eadd [document] pass charset to document_parse_text 2023-05-16 20:08:36 +02:00
Witold Filipczyk
9a6edd69db [libdom] Possibility to build libcss code without ecmascript.
meson config option libcss enabled by default.
To enable libcss in elinks:
set document.css.libcss = 1
2023-05-15 19:13:38 +02:00
Witold Filipczyk
6c06b2f3de [document] Do not require enabled ecmascript for libcss 2023-05-15 18:33:25 +02:00
Witold Filipczyk
0a7250d8b2 [libcss] python docs display white background 2023-05-09 18:48:16 +02:00
Witold Filipczyk
d9f9478cc5 [libcss] Commented weird assert 2023-05-06 19:33:38 +02:00
Witold Filipczyk
c96f4c7177 [meson] Removed CONFIG_XML 2023-05-05 20:48:14 +02:00
Witold Filipczyk
a445c6507a [xml] Removed code related to CONFIG_XML 2023-05-05 20:40:17 +02:00
Witold Filipczyk
6da8ab303f [css] Removed css2 (xml code) 2023-05-05 20:23:40 +02:00
Witold Filipczyk
946c2e11f6 [libdom] removed CONFIG_XML in a few places 2023-05-05 13:55:40 +02:00
Witold Filipczyk
cb72f7dc4e Merge branch 'master' into libd 2023-04-30 21:13:15 +02:00
Witold Filipczyk
4a3fa85ee7 [link] Convert href for anchor to terminal codepage, usually utf-8. Refs #221 2023-04-23 15:00:05 +02:00
Witold Filipczyk
31a89da35c [libdom] parse.h
Contains document_parse and document_parse_text.
2023-04-17 19:31:17 +02:00
Witold Filipczyk
9e32406e29 Merge branch 'master' into libd 2023-04-10 15:59:45 +02:00
Witold Filipczyk
02e34611bf [blockquote] return in case of realloc failure 2023-04-06 15:35:33 +02:00
Witold Filipczyk
6d0b7b8788 [blockquote] Count also blockquote_level and margin while realloc lines. Refs #214 2023-04-05 16:23:26 +02:00
Witold Filipczyk
adff92389f [quickjs] libdom element.c
Many TODOs left.
2023-04-02 20:41:28 +02:00
Witold Filipczyk
2e0c8795c5 [quickjs] libdom version of attributes.c 2023-03-25 21:36:54 +01:00
Witold Filipczyk
850559d216 [libdom] css code
Works for test cases.
TODO: cleanup
2023-03-13 19:57:16 +01:00
Witold Filipczyk
242975ae7c [libdom] Copy-paste of renderer2
Only difference is call plain renderer instead of html renderer.
Also avoid dangling pointer.
2023-03-13 17:00:32 +01:00
Witold Filipczyk
4c8a30b866 [libdom] Written dump_document, similar to xml.
Next step css.
2023-03-12 20:51:14 +01:00
Witold Filipczyk
79fdb363b3 [Makefile] compile libcss related code 2023-03-01 18:02:06 +01:00
Witold Filipczyk
ed86daabe0 [css] Added experimental libcss code (config option document.css.libcss)
Was not tested.
2023-02-28 18:38:33 +01:00
Witold Filipczyk
967e5d5f09 [html] struct document * instead of struct document_options * in init_html_parser
I want have access to document in renderer and parser functions.
2023-02-15 18:56:15 +01:00
Witold Filipczyk
5fa2a3371c [css] Do not execute css code when CONFIG_LIBCSS was set 2023-02-13 17:05:48 +01:00
Witold Filipczyk
cd238bf820 [xml] Removed unused file 2023-02-13 16:14:00 +01:00
Witold Filipczyk
9f2eb5a58b [xml] Removed commented code 2023-02-13 16:11:11 +01:00
Witold Filipczyk
cd8a84f8e0 [css2] code from netsurf 2023-02-05 18:01:43 +01:00
Witold Filipczyk
0e70bfb468 [quickjs] Compilation fixes 2023-01-28 09:34:10 +01:00
Witold Filipczyk
7e528dcf1d [html] Added section element. Refs #207 2023-01-22 13:32:40 +01:00
Witold Filipczyk
d2bbe4cf0a [ecmascript] Compilation fixes 2023-01-20 18:03:02 +01:00
Witold Filipczyk
02c8c6e0b1 [document] clear element_map 2023-01-20 17:14:32 +01:00
Witold Filipczyk
2f6cac0243 [ecmascript] Moved add_to_ecmascript_string_list to util/string.h 2023-01-01 09:04:20 +01:00
Sam James
5cb6021918
Fix build failures with mujs
Closes: https://github.com/rkd77/elinks/issues/204
Signed-off-by: Sam James <sam@gentoo.org>
2022-12-31 21:06:57 +00:00
Witold Filipczyk
7ea7cacade [.config] Read/write configuration from ~/.config/elinks . Refs #199
Note, configs and other files from ~/.elinks/ are not moved
to ~/.config/elinks/ automatically. You must do it yourself.

ELINKS_CONFDIR and HOME_ETC also are no longer supported.
2022-12-26 17:48:55 +01:00
Witold Filipczyk
f03d1ea44d [meson] Do not build test programs by default
If you want run tests, pass -Dtest=true to meson
and run "meson test" at the end.
2022-11-30 10:17:49 +01:00
Witold Filipczyk
294732babc [test] compilation fixes 2022-11-21 19:09:50 +01:00
Witold Filipczyk
b9910df99d [xml] Do not assume utf-8.
document_write4.html does not display utf-8
2022-11-21 16:36:49 +01:00
Witold Filipczyk
c9fe1bf546 [xml] Force "utf-8" encoding.
It is a step backwards. At least test cases for document.write don't crash.
2022-11-20 20:24:29 +01:00
Witold Filipczyk
df28d4345b [ecmascript] Random fixes 2022-11-20 18:09:53 +01:00
Witold Filipczyk
7a9ba1184d [ecmascript] Added element_offset parameter to eval 2022-11-14 21:33:24 +01:00
Witold Filipczyk
0ff62b5ee8 [ecmascript] Added ecmascript_string_item_list.
This struct will contain info about current script element.
2022-11-14 21:17:24 +01:00
Witold Filipczyk
ada4ebd842 [xml] Some fixes related to scripts 2022-11-10 16:01:55 +01:00
Witold Filipczyk
c34a7d6658 [xml] segfault when document->dom was NULL 2022-11-10 15:29:12 +01:00
Witold Filipczyk
ba861138ca [xml] Show TextNode
ContentNodes are also comments.
2022-11-10 13:42:06 +01:00
Witold Filipczyk
2fcf64e9bb [xml] Set document->cp 2022-11-09 21:24:30 +01:00
Witold Filipczyk
d7f4f94a62 [click] Added eventListener. It works for these two test cases. 2022-11-07 20:59:19 +01:00
Witold Filipczyk
3330427738 [ecmascript] onkeyup and onkeydown 2022-11-03 19:30:57 +01:00
Witold Filipczyk
2129eadcbd [intl] Added build option -Dcodepoint=true (--disable-codepoint)
Codepoint lookup slows down ELinks, so you can do not enable it
at compile time.
2022-10-16 19:26:20 +02:00