From 5a95942a8a8ee31ed78c3421749229cdb403ceb4 Mon Sep 17 00:00:00 2001 From: Gea-Suan Lin Date: Sat, 20 Jul 2013 23:42:24 +0800 Subject: [PATCH 1/2] Perfer to use . Both are valid in HTML5, and both are valid in major browsers, so we choose shorter version. And move charset before title, because might contain multibyte string. Ref: https://code.google.com/p/doctype-mirror/wiki/MetaCharsetAttribute --- snippets/html_minimal.snippets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/html_minimal.snippets b/snippets/html_minimal.snippets index ce971ef..61e4738 100644 --- a/snippets/html_minimal.snippets +++ b/snippets/html_minimal.snippets @@ -6,8 +6,8 @@ snippet html5 <!doctype html> <html> <head> + <meta charset="utf-8"> <title>$2 - $3 From 743da3a940dd229c4838a2c2455427b0af6940d2 Mon Sep 17 00:00:00 2001 From: Gea-Suan Lin Date: Sat, 20 Jul 2013 23:45:40 +0800 Subject: [PATCH 2/2] In HTML5, we don't need xml-style close tag. --- snippets/html_minimal.snippets | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/snippets/html_minimal.snippets b/snippets/html_minimal.snippets index 61e4738..bc6d3e0 100644 --- a/snippets/html_minimal.snippets +++ b/snippets/html_minimal.snippets @@ -34,15 +34,15 @@ snippet idn snippet label_and_input - ${7} + ${7} # FORMS # use idn . or n to add id snippet input - ${7} + ${7} snippet submit - ${7} + ${7} snippet textarea @@ -61,7 +61,7 @@ snippet img $2 # JS/CSS snippet css_file - ${3} + ${3} snippet css_block