Commit Graph

6 Commits

Author SHA1 Message Date
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
Scarlett
cbec7032ee Add overflow detection
Origin: http://marc.info/?l=openbsd-ports&m=142090828929750&w=2

* main.c: Call exit(1) when out of memory to avoid dereferencing null
pointers when gc's malloc fails.

* alloc.h: Replacements for w3m's allocation macros which add
overflow detection and concentrate the macros in one file.

* indep.h, libwc/charset.c, libwc/status.c, matrix.c: Use the
overflow-detecting allocation macros from alloc.h.
2015-01-15 19:38:11 +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
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
72f72d64a4 Adding upstream version 0.5.1 2011-05-04 16:05:14 +09:00