31 Commits
Author SHA1 Message Date
Baptiste Daroussin fe203d650f Add the "role" attribute from ARIA
https://www.w3.org/TR/wai-aria/#host_general_role
2022-01-11 10:18:08 +01:00
kristapsdz 9ccaea4f88 Add some HTML5.2 elements. 2021-03-02 21:15:26 +00:00
kristapsdz a2d7dbc5e7 Add some more HTML5.2 attributes. 2021-03-02 21:07:08 +00:00
kristapsdz aaf82d965e Add support for the <main> flow tag. This is an HTML5 flow element and has
been since the initial HTML5 standard.

Fixes https://github.com/kristapsdz/kcgi/pull/89
2021-03-02 20:13:40 +00:00
kristapsdz ee09bfac8a Remove XASPRINTF and XVASPRINTF, make return checks for -1, make exported
wrapper functions consistent in error handling.
2020-07-17 13:58:05 +00:00
kristapsdz 3da1abdf53 Don't use XWARN and fix copypasta. 2020-07-17 10:09:39 +00:00
kristapsdz b0b5e2e801 Have khtml_puts() not bail on NULL value and regress test it. 2020-03-27 22:02:17 +00:00
kristapsdz fed1075eaf style(9). 2020-03-27 21:25:20 +00:00
kristapsdz f6cd493ab9 Recover from errors in khtml_attr functions enough to close the variable
argument context.  Rename KDATA_MAXELEMSZ for consistency.  style(9).
2020-03-27 21:19:03 +00:00
kristapsdz 5c0424ef75 style(9) 2020-03-27 10:58:25 +00:00
kristapsdz 1e33995ff3 Fix a bug where khtml_closeto would close all scopes if given the current
scope as a savepoint.  This is obviously not intended.
2020-03-26 00:02:02 +00:00
kristapsdz f46341e03b If given a stack depth greater than the current depth, simply do nothing
instead of returning a KCGI_FORM, which is indicative of other, more serious
errors.
2020-03-25 23:19:54 +00:00
kristapsdz d4d3c1fb01 const-ify the khtmlreq passing into khtml_elemat. 2020-03-25 22:47:07 +00:00
kristapsdz 2404214cc2 API change: update entity value from 16 to 32 bits. Modern unicode can go
up to 150 000 or so.
2020-03-25 22:11:39 +00:00
kristapsdz 4dc8865581 Have a NULL buffer passed to khtml_write be a noop, just like khttp_write. 2020-03-25 22:05:06 +00:00
kristapsdz 6364df8f8c Merge support for khtml_printf provided by Tracey Emery, thanks! Patch
tweaked for correct manpage invocation.  Merging a simple HTML test at
the same time.

Fixes https://github.com/kristapsdz/kcgi/pull/82/files
2020-03-25 20:49:42 +00:00
kristapsdz 80b364434b Make sure to free writer memory on close. 2018-01-13 10:25:44 +00:00
kristapsdz 3b3ee18d28 Have a return code from khtml_open and use kcgi_writer. 2018-01-12 14:36:22 +00:00
kristapsdz 3c80d0229d Copyright. 2018-01-11 05:57:49 +00:00
kristapsdz db8e4f310a Remove long-deprecated function. 2018-01-11 04:39:17 +00:00
kristapsdz c48efacb6e Use kcgi_err return codes. 2018-01-11 04:38:11 +00:00
kristapsdz 685abdeced Full switch to oconfigure instead of current system, so remove all of the
test and compat files.  These are now in tests.c and compats.c, and driven
by the configure script.   Also remove the MD5 code, which is part of
compats.c.  Lastly, move ifdefs to ifs, remove defined (same), and also
remove HAVE_CONFIG_H.
2017-10-18 21:36:59 +00:00
kristapsdz 14e76de92d Spelling errors from https://github.com/kristapsdz/kcgi/pull/14 (no functional change) -- thanks! 2016-11-02 19:21:37 +00:00
kristapsdz d09e8aea3e Properly type textarea as a phrase element, not a flow. Noted by Ross Richardson--thanks!
Also make pretty-printing an option instead of the default.
2016-10-04 20:04:37 +00:00
kristapsdz ea44534a1c Allow for compilation on musl: add compat headers and fix some inclusion
warnings (sys/poll -> poll).
2015-07-07 08:52:59 +00:00
kristapsdz e203269da1 Rename khtml_close to khtml_closeleem.
(Re-)Add khtml_close to close the HTML context like in the other libs.
Add khtml_open.
Remove khtml_text from the manpage.
Have khtml_close* return int.
Remove assertions from khtml_close*.
Have kxml_close and kjson_close close out the open scope.
2015-04-27 16:27:24 +00:00
kristapsdz 23688ddeb3 Fix: stray kxml_ in khtml space. 2015-04-12 20:59:44 +00:00
kristapsdz 184371c685 Documentation. 2015-04-04 09:58:08 +00:00
kristapsdz 4bd9218539 Adding kjson_string_putdouble and khtml_write. 2014-12-17 13:45:42 +00:00
kristapsdz 202f8afb04 Lots of website documentation improvements.
Move khtml_attr.3 into kcgihtml.3 for the time being.
2014-11-23 17:38:56 +00:00
kristapsdz 917d51a1d9 Split kcgi into kcgi and kcgihtml.
Split kcgi.3 into many manpages.
2014-11-23 16:18:23 +00:00