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

    Question

  • 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)
    Tuesday, September 20, 2011 6:53 AM

Answers

  • 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
    Friday, September 23, 2011 8:36 AM
    Moderator

All replies