Make sure you have doctype declaration like:
<!DOCTYPE html>
and replace the custom attributes as :
data-action data-postid and so on.
Note the hyphen
instead of underscore
. HTML5 allows custom attributes and suggests to use those which starts with data-
.
A custom data attribute is an attribute in no namespace whose name starts with the string data-, has at least one character after the hyphen, is XML-compatible, and contains no uppercase ASCII letters