Skip to content

Commit

Permalink
Fix form inside of span element.
Browse files Browse the repository at this point in the history
Only inline elements may be contained whithin inline elements. Because
form is not an inline element this leads to w3c validation errors.

Relates to innoq#130.
  • Loading branch information
mvitz committed Mar 13, 2015
1 parent b8146db commit 65fbfea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/statuses/views/main.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down

0 comments on commit 65fbfea

Please sign in to comment.