In general
If it will improve the answer or correct errors in the answer, it's worth a try. The way this site works is that all posts are owned by the community, and we generally welcome edits that improve answers.
However, be careful. Don't deviate from the original intent: don't add something that contradicts what they were originally saying. If you're editing the answer based on a comment from someone other than the author, be especially careful that you're not using this to try to push a different solution or a different opinion or a different agenda. It's one thing to fix a spelling error, correct a minor mistake, or add explanation that explains why the answer works; it's another to change the sense of the answer. The latter type of edits are usually not desirable and are likely to be rejected.
If you are adding material based on a comment by the same user who wrote the answer, I suggest that you mention this fact in the review comments, as otherwise reviewers might be unaware of that fact and might reject the edit. In practice reviewers don't always know how to handle edits that introduce substantive changes, and sometimes will reject changes that appear to "put words into" the poster's mouth.
In your specific case
I would not recommend making such an edit. The comment appears to deviate a bit too far from what the author had in mind. The original author wrote "I think this is the most annoying little peculiarity of HTML" and the comment said "it's not a peculiarity". So, this seems on particularly dubious grounds, to me. If you feel strongly, you can write your own answer, and make it complete and stand on its own.