From 0c76680864fba8b5bf20f086ccb4ab87060c29db Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 27 Aug 2013 08:52:22 +0000 Subject: [PATCH] add more html5 tags, fixes #1444 --- source/Ox.UI/css/Ox.UI.css | 3 +++ source/Ox/js/HTML.js | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/source/Ox.UI/css/Ox.UI.css b/source/Ox.UI/css/Ox.UI.css index b5b7e362..05c69f69 100644 --- a/source/Ox.UI/css/Ox.UI.css +++ b/source/Ox.UI/css/Ox.UI.css @@ -33,6 +33,9 @@ div, input, textarea { font-family: Lucida Grande, Segoe UI, DejaVu Sans, Lucida Sans Unicode, Helvetica, Arial, sans-serif; font-size: 11px; } +figure { + text-align: center; +} h1, h2, h3, h4, h5, h6 { margin: 0; font-size: 16px; diff --git a/source/Ox/js/HTML.js b/source/Ox/js/HTML.js index 32765146..f940e230 100644 --- a/source/Ox/js/HTML.js +++ b/source/Ox/js/HTML.js @@ -4,15 +4,15 @@ var defaultTags = [ // inline formatting - 'b', 'code', 'em', 'i', 's', 'strong', 'sub', 'sup', 'u', + 'b', 'bdi', 'code', 'em', 'i', 'q', 's', 'span', 'strong', 'sub', 'sup', 'u', // block formatting - 'blockquote', 'h1', 'h2', 'h3', 'p', 'pre', + 'blockquote', 'cite', 'div', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'p', 'pre', // lists 'li', 'ol', 'ul', // tables 'table', 'tbody', 'td', 'tfoot', 'th', 'thead', 'tr', // other - 'a', 'br', 'img', + 'a', 'br', 'img', 'figure', 'figcaption', // special 'rtl', '[]' ],