Witold Filipczyk
fb90f2a832
[js] screen.height (term->height * 16)
2021-05-31 14:27:40 +02:00
Witold Filipczyk
54a7bd7339
[js] screen.width
2021-05-30 12:58:19 +02:00
Witold Filipczyk
719f484422
[js] screen.availWidth (box.width * 8)
2021-05-29 13:42:34 +02:00
Witold Filipczyk
10d731f10c
[js] screen.availHeight (here it is 16 * box.height)
2021-05-28 17:51:42 +02:00
Witold Filipczyk
8b2ef1ef45
[js] publicId
2021-05-27 16:16:10 +02:00
Witold Filipczyk
207534f3e0
[js] doctype.systemId
2021-05-26 08:22:33 +02:00
Witold Filipczyk
35404925e0
[js] document.doctype.name
2021-05-25 18:12:04 +02:00
Witold Filipczyk
97e1e86e66
[js] document.URL (written uppercase)
2021-05-25 16:55:04 +02:00
Witold Filipczyk
9a0b89e189
[js] document.documentURI
2021-05-25 15:58:15 +02:00
Witold Filipczyk
ed8bff2b82
[js] document.baseURI
2021-05-25 12:22:52 +02:00
Witold Filipczyk
c5b2706354
[js] document.domain
2021-05-24 21:55:57 +02:00
Witold Filipczyk
28127b29b4
[js] Try to rewrite htmlCollection get_property.
2021-05-21 20:46:27 +02:00
Witold Filipczyk
c5a1296200
[js] element.isEqualNode (only for Elements)
2021-05-20 16:44:57 +02:00
Witold Filipczyk
1af9c9fc31
[js] element.ownerDocument
2021-05-19 19:05:03 +02:00
Witold Filipczyk
835d42e892
[js] element.nodeValue
2021-05-18 18:36:01 +02:00
Witold Filipczyk
54f902e72a
[js] element.nodeName
2021-05-18 18:13:01 +02:00
Witold Filipczyk
e230acf2ab
[js] element.nodeType
2021-05-18 16:21:02 +02:00
Witold Filipczyk
3e8186922d
[js] element.isSameNode
2021-05-17 17:25:50 +02:00
Witold Filipczyk
0a395d7dbf
[js] hasChildNodes
2021-05-16 19:26:24 +02:00
Witold Filipczyk
22acacb47b
[js] element.parentElement
2021-05-16 15:56:02 +02:00
Witold Filipczyk
47c694d7d1
[js] element.parentNode
2021-05-16 15:49:38 +02:00
Witold Filipczyk
ed449aee6e
[js] element.previousElementSibling
2021-05-16 15:42:01 +02:00
Witold Filipczyk
e4eaca040d
[js] element.previousSibling
2021-05-16 15:38:15 +02:00
Witold Filipczyk
6baba00aab
[js] element.nextElementSibling
2021-05-16 15:33:19 +02:00
Witold Filipczyk
30c5bdfa1b
[js] element.nextSibling
2021-05-16 15:12:13 +02:00
Witold Filipczyk
760dff4419
[js] element.contains
2021-05-15 20:50:03 +02:00
Witold Filipczyk
09988b7fcd
[js] element.getAttributeNode
2021-05-14 21:49:56 +02:00
Witold Filipczyk
5c5621aadd
[js] document.attributes
2021-05-13 17:41:18 +02:00
Witold Filipczyk
c71b0f2ee1
[js] document.scripts
2021-05-12 20:05:15 +02:00
Witold Filipczyk
35d7847808
[js] document.images
2021-05-12 20:01:08 +02:00
Witold Filipczyk
22cd7a0052
[js] document.links
2021-05-12 17:37:01 +02:00
Witold Filipczyk
ed3a11b288
[js] document.head
2021-05-12 17:28:03 +02:00
Witold Filipczyk
51fe9d1968
[js] document.documentElement
2021-05-12 17:22:34 +02:00
Witold Filipczyk
937b77cfdf
[js] document.body
2021-05-12 17:16:10 +02:00
Witold Filipczyk
8e97e8b048
[js] document.anchors
2021-05-12 17:08:05 +02:00
Witold Filipczyk
799f256157
[js] getElementsByClassName
2021-05-12 16:30:36 +02:00
Witold Filipczyk
d22e77a796
[js] getElementsByTagName
...
TODO: sanitize input for this function
2021-05-12 16:23:46 +02:00
Witold Filipczyk
3e30d82fb4
[js] jsGetElementsByName
2021-05-11 19:02:54 +02:00
Witold Filipczyk
a8e27fc730
[js] lastElementChild
2021-05-10 19:14:39 +02:00
Witold Filipczyk
39c0e7679d
[js] firstElementChild
2021-05-10 19:08:36 +02:00
Witold Filipczyk
6798ffc8b0
[js] lastChild
2021-05-09 21:53:14 +02:00
Witold Filipczyk
8c7517189d
[js] firstChild
2021-05-09 21:38:23 +02:00
Witold Filipczyk
e020f83d34
[js] innerHTML and outerHTML getters (libxml++)
2021-05-09 21:21:24 +02:00
Witold Filipczyk
471c9282ee
[js] childElementCount
2021-05-08 21:51:34 +02:00
Witold Filipczyk
d9073ea9b1
[js] hasAttributes
2021-05-08 19:55:58 +02:00
Witold Filipczyk
0bdbb6aca6
[js] element.hasAttribute(...)
2021-05-07 19:03:53 +02:00
Witold Filipczyk
745387e386
[js] location.hash getter
2021-05-06 16:06:37 +02:00
Witold Filipczyk
955a259f5d
[js] location.host getter
2021-05-06 15:53:20 +02:00
Witold Filipczyk
4c4ea4bdd9
[js] location.hostname getter
2021-05-06 15:46:39 +02:00
Witold Filipczyk
7c618d3a6f
[js] location.origin
2021-05-06 15:40:17 +02:00
Witold Filipczyk
d5f63e6fca
[js] location.pathname getter
2021-05-06 15:31:31 +02:00
Witold Filipczyk
9de0a934ff
[js] location.search getter
2021-05-06 15:17:46 +02:00
Witold Filipczyk
07dba347ac
[js] location.port getter
2021-05-06 15:06:35 +02:00
Witold Filipczyk
b07d39364c
[js] textContent (read)
2021-05-05 15:21:37 +02:00
Witold Filipczyk
9b738edb18
[js] location.protocol (read)
2021-05-04 20:55:06 +02:00
Witold Filipczyk
1e8f86628d
[js] className (read)
2021-05-04 18:34:10 +02:00
Witold Filipczyk
b0ee34bdd5
[js] dir (read)
2021-05-04 16:24:56 +02:00
Witold Filipczyk
63b07c01d8
[js] tagName
2021-05-04 16:06:50 +02:00
Witold Filipczyk
adadc03821
[js] title (read)
2021-05-04 15:42:52 +02:00
Witold Filipczyk
cf5841b8de
[js] outerHTML (read)
2021-05-04 15:32:29 +02:00
Witold Filipczyk
3bd33b9dd3
[js] innerHTML read property
2021-05-03 18:25:31 +02:00
Witold Filipczyk
63d892838c
[getElementById] small success. see test/ecmascript/element.html
...
Now memory leaks, etc. are not taken into account.
For the beginning I will implement read properties.
2021-05-02 17:27:35 +02:00
Witold Filipczyk
d4a1ce5a38
[blockquote] Rewritten a bit. Refs #112
...
It does not crash on test file and shows > for pior test cases.
2021-03-28 12:14:43 +02:00
Witold Filipczyk
089189638b
[blockquote] More draw_blockquote_chars. Refs #103
2021-03-15 20:20:15 +01:00
Witold Filipczyk
90cbad07d3
[blockquote] test case
2021-03-09 19:46:59 +01:00
nobody@earth.com
31ac8dd5d7
[smjs document replace] rewritten to struct string
2021-02-25 13:40:41 +01:00
nobody@earth.com
f953744189
[smjs document replace] fixed property location, replace and writeln functions, tests
2021-02-24 11:23:34 +01:00
nobody@earth.com
a19b95f20c
[smjs local storage] spider monkey local storage
2021-02-22 23:27:19 +01:00
nobody@earth.com
c3e0e0f50d
[smjs] Console log Cleanup
2021-02-22 01:52:56 +01:00
nobody@earth.com
c6a3d04e21
SpiderMonkey Update v0.1.a - Console Log
2021-02-21 22:33:29 +01:00
Witold Filipczyk
dfbd75c958
[select] off by two. Refs #88
...
Also changed a bit utf8_to_unicode.
2021-01-17 21:56:40 +01:00
Witold Filipczyk
d1ecd45828
[mozjs52] It compiles, but often segfaults. No idea yet how to fix it.
2020-10-27 14:53:24 +01:00
Witold Filipczyk
a5b68a25a1
[mozjs45] Code is unstable, but at least compiles.
2020-10-23 22:34:58 +02:00
Witold Filipczyk
4fb19bd1fd
[python3] big_file.cgi ported to Python3. Refs #38
2020-01-03 20:20:43 +01:00
Witold Filipczyk
a27e9b168c
[python3] adjust code to Python3 in test scripts. Refs #38
...
I don't know how to fix big_file.cgi
If you know how to get equivalent of this script in Python3, tell me.
2020-01-01 16:07:14 +01:00
Witold Filipczyk
25dd2ecae9
Changed ecmascript engine to mozjs-17.0.
...
Was not tested, especially smjs is likely buggy.
2019-02-10 21:00:37 +01:00
Witold Filipczyk
7b970144ba
Cursor down causes wrong rendering.
2017-11-21 21:39:48 +01:00
witekfl
5284ea185a
Anchors (all, but first) are not accessible inside <ul>.
2012-06-12 13:40:31 +02:00
witekfl
4933e26488
The last test commit.
2012-05-27 19:42:43 +02:00
witekfl
c9a9d56f07
Test commit 3.
2012-05-27 19:34:57 +02:00
witekfl
2669b71e1d
Test commit.
2012-05-27 19:16:16 +02:00
witekfl
c4b10d8b39
Test commit.
2012-05-27 18:53:34 +02:00
witekfl
ce48dc5ffd
test files for html { } and body { }
2012-05-22 14:15:24 +02:00
Miciah Dashiel Butler Masters
0189b6bfc9
Add support & test for the CSS list-style property
...
Recognise the list-style property and apply it by setting the
appropriate flag on the element's parattr based on the property's value.
Add test/list-style.html with an example of each possible list-style
value (many are unsupported by the HTML engine).
2011-11-14 04:34:50 +00:00
Witold Filipczyk
cbf70d5304
Refactoring: use struct string instead of unsigned char.
...
It probably doesn't make sense, but there is one warning less on OpenBSD.
2010-09-19 13:56:54 +02:00
Witold Filipczyk
79340fa4ac
Better looking symbols for LI elements.
2010-08-11 21:22:21 +02:00
Kalle Olavi Niemitalo
7bb51e7139
Merge branch 'elinks-0.12' into elinks-0.13
...
Conflicts:
NEWS
configure.in
doc/man/man1/elinks.1.in (regenerated)
doc/man/man5/elinks.conf.5 (regenerated)
doc/man/man5/elinkskeys.5 (regenerated)
po/af.po (kept 0.13.GIT)
po/be.po (kept 0.13.GIT)
po/bg.po (kept 0.13.GIT)
po/ca.po (kept 0.13.GIT)
po/cs.po (kept 0.13.GIT)
po/da.po (kept 0.13.GIT)
po/de.po (kept 0.13.GIT)
po/el.po (kept 0.13.GIT)
po/es.po (kept 0.13.GIT)
po/et.po (kept 0.13.GIT)
po/fi.po (kept 0.13.GIT)
po/fr.po (kept 0.13.GIT)
po/gl.po (kept 0.13.GIT)
po/hr.po (kept 0.13.GIT)
po/hu.po (kept 0.13.GIT)
po/id.po (kept 0.13.GIT)
po/is.po (kept 0.13.GIT)
po/it.po (kept 0.13.GIT)
po/lt.po (kept 0.13.GIT)
po/nb.po (kept 0.13.GIT)
po/nl.po (kept 0.13.GIT)
po/pl.po (kept 0.13.GIT)
po/pt.po (kept 0.13.GIT)
po/pt_BR.po (kept 0.13.GIT)
po/ro.po (kept 0.13.GIT)
po/ru.po (kept 0.13.GIT)
po/sk.po (kept 0.13.GIT)
po/sr.po (kept 0.13.GIT)
po/sv.po (kept 0.13.GIT)
po/tr.po (kept 0.13.GIT)
po/uk.po (kept 0.13.GIT)
src/ecmascript/ecmascript.c
2009-07-11 16:47:33 +03:00
Kalle Olavi Niemitalo
6f9501346e
Remove GFDL-licensed test file
...
In recent ELinks release announcements, I have described:
This release of ELinks is mostly licensed under version 2 of the GNU
General Public License. More permissive licences apply to some parts
of it, and there is also one test file under the GNU Free Documentation
License; please see COPYING for the list.
Remove that test file, so its GPL-incompatible licence need not be
mentioned in future announcements. The file however remains
downloadable as part of the elinks.git repository and releases like
elinks-0.11.6.tar.gz. Those should still be covered by the licence.
2009-07-09 00:11:52 +03:00
Miciah Dashiel Butler Masters
874202ef7a
Don't fail assertion on 0-second meta-refresh
...
In start_document_refresh, use register_bottom_half instead of
install_timer if the timeout is 0 because install_timer asserts that it is
given a delay greater than 0.
Add a test case, test/refresh-0timeout.html. Note that
document.browse.minimum_refresh_time must be set to 0 to reproduce the
assertion failure.
2009-06-18 18:13:25 +00:00
Kalle Olavi Niemitalo
687f19dbde
Merge branch 'elinks-0.12' into elinks-0.13
...
Conflicts:
src/bfu/dialog.c
src/bfu/hotkey.c
src/bfu/inpfield.c
src/dialogs/options.c
src/document/renderer.c
src/intl/gettext/libintl.h
src/protocol/http/codes.c
src/session/task.c
src/terminal/event.c
src/terminal/terminal.h
src/viewer/text/form.c
src/viewer/text/link.c
And a semantic conflict in src/terminal/terminal.c.
2009-01-01 19:14:01 +00:00
Kalle Olavi Niemitalo
29c34df62e
Fix assertion failure if IMG/@usemap refers to a different file.
...
Change test/imgmap2.html so it can be used for testing this too.
Debian Iceweasel 3.0.4 does not appear to support such external
client-side image maps. Well, that's one place where ELinks is
superior, I guess. There might be a security problem though if ELinks
were to let scripts of the referring page examine the links in the
image map.
2009-01-01 19:12:41 +00:00
Kalle Olavi Niemitalo
dc41f0bd4c
test: Don't refer to deleted files from imgmap.html.
...
align.html and poocs.net.html have been deleted.
Point the links to href_tests.html and nbsp.html instead.
2009-01-01 18:36:34 +00:00
Kalle Olavi Niemitalo
5be3f71ddd
Add test/image.png and use it in test/imgmap.html.
...
This makes the image-map test work sensibly in graphical browsers too.
2009-01-01 18:35:11 +00:00
Kalle Olavi Niemitalo
25da8085b3
Fix double-free crash if EOF immediately follows </MAP>.
...
look_for_link() used to return 0 both when it found the closing </MAP>
tag, and when it hit the end of the file. In the first case, it also
added *menu to the memory_list; in the second case, it did not. The
caller get_image_map() supposedly distinguished between these cases by
checking whether pos >= eof, and freed *menu separately if so.
However, if the </MAP> was at the very end of the HTML file, so that
not even a newline followed it, then look_for_link() left pos == eof
even though it had found the </MAP> and added *menu to the memory_list.
This made get_image_map() misinterpret the result and mem_free(*menu)
even though *menu had already been freed as part of the memory_list;
thus the crash.
To fix this, make look_for_link() return -1 instead of 0 if it hits
EOF without finding the </MAP>. Then make get_image_map() check the
return value instead of comparing pos to eof. And add a test case,
although not an automated one.
Alternatively, look_for_link() could have been changed to decrement
pos between finding the </MAP> and returning 0. Then, the pos >= eof
comparison in get_image_map() would have been false. That scheme
would however have been a bit more difficult to understand and
maintain, I think.
Reported by Paul B. Mahol.
(cherry picked from commit a2404407ce
)
2008-12-31 20:15:44 +00:00
Witold Filipczyk
90779b1985
Avoid deprecation warning introduced in Python-2.6.
2008-12-06 18:07:07 +01:00
Kalle Olavi Niemitalo
0ec4f380fa
Merge branch 'elinks-0.12' into elinks-0.13
...
Conflicts:
AUTHORS
2008-11-10 00:07:20 +02:00
Peter Collingbourne
658b9cc70f
Fixed bug relating to newlines in hidden input fields
...
This patch fixes an issue whereby a newline character appearing within
a hidden input field is incorrectly reinterpreted as a space character.
The patch handles almost all cases, and includes a test case.
15/18 tests pass, but the remainder currently fail due to the fact
that ELinks does not currently support textarea scripting.
2008-11-09 23:28:46 +02:00
Kalle Olavi Niemitalo
75302f8e62
Merge branch 'elinks-0.12' into elinks-0.13
...
Conflicts:
NEWS
2008-10-03 10:55:11 +03:00
Kalle Olavi Niemitalo
22975bb0ec
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.
2008-10-03 10:39:12 +03:00
Kalle Olavi Niemitalo
b40736cafe
Merge branch 'elinks-0.12' into elinks-0.13
...
Conflicts:
NEWS (merged)
configure.in (merged)
doc/man/man1/elinks.1.in (regenerated)
doc/man/man5/elinks.conf.5 (regenerated)
doc/man/man5/elinkskeys.5 (regenerated)
po/fr.po (kept 0.13.GIT version)
po/pl.po (kept 0.13.GIT version)
2008-09-27 16:28:28 +03:00