Note: Forums will be making significant UX changes to address key usability improvements surrounding search, discoverability and navigation. To learn more about these changes please visit the announcement which can be found HERE.
An "a" tag contains a blocked element has a different quick menu in IE8+

Answered An "a" tag contains a blocked element has a different quick menu in IE8+

  • Tuesday, September 20, 2011 6:53 AM
     
     

    html code

    <a href="#">text</a>

    Its quick menu seems like this:

     

    while

    <a href="#"><b style="display:block">test</b></a>

    showes like this:

    I'm wondering what causes the different ?

     

    • Moved by Rob Pan Friday, September 23, 2011 6:49 AM (From:Internet Explorer Extension Development)
    •  

All Replies

  • Friday, September 23, 2011 6:49 AM
     
     

    Hi,

     

    According to your description, I will move your thread to the Internet Explorer Web Development forum for better support. Thanks for your understanding.

     

    Best Regards,

    Rob


    Rob Pan [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • Friday, September 23, 2011 8:36 AM
    Moderator
     
     Answered

    Hi librajt,

    Thanks for your post.

    I assume you are running the page in IE9 Standards Mode. It seems that IE9 standard mode treat <a href="#"><b style="display:block">test</b></a> as plain text, so that the context menu looks the same like you right click on black space of the web page or plain text.

    I would like to recommend you try <b style="display:block"><a href="#">test</a></b>,  it works on my side.

    Hope this helps, thanks.


    Please mark the replies as answers if they help or unmark if not.
    If you have any feedback about my replies, please contact msdnmg@microsoft.com
    Microsoft One Code Framework
  • Wednesday, October 12, 2011 6:06 AM
     
     

    Thanks very much.

    Maybe I should change the code.. 

    BTW, is there any technical document about IE feature ?

  • Wednesday, October 12, 2011 6:25 AM
    Moderator
     
     

    Hi librajt,

    Thanks for your reply.

    The Internet Explorer 9 Guide for Developers provides a look at the features and improvements in Internet Explorer 9. please refer:

    http://msdn.microsoft.com/en-us/ie/ff468705

    Thanks.


    Please mark the replies as answers if they help or unmark if not.
    If you have any feedback about my replies, please contact msdnmg@microsoft.com
    Microsoft One Code Framework