diff --git a/src/document/html/parser.h b/src/document/html/parser.h
index 3e8fd3d4f..ec1ba15d7 100644
--- a/src/document/html/parser.h
+++ b/src/document/html/parser.h
@@ -137,8 +137,9 @@ struct html_element {
ELEMENT_VISITED = 2,
} pseudo_class;
};
-#define is_inline_element(e) (e->linebreak == 0)
-#define is_block_element(e) (e->linebreak > 0)
+
+#define is_inline_element(e) ((e)->linebreak == 0)
+#define is_block_element(e) ((e)->linebreak > 0)
/* Interface for the renderer */