numerus/web/template
jordi fita mas e322ddd168 Add custom elements polyfill
I use customized built-in components, extended from any HTML elements
(e.g., HTMLDivElement), for product search, multiselect, and tags input
fields.  The idea is that people that without JavaScript could still use
the regular, non-customized, inputs.

It turns out, this does not work so well: the CSS assumes that
JavaScript is enabled, and web components supported by the browser. If
one of these fails, then the controls are unusable—the multiselect is
too short, and the tags field accepts invalid characters that the
backend does not validate until it fails with a database error.

We discovered this because Apple does not implement customized built-in
components[0], hence it does not use my JavaScript code and forms,
the expenses forms in particular, are almost useless.

The way to fix this is to replace the regular inputs with autonomous
web components, extended from HTMLElement, using JavaScript, because
it would only do so with JavaScript enabled, and the CSS style would
only apply to these components, not the regular input fields.

However, currently i do not have time to do the proper fix, and have
to use a polyfill for Safari to support customized built-in components.
Shame.

[0]: https://lists.w3.org/Archives/Public/public-webapps/2013OctDec/0801.html
2023-11-11 03:32:03 +01:00
..
contacts Add reset button to filters 2023-07-16 20:56:11 +02:00
expenses Add the sum of the base and taxes to expenses’ index 2023-10-02 16:36:42 +02:00
invoices Set enctype to multipart/form-data for invoice status form 2023-10-02 18:48:28 +02:00
products Add reset button to filters 2023-07-16 20:56:11 +02:00
quotes Add option to export the list of quotes, invoices, and expenses to ODS 2023-07-18 13:29:36 +02:00
tags Add inline tag form for expenses 2023-05-08 12:58:54 +02:00
app.gohtml Add custom elements polyfill 2023-11-11 03:32:03 +01:00
dashboard.gohtml Wrap filter buttons with <noscript> 2023-05-23 14:34:46 +02:00
form.gohtml Add nowrap to toggle’s labels 2023-07-14 10:44:38 +02:00
home.gohtml Internationalize and localize the home template 2023-06-16 10:58:40 +02:00
login.gohtml Use a “proper” struct for the login form 2023-02-01 11:02:32 +01:00
main.gohtml Add the <title> element for the “main” boosted pages 2023-03-26 13:57:24 +02:00
modal.gohtml Show the profile form in a dialog using HTMx 2023-03-20 13:09:52 +01:00
profile.gohtml Boost all breadcbrumb links 2023-04-02 16:10:13 +02:00
standalone.gohtml Allow editing invoice tags inline from the index table 2023-04-11 10:46:27 +02:00
switch-company.gohtml Add option to switch to another company 2023-11-06 13:52:34 +01:00
tax-details.gohtml Add quote number formatting and next number field to tax details 2023-06-09 12:43:50 +02:00
web.gohtml Add custom function to get the current locale from templates 2023-01-31 15:45:51 +01:00