12

I found this bug when looking at my review history. I found that the page shows the title of one of my reviews as:

How do I stretch the middle
height in a three-
layout?

In three lines, rather than the correct title of:

How do I stretch the middle <div> height in a three-<div> layout?

It seems here that the history isn't escaping the markup of the HTML tags. Can you fix this?

This is the review involved (the formatting error occurs in the review queue history page that links to that review).


As requested, here is a screenshot.

enter image description here


I'm using Firefox 17.0.1. The behavior happens even if I disable all add-ons.

12
  • Do you have a link to the specific page where this happens? I checked the history on the queues and on your profile and couldn't reproduce, so I imagine I was looking at the wrong pages.
    – Tim Stone
    Commented Dec 16, 2012 at 23:53
  • Added more information. This involves the review queue history.
    – Peter O.
    Commented Dec 16, 2012 at 23:58
  • 1
    It looks right in the 10k list (currently on page 679); possibly it only happens when you see your individual history Commented Dec 17, 2012 at 0:13
  • I see other titles with HTML tags in them on the queue history you linked to, including the example you gave. Do you have a screenshot of the page you were looking at, by any chance?
    – Adam Lear StaffMod
    Commented Dec 17, 2012 at 0:29
  • Yes it does, when I see my individual history.
    – Peter O.
    Commented Dec 17, 2012 at 1:08
  • Here's the relevant page (for now at least). Looks normal to me.
    – user200500
    Commented Dec 17, 2012 at 9:32
  • I have seen the same problem: The question at stackoverflow.com/questions/8077955/… renders the following review history (stackoverflow.com/review/first-posts/history): imgur.com/loxsx.
    – iikkoo
    Commented Dec 21, 2012 at 11:38
  • @Peter are you using a plugin/userscript to render [id:1234] after each question link?
    – Emmett
    Commented Dec 21, 2012 at 18:50
  • I see this same behavior. Page is /review/low-quality-posts/history and the question being displayed is 12874538. The HTML (option, select) in the title is showing up as a working dropdown in FireFox 20.0.1.
    – bmb
    Commented Apr 22, 2013 at 23:08
  • Also view source shows unencoded raw HTML of the question title.
    – bmb
    Commented Apr 22, 2013 at 23:16
  • 1
    I also can see this in the first page of my Low Quality Posts. 10k users may still be able to tell me the actual title of the question but whatever it actually was something then fixes the xhtml and displays the rest of the page with no tabulation at all!
    – Mark Hurd
    Commented Aug 2, 2013 at 16:35
  • Yeah, it is fixed for me now. And FYI the actual title was HTML 2 PDF starts a new line for every </table>.
    – Mark Hurd
    Commented Aug 17, 2013 at 7:12

2 Answers 2

7

This was my bad - there was a bug here and it was of very limited exposure. We have tested it a few times and believe to have found a fix. As the title mentions you must have dealt with a post in review that contained tags in titles of now-deleted questions for users without the privilege to view most deleted questions.

6
  • Hmm, which reminds me...wonder if Opera Mobile fixed this bug...
    – Tim Stone
    Commented Dec 21, 2012 at 19:13
  • No, it happens even if I disable all add-ons. I'm using Firefox 17.0.1, by the way.
    – Peter O.
    Commented Dec 21, 2012 at 19:34
  • I see the same behavior as the OP. Page is /review/low-quality-posts/history and the question being displayed is 12874538. The HTML (option, select) in the title is showing up as a working dropdown in FireFox 20.0.1. View source shows unencoded raw HTML of the question title.
    – bmb
    Commented Apr 22, 2013 at 23:17
  • @bmb Seems to be ok here i.sstatic.net/D4Swj.png Commented Apr 22, 2013 at 23:30
  • 1
    It is not bold on my screen. What does bold indicate vs. not bold? That the answer has been deleted and it's not clickable any longer? It may be clickable for you as a mod and the problem is only a problem when it's not surrounded by <a> tags?
    – bmb
    Commented Apr 23, 2013 at 0:51
  • 1
    Reproduced with this test question. Here's a screenshot, and the page source includes: <a href="/review/suggested-edits/16726">suggested edit</a> on <test question, please ignore>.
    – Jeremy
    Commented Aug 5, 2013 at 20:44
7

In comparing the behavior I see to the screenshots provided by the OP and by Geoff Dalgas, I suggest that the problem only occurs when the title displays on that page and is not clickable.

When the question is deleted, the title is no longer a link unless you have enough reputation or are a moderator. When the title is displayed as a link, apparently the html tags are encoded.

Since everyone who posted that it works for them has a high reputation or is a moderator, they are seeing the properly encoded text.

Those of us with with less reputation see only the text instead of a link, and I think that is where the encoding is being missed.

1
  • 2
    That may explain things; I've edited the title accordingly.
    – Peter O.
    Commented Apr 23, 2013 at 23:43

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .