Empty <a href=""> causes bad html and "href_cetemp" to appear (CE 6.6)

  •  04-08-2010, 11:42 AM

    Empty <a href=""> causes bad html and "href_cetemp" to appear (CE 6.6)

    CuteEditor does not handle <a> tags with an empty href attribute (possibly happens only when a target attribute is also present) tags correctly.
    The html code gets "chopped" incorrectly, resulting in a "href_cetemp" attribute appearing and in some cases invalid HTML (attributes with opening quotes and no closing quotes.
     
    (I know, a tags with ampty href attributes aren't good for anyhting, but explain that to a user that entered this piece of code and had half of his html disappear)
     
    This can be reproduced on 
    http://cutesoft.net/example/general.aspx today (so it is valid for the current version)
     
    To reproduce, do the following:
    1. go to 
    http://cutesoft.net/example/general.aspx
    and switch to HTML view
    2. paste the following  HTML instead of  the example HTML
    <a href="" target="_blank">blabla</a>
    blabla yourself
    3. Switch to "Normal" view, then back to HTML view
    4. The HTML code was changed to:
     
    <a href="" target="background-color: yellow; font-family: Courier;"><a href="" target="_blank">blabla</a>
    does a lot of "fun and destructive" things to html code around it in CuteEditor. try pasting it into the example HTML in different places to see it butcher the HTML in all sorts of ways
     
View Complete Thread