Bug 106159 - Bebop Link component setConfirmation fails in IE 6
Summary: Bebop Link component setConfirmation fails in IE 6
Keywords:
Status: CLOSED EOL
Alias: None
Product: Red Hat Web Application Framework
Classification: Retired
Component: other
Version: nightly
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: ccm-bugs-list
QA Contact: Jon Orris
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-10-03 12:47 UTC by Richard Li
Modified: 2020-03-27 19:42 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-03-27 19:42:05 UTC
Embargoed:


Attachments (Terms of Use)

Description Richard Li 2003-10-03 12:47:53 UTC
Version: ccm-core-5.3.0.AUTO.06.17.2003-1

Description:

Bebop writes out a confirm="confirm" attribute in the <a> html tag when
Link.setConfirmation() is called.
confirm is not a valid <a> attribute for IE and f@!~s up my IE 6.0 browser
causing it to not fire the onClick event.

Rewrote Link.xsl
	 Line 46:       <![CDATA[ document.write(']]><a><xsl:for-each
select="@*[name() != 'href_no_javascript' and name() !=
'confirm']"><xsl:attribute name="{name()}"><xsl:value-of
select="."/></xsl:attribute></xsl:for-each><xsl:apply-templates
mode="javascript-mode"/><![CDATA[')]]>
	Line 126:       <![CDATA[ document.write(']]><a><xsl:for-each
select="@*[name() != 'href_no_javascript' and name() !=
'confirm']"><xsl:attribute name="{name()}"><xsl:value-of
select="."/></xsl:attribute></xsl:for-each><xsl:apply-templates
mode="javascript-mode"/><![CDATA[')]]>


Reproducibility: Every Time

Steps to Reproduce:

1. Create a link that calls setConfirmation()
2. Open up IE 6
3. Click on the link

Actual Results: IE 6 will not display a confirmation dialog box but will
follow the link.

Expected Results: A confirmation dialog box should appear.  If the user
clicks cancel the link should not be followed.  If the user click ok, the
link is followed.

Comment 1 Arjan Moraal 2004-01-26 11:44:42 UTC
I think the problem is not in the confirm="confirm" attribute, but
with escaping of ' characters in the onClick attribute:

onclick="return confirm(\'my message text\');"

IE doesn't execute the confirm, but Mozilla and Opera do. When
removing the two backslashes in around the message text, it also works
in IE.

Comment 2 Bryan Che 2004-02-13 15:17:44 UTC
fixed at changelsit 40357

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


Note You need to log in before you can comment on or make changes to this bug.