about summary refs log tree commit diff stats
path: root/README.md
diff options
context:
space:
mode:
authorMarkus Wüstenberg2020-11-16 12:38:24 +0100
committerGitHub2020-11-16 12:38:24 +0100
commit794c3b26acbd3931b7973ff7e09a42b0ac414b1c (patch)
treeac909b96ce6cca65b71828deca179db8e22e2995 /README.md
parent87d09c382434c9198c50356954fedf0ab8e5576f (diff)
downloadgomponents-794c3b26acbd3931b7973ff7e09a42b0ac414b1c.tar.lz
gomponents-794c3b26acbd3931b7973ff7e09a42b0ac414b1c.tar.zst
gomponents-794c3b26acbd3931b7973ff7e09a42b0ac414b1c.zip
Render correct HTML5 (#44)
Previously, elements of kind void and empty elements generally would be rendered auto-closing (with a final `/` character in the start tag), which is allowed sometimes but arguably wrong. See https://dev.w3.org/html5/spec-LC/syntax.html#end-tags

This created problems with for example `textarea` and `script`, which cannot be auto-closing, or the browser renders it wrong.

Also clarified in the docs that this library outputs HTML5.

Fixes #42.
Diffstat (limited to 'README.md')
-rw-r--r--README.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/README.md b/README.md
index 118a1c7..cba1e66 100644
--- a/README.md
+++ b/README.md
@@ -3,8 +3,8 @@
 [![GoDoc](https://godoc.org/github.com/maragudk/gomponents?status.svg)](https://godoc.org/github.com/maragudk/gomponents)
 [![codecov](https://codecov.io/gh/maragudk/gomponents/branch/master/graph/badge.svg)](https://codecov.io/gh/maragudk/gomponents)
 
-gomponents are declarative view components in Go, that can render to HTML.
-gomponents aims to make it easy to build HTML pages of reusable components,
+gomponents are declarative view components in Go, that can render to HTML5.
+gomponents aims to make it easy to build HTML5 pages of reusable components,
 without the use of a template language. Think server-side-rendered React,
 but without the virtual DOM and diffing.
 
@@ -15,7 +15,7 @@ for background.
 
 ## Features
 
-- Write declarative HTML in Go without all the strings, so you get
+- Write declarative HTML5 in Go without all the strings, so you get
   - Type safety
   - Auto-completion
   - Nice formatting with `gofmt`