1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

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

  1. Artyom

    Artyom Flightless Bird

    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;">@@SomeText@@</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
     
  2. Tom Willett

    Tom Willett Flightless Bird

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

    "Artyom" <Artyom@discussions.microsoft.com> wrote in message
    news:6C894F73-7689-44DE-BD59-470DF82B2B19@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;">@@SomeText@@</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
     
  3. Artyom

    Artyom Flightless Bird

    Re: Bug report: replacement of anchor.href replaces anchor.innerTe

    thank you very much! i'll send my feedback there

    "Tom Willett" wrote:

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

Share This Page