Commit Graph

666 Commits

Author SHA1 Message Date
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
Tatsuya Kinoshita
b65f7b243d Update ChangeLog 2020-08-23 19:15:28 +09:00
Tatsuya Kinoshita
9fb7e5beaf Add TFLG_END to "/sup", "/sub" and "/figure" for TagMAP 2020-08-23 19:11:38 +09:00
Tatsuya Kinoshita
59f873b7bf Merge pull request #136 from acli/20200821_figure
Rudimentary support for figure, figcaption
2020-08-23 19:07:22 +09:00
Ambrose Li
73949a3e12 Rudimentary support for figure, figcaption 2020-08-21 04:26:26 -04:00
Tatsuya Kinoshita
6d359dfa2b Update ChangeLog 2020-08-02 20:10:48 +09:00
Tatsuya Kinoshita
8911c57eb2 Merge pull request #134 from DavidSpickett/master
Show keyboard shortcuts in a consistent order in help
2020-08-02 20:08:30 +09:00
David Spickett
638f46d091 Show keyboard shortcuts in a consistent order in help
Perl's hash variables are not ordered so each
time we run the CGI script for the help page
we may get a different order.

This caused bindings and names to appear
differently on each reload.

To fix this sort by keys when generating the
shortcut tables.

Fixes #133
2020-07-31 14:45:03 +01:00
Tatsuya Kinoshita
09cf3874fc Update ChangeLog 2020-07-11 07:35:34 +09:00
Bjarni Ingi Gislason
baefa5f5f8 Fix some source formatting in the manual
- Begin a sentence on a new line.
- Split long lines (> 80).
- Fix warnings from "mandoc -Tlint"
- Remove space at end of lines.
- Change a HYPHEN-MINUS (code 0x55, 2D) to a dash (minus) if it matches
  " -[:alpha:]" or \[aq]-[:alpha:] (for options).
- Use the macros .MT/.ME for e-mail addresses

Origin: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=963801#5
2020-07-11 07:29:10 +09:00
Tatsuya Kinoshita
aa078ed98a Update ChangeLog 2020-05-07 21:51:46 +09:00
Tatsuya Kinoshita
38393ba207 Merge pull request #128 from sorairolake/feature/fixJapaneseDocs
Change the encoding of the Japanese docs to UTF-8
2020-05-07 21:49:15 +09:00
Tatsuya Kinoshita
57df9f2e11 Merge pull request #127 from sorairolake/feature/copying
Add COPYING file
2020-05-07 21:48:37 +09:00
Shun Sakai
d2283055e2 Change the encoding of the Japanese docs to UTF-8 2020-05-06 21:54:30 +09:00
Shun Sakai
4655be1c22 Add COPYING file 2020-05-06 15:47:06 +09:00
Tatsuya Kinoshita
d95c6eb5aa Update ChangeLog 2020-05-02 13:07:42 +09:00
Tatsuya Kinoshita
424cbad4c5 Update NEWS for 0.5.3+git20200502 2020-05-02 13:05:17 +09:00
Tatsuya Kinoshita
3e46046fe3 Update ChangeLog 2020-03-27 21:09:03 +09:00
Roland Illig
ced87de02c Fix -Wchar-subscripts
Origin: http://cvsweb.netbsd.org/bsdweb.cgi/~checkout~/pkgsrc/www/w3m/patches/patch-main.c?rev=1.1&content-type=text/plain
Bug: https://sourceforge.net/p/w3m/patches/76/
2020-03-27 20:58:22 +09:00
Tatsuya Kinoshita
4efb3caf25 Update ChangeLog 2020-03-16 20:03:49 +09:00
Tatsuya Kinoshita
739b3fe5ce Update documents for GOTO_HOME 2020-03-16 19:59:04 +09:00
Tatsuya Kinoshita
fb915c1248 Add GOTO_HOME to the help page 2020-03-16 19:51:22 +09:00
Tatsuya Kinoshita
e890b157b6 Update ChangeLog 2020-03-11 20:13:42 +09:00
Tatsuya Kinoshita
82869f4acb Update documents for ssl_forbid_method 2020-03-11 20:11:18 +09:00
Tatsuya Kinoshita
91953baf07 Extend ssl_forbid_method for TLSv1.2 and TLSv1.3 2020-03-11 19:33:34 +09:00
Tatsuya Kinoshita
74efea9997 Update ChangeLog 2020-01-13 12:36:57 +09:00
Tatsuya Kinoshita
d7a29bbdf3 Update ChangeLog 2020-01-13 12:29:26 +09:00
Tatsuya Kinoshita
d2abc08689 Merge pull request #124 from butwerenotthereyet/go-home
Add command to go home.
2020-01-13 12:26:40 +09:00
We're Yet
3f15e127d2 Add command to go home.
When w3m is launched, if no other options are specified, it attempts to
read HTTP_HOME and WWW_HOME from the environment and upon finding a
value for one of these load the url specified.  Once launched, though,
w3m provides no convenience for navigating to the home page.

Here, that ability is added.  A new command GOTO_HOME is defined with a
default key binding of C-_.
2020-01-03 23:42:05 -08:00
Tatsuya Kinoshita
357fc1e44b Update ChangeLog 2019-11-10 20:01:34 +09:00
Tatsuya Kinoshita
2f7cf64eac Merge pull request #122 from mackyle/master
entities: support ' entity
2019-11-10 19:57:02 +09:00
Kyle J. McKay
e8948ec3a3 entities: support ' entity
The XHTML standard encompasses the XML standard.

From the beginning, the XML standard [1] has always included required
support for five character entities:

 1. the ampersand (&) as &
 2. the left angle bracket (<) as &lt;
 3. the right angle bracket (>) as &gt;
 4. the double-quote character (") as &quot;
 5. the apostrophe or single-quote character (') as &apos;

See section "2.4 Character Data and Markup" of the XML standard [1]
for further details.

Add support for the character single-quote character entity (&apos;)
in order to fully support XHTML pages.

[1]: https://www.w3.org/TR/REC-xml/

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
2019-11-08 15:53:20 -07:00
Tatsuya Kinoshita
b3054364d1 Update ChangeLog 2019-07-02 22:32:55 +09:00
Tatsuya Kinoshita
74ccde10d9 Update doc-jp for user_agent in siteconf 2019-07-02 22:31:42 +09:00
Tatsuya Kinoshita
778cc49935 Update ChangeLog 2019-07-01 23:01:18 +09:00
Tatsuya Kinoshita
d6545481ae Merge pull request #119 from adamemerson/siteconf-user-agent
Allow setting User Agent in Siteconf
2019-07-01 22:58:33 +09: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
Tatsuya Kinoshita
350c41a86c Update ChangeLog 2019-04-22 21:05:52 +09:00
Tatsuya Kinoshita
b0509cee7d Merge pull request #113 from spk/allow-override-user-agent
Allow to override UserAgent
2019-04-22 21:02:12 +09: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
599f5c1723 Update ChangeLog 2019-01-05 17:41:27 +09:00
Tatsuya Kinoshita
998882cc3d Update NEWS 2019-01-05 17:38:22 +09:00
Tatsuya Kinoshita
a4370a097b Update config.* with autotools-dev 20180224.1 2019-01-05 17:36:32 +09:00
Akinori Hattori
2266d1bd98 Fix dependency for Imlib2
Bug-Gentoo: https://bugs.gentoo.org/605930
Origin: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97d6e3e6839898829e8cce211b97a7fa77f5d06e
2019-01-05 17:32:51 +09:00
Tatsuya Kinoshita
a701bcb26f Update ChangeLog 2018-12-22 14:31:17 +09:00
Tatsuya Kinoshita
56bf714a24 Fix square brackets 2018-12-22 12:52:49 +09:00
Nemo Inis
13c0ff5567 w3mman support for section number during keyword search
Origin: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=916968#5
2018-12-21 21:16:48 +09:00
Tatsuya Kinoshita
87b2653b5e Update ChangeLog 2018-10-26 21:52:11 +09:00
Ben Wong
94ab9857e9 Fix that the MarkAllPages option works as originally intended
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=911929
2018-10-26 21:34:19 +09:00
Tatsuya Kinoshita
cf2b303334 Update ChangeLog 2018-10-26 21:18:22 +09:00