Bug with target attribute and spans inside a tags.

Last post 09-13-2010, 2:08 PM by Eric. 10 replies.
Sort Posts: Previous Next
  •  08-02-2010, 11:14 AM 62942

    Bug with target attribute and spans inside a tags.

    In IE8 (possibly other browsers), the CuteSoft editor will translate this:

    <a href="http://cutesoft.net/" target="_blank">

    <strong>

    <span style="font-size: 10pt;">If you wish to return to the home page at any time please click here</span>

    </strong>

    </a>

    to this:

    <a href="http://cutesoft.net/"><strong><span style="target: _blankfont-size: 10pt">If you wish to return to the home page at any time please click here</span></strong></a>

    Unfortunatly this messes up the styles and everything for the link. Is there a work around to fix this?
     
  •  08-03-2010, 1:44 AM 62987 in reply to 62942

    Re: Bug with target attribute and spans inside a tags.

    Hi StevenLockey,
     
    I tested on ie7 and ie8, it works fine for me on both browsers.
     
    Can you reproduce this issue on demo http://cutesoft.net/example/general.aspx?
     
    If the demo works fine you, please download the latest version and try again.
     
    Regards,
     
    ken
  •  08-05-2010, 8:28 AM 63126 in reply to 62987

    Re: Bug with target attribute and spans inside a tags.

    I'm afraid it does the same on the demo page.
     
    It only appears to do this in IE not in FF, I was using IE8.
     
    If you go into HTML mode and add this code: 
     

    <a target="_blank" href="http://cutesoft.net/"><strong><span style="font-size: 10pt;">If you wish to return to the home page at any time please click here</span></strong></a>

    then select 'Normal' from the bottom of the page, then select HTML mode again you will see the code now says:
    <a href="http://cutesoft.net/"><strong><span style="target: _blankfont-size: 10pt">If you wish to return to the home page at any time please click here</span></strong></a>
     
     
    Not good !!!
     
    Thanks
     
     
  •  08-09-2010, 6:31 AM 63252 in reply to 63126

    Re: Bug with target attribute and spans inside a tags.

    Hi, any results on this yet?

    This is a major problem since the editor can screw up the code it produces via the hyperlink manager with this bug if the user is using IE.
     
    Thanks
  •  08-11-2010, 2:39 PM 63336 in reply to 63252

    Re: Bug with target attribute and spans inside a tags.

    1. IE8.0.7600
     
    Steps are as follows:
    b. switch to "HTML"
    c. remove all html code
    d. paste the following html code:
       <a target="_blank" href="http://cutesoft.net/"><strong><span style="font-size: 10pt;">If you wish to return to the home page at any time please click here</span></strong></a>
    e. switch between "Normal" and "HTML" several times
    f.  The HTML code will be:
        <a href="http://cutesoft.net/" target="_blank"><strong><span style="font-size: 10pt">If you wish to return to the home page at any time please click here</span></strong></a> 
        I cannot get the following html code:
       <a href="http://cutesoft.net/"><strong><span style="target: _blankfont-size: 10pt">If you wish to return to the home page at any time please click here</span></strong></a>
     
    2. Firefox 3.6.6
     
    The html code will be:
    <a target="_blank" href="http://cutesoft.net/"><strong><span style="font-size: 10pt;">If you wish to return to the home page at any time please click here</span></strong></a>
     
    We cannot reproduce this issue, can you test it again? please do that in our online demo:
    If you can reproduce it, please tell us your operation steps.
     
    Regards,
    Eric
     
     
     
  •  08-12-2010, 10:22 AM 63360 in reply to 63336

    Re: Bug with target attribute and spans inside a tags.

    Hi, I've just tested it and if you copy the code from the forum for some reason it doesn't work.
    If you wish to return to the home page at any time please click here
    Try grabbing the code there from the HTML source and doing it from there
    I've just tried it and if you grab the code from the HTML source here then it should produce the same error when you paste it into your demo site. I think this site may be changing the code slightly hence the bug not showing up.
     
    Thanks
  •  08-16-2010, 3:25 PM 63424 in reply to 63360

    Re: Bug with target attribute and spans inside a tags.

    StevenLockey:
    Hi, I've just tested it and if you copy the code from the forum for some reason it doesn't work.
    If you wish to return to the home page at any time please click here
    Try grabbing the code there from the HTML source and doing it from there
    I've just tried it and if you grab the code from the HTML source here then it should produce the same error when you paste it into your demo site. I think this site may be changing the code slightly hence the bug not showing up.
     
    Thanks
     
    This forum has a filter which will remove target="_blank".
     
    But Cute Editor will not remove the above code.
     
    Are you sure you can reproduce this issue in the following example?
     
     
    We cannot reproduce this issue in any browser.

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  09-03-2010, 9:23 AM 63832 in reply to 63424

    Re: Bug with target attribute and spans inside a tags.

    Hi, this works everytime I test it on your example if you follow the directions I put exactly.
     
    I did it exactly as you would have to do it, IE doing a view source on this page and grabbing it from there and it works identically to how I described. 
     
     
  •  09-03-2010, 11:19 AM 63835 in reply to 63126

    Re: Bug with target attribute and spans inside a tags.

    StevenLockey:
    I'm afraid it does the same on the demo page.
     
    It only appears to do this in IE not in FF, I was using IE8.
     
    If you go into HTML mode and add this code: 
     

    <a target="_blank" href="http://cutesoft.net/"><strong><span style="font-size: 10pt;">If you wish to return to the home page at any time please click here</span></strong></a>

    then select 'Normal' from the bottom of the page, then select HTML mode again you will see the code now says:
    <a href="http://cutesoft.net/"><strong><span style="target: _blankfont-size: 10pt">If you wish to return to the home page at any time please click here</span></strong></a>  
     
    Not good !!!
     
    Thanks
     
     
      
    We have followed these steps, and cannot reproduce it in http://cutesoft.net/example/general.aspx. Can you try it again and post the detailed reproduce steps here?
     
    Thanks for asking
  •  09-13-2010, 9:35 AM 63952 in reply to 63835

    Re: Bug with target attribute and spans inside a tags.

    I'll post you an e-mail with the code in as the forum seems to modify the code I post here.
  •  09-13-2010, 2:08 PM 63962 in reply to 63952

    Re: Bug with target attribute and spans inside a tags.

    I received your email, your html code is:
    <a target="_blank" href="http://cutesoft.net/"><strong><span style="font-size: 10pt;">If you wish to return to the home page at any time please click here</span></strong></a>
     
    You can query http://www.w3schools.com/tags/att_a_href.asp,  the href value are as follows:
     
    Value
    Description
    URL
    The URL of the link.
    Possible values:
    • An absolute URL - points to another web site (like href="http://www.example.com/default.htm")
    • A relative URL - points to a file within a web site (like href="default.htm")
    • An anchor URL - points to an anchor within a page (like href="#top")

    You cannot set "href" to "/", if you change it to the value which conforms to the grammer of w3, your will cannot reproduce this issue.
     
    Thank you for your business
     
     
View as RSS news feed in XML