Bug report: replacement of anchor.href replaces anchor.innerText a

Discussion in 'Internet Explorer' started by Artyom, Apr 2, 2010.

  1. Artyom

    Artyom Guest

    If anchor.innerText contains the "@" sign, anchor.innerText is replaced with
    anchor.href

    here is the example of page that shows the misfunctionality.

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html>

    <body>

    <a href="#" onclick="return false;">@@[email protected]@</a>

    <script type="text/javascript">
    var anchors=document.getElementsByTagName('a');

    for(var i=anchors.length-1;i>=0;i--)
    anchors.href=decodeURI(anchors.href);
    </script>

    </body>
    </html>


    ----------------
    This post is a suggestion for Microsoft, and Microsoft responds to the
    suggestions with the most votes. To vote for this suggestion, click the "I
    Agree" button in the message pane. If you do not see the button, follow this
    link to open the suggestion in the Microsoft Web-based Newsreader and then
    click "I Agree" in the message pane.

    http://www.microsoft.com/communitie...&dg=microsoft.public.internetexplorer.general
     
    Artyom, Apr 2, 2010
    #1
    1. Advertisements

  2. Artyom

    Tom Willett Guest

    Since this is a peer-to-peer newsgroup, it isn't a bug reporting medium..
    This is: http://connect.microsoft.com/

    : If anchor.innerText contains the "@" sign, anchor.innerText is replaced
    with
    : anchor.href
    :
    : here is the example of page that shows the misfunctionality.
    :
    : <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    : "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    : <html>
    :
    : <body>
    :
    : <a href="#" onclick="return false;">@@[email protected]@</a>
    :
    : <script type="text/javascript">
    : var anchors=document.getElementsByTagName('a');
    :
    : for(var i=anchors.length-1;i>=0;i--)
    : anchors.href=decodeURI(anchors.href);
    : </script>
    :
    : </body>
    : </html>
    :
    :
    : ----------------
    : This post is a suggestion for Microsoft, and Microsoft responds to the
    : suggestions with the most votes. To vote for this suggestion, click the "I
    : Agree" button in the message pane. If you do not see the button, follow
    this
    : link to open the suggestion in the Microsoft Web-based Newsreader and then
    : click "I Agree" in the message pane.
    :
    :
    http://www.microsoft.com/communitie...&dg=microsoft.public.internetexplorer.general
     
    Tom Willett, Apr 2, 2010
    #2
    1. Advertisements

  3. Artyom

    Artyom Guest

    thank you very much! i'll send my feedback there
     
    Artyom, Apr 2, 2010
    #3
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.