Writing img tags with alt attributes is expected for good code practices, but sightly automatically skips empty attributes. How to render empty alt attributes in sightly?
Having this case, where image.alt is empty
Actual result:
Expected result:
Writing img tags with alt attributes is expected for good code practices, but sightly automatically skips empty attributes. How to render empty alt attributes in sightly?
Having this case, where image.alt is empty
Actual result:
Expected result:
As described in the specification, an array with just one empty string element will cause the attribute to render as empty string: https://github.com/adobe/htl-spec/blob/master/SPECIFICATION.md#2231-detailed-examples:
will render an empty
alteven ifmyAltis empty/falsy/null.