Closed Bug 126359 Opened 23 years ago Closed 18 years ago

Composing a message with "news:" causes hyperlink to be created

Categories

(MailNews Core :: Composition, defect)

x86
Windows 98
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME
mozilla1.2alpha

People

(Reporter: mb_add, Assigned: bugzilla)

Details

When I compose a message using Mozilla 0.9.8, a hyperlink for a news group is
created prior to sending.  (Also visible if you 'save' and look in the Drafts
folder.)  This happens when anyone types "news:".  If the following character is
a space or tab, the URI will be to a newsgroup which does not have any value
(NULL).  This probably should be fixed because it's not visible to the user
unless they save a draft and review the message prior to sending.
To produce this, in a mail message type:
     Company news:<tab> February 5, 2001
Save the message and review in Mozilla's Drafts folder.  A URI for "news:// /"
will be created.  (Could be sent in this form which could look unprofessional.)
QA Contact: sheelar → stephend
Yup, I see this with build 2002-02-18-03 on Windows 2000, but only if I
introduce tab.

news://  / is what the actual link is, and <a class="moz-txt-link-freetext"
href="news:&nbsp;&nbsp;">news:&nbsp;&nbsp;</a> &nbsp;

is the style we apply to that node.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Using Mozilla RC1, I am not able to reproduce this problem. WFM
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → WORKSFORME
I just tried it on the same Mozilla 1.0 RC1 and still see the same issue.

Looking at it further, using the <SPACEBAR> does not reproduce this issue.  It
looks like if there's a space after the colon it's not an issue but using the
<TAB> key does modify the text to a URI.
Build ID: 2002-05-08 Windows 2000 Commercial 1.0 Branch.

JFD - I still see this using the following message:

Company News:<tab>test

re-opening.  BenB (beonex.com) might have assistance here?
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
ok, I see the problem...
Status: REOPENED → ASSIGNED
Target Milestone: --- → mozilla1.2alpha
Product: MailNews → Core
I'm not able to reproduce this symptom.  I'm assuming this is about composing in the HTML compose window, but there doesn't seem to be a way to actually stuff a <tab> character in there; typing <tab> results in three spaces.  
I tried using Alt+0009 and still got the same three-spaces inserted.  Neither do I see this with the  &#9;  entity.

The plain-text URL recognizer only triggers on 'news:' if it's followed by alphanumeric or certain punctuation, but not if followed by whitespace (or period).
Status: ASSIGNED → RESOLVED
Closed: 22 years ago18 years ago
Resolution: --- → WORKSFORME
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.