<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>8817</bug_id>
          
          <creation_ts>2006-05-09 18:04:50 -0700</creation_ts>
          <short_desc>REGRESSION: TinyMCE: Clicking on a link has no effect</short_desc>
          <delta_ts>2006-07-18 16:23:34 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>HTML Editing</component>
          <version>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc>http://tinymce.moxiecode.com/example.php?example=true</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar, Regression</keywords>
          <priority>P1</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>7156</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Justin Garcia">justin.garcia</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ian</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>41659</commentid>
    <comment_count>0</comment_count>
    <who name="Justin Garcia">justin.garcia</who>
    <bug_when>2006-05-09 18:04:50 -0700</bug_when>
    <thetext>When you hover over a link inside the editable region, the href that appears in the status bar is correct, but when you click on the link nothing happens and the status bar text changes to Run script: &quot;void(0);&quot;
We think this is a regression in TinyMCE&apos;s sources.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41809</commentid>
    <comment_count>1</comment_count>
    <who name="Timothy Hatcher">timothy</who>
    <bug_when>2006-05-09 21:57:28 -0700</bug_when>
    <thetext>This might not be a regression in TinyMCE but an intentional change to prevent bug 7156. This might install an click handler that calls void(0) to prevent the navigation. It is hard to say by looking their whitespace-stripped script file.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44849</commentid>
    <comment_count>2</comment_count>
    <who name="Alice Liu">alice.barraclough</who>
    <bug_when>2006-06-06 07:52:48 -0700</bug_when>
    <thetext>&lt;rdar://problem/4575096&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50031</commentid>
    <comment_count>3</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2006-07-16 06:23:16 -0700</bug_when>
    <thetext>(In reply to comment #1)
&gt; It is hard to say by looking their whitespace-stripped script file.

Full source to TinyMCE is at their website, so someone should look at that and verify that this is intentional on their part.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50306</commentid>
    <comment_count>4</comment_count>
    <who name="David Carson">dacarson</who>
    <bug_when>2006-07-18 16:09:05 -0700</bug_when>
    <thetext>Both Opera 9.0 and FF 1.5.0.4 exhibit similar behaviour. Clicking the link does nothing. FF and Safari ToT does allow you to right click the link and open in new window/new tab, which opens the link to sourceforge.
Checking the code, it seems that the experience behaviour is correct. Here is the code that handles link selection in MCE:
// Patch the darned link
					if (lnk &amp;&amp; e.type == &quot;mousedown&quot;) {
						lnk.setAttribute(&quot;mce_real_href&quot;, lnk.getAttribute(&quot;href&quot;));
						lnk.setAttribute(&quot;href&quot;, &quot;javascript:void(0);&quot;);
					}

					// Patch back
					if (lnk &amp;&amp; e.type == &quot;click&quot;) {
						window.setTimeout(function() {
							lnk.setAttribute(&quot;href&quot;, lnk.getAttribute(&quot;mce_real_href&quot;));
							lnk.removeAttribute(&quot;mce_real_href&quot;);
						}, 10);
					}


As can be seen, javascript:void(0) is correct.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50310</commentid>
    <comment_count>5</comment_count>
    <who name="David Carson">dacarson</who>
    <bug_when>2006-07-18 16:23:34 -0700</bug_when>
    <thetext>Not a bug</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>