ever so slightly obsessed (scien) wrote in suggestions,
ever so slightly obsessed

Do not repeat comment content when problems are found with the HTML

Do not repeat comment content when problems are found with the HTML

Short, concise description of the idea
Do not repeat comment content when problems are found with the HTML (the 'Error: Irreparable invalid markup' message)

Full description of the idea
At the moment if you post a comment with invalid HTML (such as using lesser than or greater than symbols in your text instead of using the HTML codes), an error message line appears saying something like:

'[Error: Irreparable invalid markup ('<insert [...] here>') in entry. Owner must fix manually. Raw contents below.]'

This message appears at the point in the comment where the incorrect code is to be found, then the entire comment is repeated in raw format.

This is mildly annoying as particularly in long comments you can read quite a bit until you reach the error message, then have to find your place in the repeated version, which due to the differences in formatting may not be visually obvious at a glance. So you have to at least skim read it again.

I would suggest that instead, either one of these options is adopted:

1) Have the raw version begin from the error, instead of the beginning of the comment

2) Alternatively, the error message could appear as the first line and then the entire comment printed in raw format.

Edit: see comments for alternative suggestion.

An ordered list of benefits
  • Looks better
  • Easier to read
  • No sudden realisation half way through a comment that you're going to have to trawl through it again to find your place.
An ordered list of problems/issues involved
  • I can't see any drawbacks with my first suggestion, apart from the usual 'developer time'.
  • For the second option: may make it harder to spot exactly where the error is, particularly if a tag or text appears a number of times but is only incorrect in one place
  • Also for the second option: will break HTML before the incorrect tag as well as after it. I would still see this as preferable to having the comment repeated - you end up reading the raw version anyway.
Tags: comment viewing, comments, html cleaner, § no status
  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded