Tatsuya Kinoshita
6339dd9f13
Merge pull request #146 from acli/20200821_a_CLEANED
...
Patch to make w3m’s handling of the a element HTML5 compatible (when the stream is HTML5)
2020-08-30 09:57:45 +09:00
Ambrose Li
48c9ec565d
In HTML5 anchors should not be closed when encountering divs, for example, but should be closed when encountering buttons, for example. Many sites that use HTML5-style anchors end up having links displayed with zero-length link texts. The proposed patch correct this behaviour by detecting whether the document is HTML5, then suppressing the close-anchor action in CLOSE_A if it's an HTML5 document. A new macro handles the HTML5-specific cases where anchors are not already always closed.
...
This also fixes a bug in the tokenizing FSM in etc.c that prevented the !doctype element from being recognized; the fix is necessary because HTML5 detection depends on checking the !doctype element.
2020-08-24 23:48:09 -04:00
Ambrose Li
9f18e67a9b
Cleaned version of 20200823_q branch. Changes the behaviour of the q tag (when m17n and Unicode are configured) to use "smart" quotes if the display charset can handle them. Falls back to old behaviour (ASCII quotes with left/right quote semantics for 6/0 and 2/6) if display charset is us-ascii.
...
Also changes the behaviour of conv_entity() to convert left/right quotes and some dashes because named entities are needed for the new code for the q tag.
2020-08-23 22:20:43 -04:00
Azure
83e072d6d5
Allow setting User Agent in Siteconf
...
Since Google gives usable search results to Lynx but not to w3m, and
many other sites block Lynx but /not/ w3m, we want to be able to set
the User Agent string on a per-site basis.
2019-06-30 12:15:22 -04:00
Laurent Arnoud
b06d1f6a02
Allow to override UserAgent
...
Adding on command line the user agent add a duplicate header:
```
./w3m -header "User-Agent: Mozilla" http://localhost:9999
GET / HTTP/1.0
User-Agent: w3m/0.5.3+git20190105
Accept: text/html, text/*;q=0.5, image/*, application/*, message/*, x-scheme-handler/*, audio/*, video/*, inode/*
Accept-Encoding: gzip, compress, bzip, bzip2, deflate
Accept-Language: en;q=1.0
Host: localhost:9999
Pragma: no-cache
Cache-control: no-cache
User-Agent: Mozilla
```
As a result most server will take the first given; the default
w3m_version or the one defined on config `user_agent`
With this patch we can now override `User-Agent` from command line
2019-04-21 21:47:52 +02:00
Tatsuya Kinoshita
0c3f5d0e0d
Prevent array index out of bounds for symbol
...
Bug-Debian: https://github.com/tats/w3m/issues/38
2016-11-14 21:20:44 +09:00
Tatsuya Kinoshita
1b107c0dbc
Set use_dictcommand to 1 by default
2016-10-30 17:42:18 +09:00
Tatsuya Kinoshita
2b32ef68b0
Set default_url to 1 by default
2016-07-18 22:29:28 +09:00
Tatsuya Kinoshita
06181fceff
Add extbrowser4, extbrowser5, ..., and extbrowser9
2016-03-13 20:06:18 +09:00
Tatsuya Kinoshita
0782a7a817
Accept cookies by default
2015-11-19 01:21:42 +09:00
Tatsuya Kinoshita
e66ffbd316
Set argv_is_url to 1 by default
...
Bug-Arch: https://bugs.archlinux.org/task/47102
2015-11-19 00:24:25 +09:00
Tatsuya Kinoshita
0efbaf15c3
New option "display_borders" to display 0 pixel table borders.
...
cf. http://d.hatena.ne.jp/rubikitch/20101120
2015-02-02 23:09:34 +09:00
Araki Ken
2fe66f3a6f
Add -sixel option which supports image processing by img2sixel.
2014-12-06 20:47:05 +09:00
Araki Ken
147ef0048b
- Adjust the image size to the terminal cell size. - If the image size is specified in html source, skip to load the image.
2014-12-06 20:47:04 +09:00
Araki Ken
f4268d8d18
Support remote image by OSC 5379 show_picture sequence.
2014-12-06 20:47:04 +09:00
Olaf Hering
6e73bad0ff
Change the default to alt_entity=0
...
change the default for the option "Use ASCII equivalents to
display entities" from YES to NO.
Origin: https://build.opensuse.org/package/view_file/openSUSE:Factory/w3m/w3m-0.5.1-no-ASCII-equivalents-by-default.patch?expand=1
Bug-Novell: https://bugzilla.novell.com/show_bug.cgi?id=247397
2014-12-06 18:00:05 +09:00
Tatsuya Kinoshita
a090abc52e
Merge branch 'bug/ssl-init'
2014-10-15 18:15:02 +09:00
Tatsuya Kinoshita
1aace42d02
Disable SSLv3 by default [CVE-2014-3566]
...
cf. https://blog.mozilla.org/security/2014/10/14/the-poodle-attack-and-the-end-of-ssl-3-0/
2014-10-15 18:14:12 +09:00
Ludwig Nussel
05503271df
Force ssl_verify_server on and disable SSLv2 support
...
Origin: http://www.openwall.com/lists/oss-security/2010/06/14/4
2014-10-15 18:11:45 +09:00
Tatsuya Kinoshita
f7ff70f6da
Merge branch 'bug/win64gc'
...
Conflicts:
istream.c
main.c
2013-10-14 23:02:26 +09:00
AIDA Shinra
ec81194f38
Workaround of GC crash on Cygwin64
...
Patch from <http://www.j10n.org/files/w3m-cvs-1.1055-win64gc.patch >,
[w3m-dev:04469] on 2013-10-14.
2013-10-14 22:31:01 +09:00
Tatsuya Kinoshita
fa5bc4b95d
Merge branch 'feature/siteconf'
2013-04-08 21:56:59 +09:00
Tatsuya Kinoshita
a32bf68c85
Support the siteconf feature
...
Patch to support the siteconf feature, from [w3m-dev 04463]
on 2012-06-27, provided by AIDA Shinra.
2013-04-08 21:48:49 +09:00
Tatsuya Kinoshita
6a032f360b
Support the button element as defined in HTML 4.01
...
Patch from upstream, [w3m-dev 04411] on 2010-09-17, to support the
button element. It is discussed upstream and incomplete, but enough
to login Launchpad.
2011-06-19 20:40:17 +09:00
Tatsuya Kinoshita
5397d09e58
Adding upstream version 0.5.3
2011-05-04 16:41:45 +09:00
Tatsuya Kinoshita
6db339b3d7
Adding upstream version 0.5.2
2011-05-04 16:23:02 +09:00
Tatsuya Kinoshita
72f72d64a4
Adding upstream version 0.5.1
2011-05-04 16:05:14 +09:00