Closed Bug 318408 Opened 19 years ago Closed 18 years ago

Not notified of strip tags on review / comment field: try htmlentities or a warning

Categories

(addons.mozilla.org Graveyard :: Public Pages, defect)

defect
Not set
major

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: ezyang, Assigned: clouserw)

References

()

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051111 Firefox/1.5 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051111 Firefox/1.5 Posted comments are immutable: you can't change them. As a result, it's important not to do anything really amazing to the text. It appears that the system strips HTML from the comment. This can be unexpected behavior: you might have expected the tags to just be output after being entity-ized. I'd propose two possible fixes for this problem: 1. Insert warning on comment field that HTML will be stripped 2. Convert HTML < and > to their entities Reproducible: Always Steps to Reproduce: 1. Submit a comment that includes < or > in them (like <noscript>) Actual Results: Tags disappear. Expected Results: < and > get converted into entities OR Comment field says that HTML will be stripped out.
I vividly second this request. Most importantly, not everything using "<" or ">" is HTML. I occasionally tend to enclose my email address in angle brackets like <michael@buschbeck.net>, and stripping that out of a comment renders it rather useless. The most obvious way of handling "<" and ">" in comments would be escaping them so that they show up exactly as they were entered, not removing any text which happens to be located between a "<" and the next ">".
Severity: minor → major
Status: UNCONFIRMED → NEW
Ever confirmed: true
Target Milestone: 1.0 → ---
Version: unspecified → 2.0
Mass change - bugs to be read / (re)confirmed.
Assignee: Bugzilla-alanjstrBugs → nobody
Priority: -- → P5
Priority: P5 → --
Blocks: 343573
Assignee: nobody → clouserw
Target Milestone: --- → 2.0
Remora's comment system is going to be very different (using vanilla forums), and our current version is in code freeze. WONTFIXing this bug.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → WONTFIX
*** Bug 360110 has been marked as a duplicate of this bug. ***
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.