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 #130.
  • Loading branch information
mvitz committed Nov 23, 2015
1 parent a3ef5b6 commit bd8bf42
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 bd8bf42

Please sign in to comment.