return (
<li className="comment" role="comment">
- <div
+ <article
id={`comment-${cv.comment.id}`}
className={classNames(`details comment-node py-2`, {
"border-top border-light": !this.props.noBorder,
</div>
)}
</div>
- </div>
+ </article>
{showMoreChildren && (
<div
className={classNames("details ml-1 comment-node py-2", {
body() {
const body = this.postView.post.body;
return body ? (
- <div id="postContent" className="col-12 card my-2 p-2">
+ <article id="postContent" className="col-12 card my-2 p-2">
{this.state.viewSource ? (
<pre>{body}</pre>
) : (
<div className="md-div" dangerouslySetInnerHTML={mdToHtml(body)} />
)}
- </div>
+ </article>
) : (
<></>
);
<>
{/* The mobile view*/}
<div className="d-block d-sm-none">
- <div className="row post-container">
+ <article className="row post-container">
<div className="col-12">
{this.createdLine()}
{this.duplicatesLine()}
{this.removeAndBanDialogs()}
</div>
- </div>
+ </article>
</div>
{/* The larger view*/}
<div className="d-none d-sm-block">
- <div className="row post-container">
+ <article className="row post-container">
{!this.props.viewOnly && this.voteBar()}
<div className="col-sm-2 pr-0 post-media">
<div className="">{this.thumbnail()}</div>
</div>
</div>
</div>
- </div>
+ </article>
</div>
</>
);
const res = this.state.postRes;
if (res.state === "success") {
return (
- <div className="mb-3">
+ <aside className="mb-3">
<Sidebar
community_view={res.data.community_view}
moderators={res.data.moderators}
onBlockCommunity={this.handleBlockCommunity}
onEditCommunity={this.handleEditCommunity}
/>
- </div>
+ </aside>
);
}
}