Wrapping a hyperlink around a div

I’ve noticed that when I wrap a hyperlink around a div that has text in it, that Percussion will rewrite the code to where the hyperlink appears above the div. I’ve even added a   before the opening div and it still does this. Here is an example of the code.



test

or  

test

  

Rewritten by Percussion


test

or  

test

  

Matt,

You’re adding this code into a Rich Text widget, correct? In the current version of the TinyMCE plugin that we’re using to power the RTW, nesting Div tags within anchor tags is not regarded as valid HTML and will be stripped out (even though HTML5 now accepts this practice).

As a workaround, you could use CSS to style a Span tag to behave in the same manner as your Div tag (block display, etc.) and wrap your A tag around that. Otherwise, feel free to post an Idea requesting we modify our instance of TinyMCE to allow for Div tags within A tags.

+1 to Nathaniel for being up to speed on this change in HTML5 ;).

@Matt, I’ll +1 your idea request when you post it for modifying their TinyMcE to allow for the a wrapping of div tags.