Bug 114100

Summary: Text Editor inserts function anonymous() {}. Then code fails.
Product: [Retired] Red Hat Enterprise CMS Reporter: James Kearns <james.kearns>
Component: APLAWS-usabilityAssignee: Tzu-Mainn Chen <tzumainn>
Status: CLOSED CURRENTRELEASE QA Contact: Daniel Berrangé <berrange>
Severity: medium Docs Contact:
Priority: medium    
Version: nightlyCC: sseago
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
URL: http://aplaws-ws3.ccm-demo.redhat.de/ccm/content/preview/information-services/parks/this-article-contains-a-link-which-uses-onclick.en
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-09-03 14:29:25 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description James Kearns 2004-01-22 17:07:00 UTC
Description of problem:
Using 

<a href="#" onClick="window.open 
('http://www.sony.com/','myExample4','width=200,height=200')">hello</a
>

in html source works at first. But if I return to the saved Article 
and do more editing later, the code stops working. The code has been 
changed by the system to

<a onclick="function anonymous()
                                 {
                                 

window.open
('http://www.sony.com/','myExample4','width=200,height=200')
                                 }" href="#">hello</a>

Futher editing and previewing results in more function anonymous() 
code being added automatically.


Version-Release number of selected component (if applicable):


How reproducible:
Every time.

Steps to Reproduce:
1.add <a href="#" onClick="window.open
('http://www.sony.com/','myExample4','width=200,height=200')">hello</a
> into any Article content item source.

2. Save and Preview. Click hello. Sony.com pop-up appears. This is 
all ok.

3. Now go back and edit the Article. Any editing, say add some random 
text elsewhere in the article.

4. Save and Preview. Click hello. 
 
Actual results:
Sony.com pop-up does not appear.

Expected results:
Sony.com pop-up appears.

Additional info:
Arturo Dell has also observed this problem.

Comment 1 Tzu-Mainn Chen 2004-01-23 08:28:39 UTC
I've checked in a fix.

Comment 2 David Lawrence 2006-07-18 03:16:09 UTC
QA_READY has been deprecated in favor of ON_QA. Please use ON_QA in the future.
Moving to ON_QA.