From bd8bf42fd48c7dc58ce5a767573d37231438c17a Mon Sep 17 00:00:00 2001 From: Michael Vitz Date: Fri, 13 Mar 2015 09:34:11 +0100 Subject: [PATCH] Fix form inside of span element. Only inline elements may be contained whithin inline elements. Because form is not an inline element this leads to w3c validation errors. Relates to #130. --- src/statuses/views/main.clj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/statuses/views/main.clj b/src/statuses/views/main.clj index db11780..5f6c2fa 100644 --- a/src/statuses/views/main.clj +++ b/src/statuses/views/main.clj @@ -47,9 +47,9 @@ [:span.author (link-to (str (updates-path) "?author=" author) author)] (if in-reply-to [:span.reply (link-to (update-path in-reply-to) in-reply-to)]) - [:span.actions (button "reply" "Reply" "reply") + [:div.actions (button "reply" "Reply" "reply") (if can-delete? - [:span.delete (delete-form id)])] + [:div.delete (delete-form id)])] [:span.time [:a.permalink {:href (update-path id)} (format-time time)]] ] [:div.post-content (common/linkify text)]