zlacker

[parent] [thread] 0 comments
1. ismarc+(OP)[view] [source] 2009-08-28 23:45:55
BUG: I apologize if this is already posted somewhere here, or if I have failed to find where the bug submissions should go. There is a bug when submitting a post containing text (no URL). The form you are presenting when there is an error with submission converts multiple newlines to <p> tags, which are escaped on the next submission. To a naive user, it would appear that the substitution of those tags would be "courtesy" formatting, not invalid formatting that will be escaped and show up in the resultant post.

To reproduce: 1) Set title to "Ask HN: Attempting to confirm a bug... aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaa"

Set text to: "here is text

Enter pressed twice, I have not inserted any html tags

If this doesn't error and instead posts it, I apologize."

Click submit. Observe text in the box "text" has changed to: "here is text<p>Enter pressed twice, I have not inserted any html tags<p>If this doesn't error and instead posts it, I apologize."

[go to top]