Commit Graph

10 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
Ambrose Li
73949a3e12 Rudimentary support for figure, figcaption 2020-08-21 04:26:26 -04:00
Yixun Lan
edf86c5781 Explictily include <time.h> to avoid build err
while disable ssl, we will got a undefine time_t err

see https://bugs.gentoo.org/show_bug.cgi?id=601498

Signed-off-by: Yixun Lan <dlan@gentoo.org>
2016-12-05 22:41:17 +09:00
David Crosby
dac68e4d90 Adjust UFclose to remove false positive of CWE-481 2015-08-11 21:59:28 +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
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