I have an apex:outputPanel
tag with an a
tag inside it, with a div
inside it, like so:
<apex:outputPanel id="myPanel">
<a href="http://google.com">
<div>Test</div>
</a>
</apex:outputPanel>
When this originally renders, it renders as expected:
<span id="j_id0:j_id302:j_id303:myPanel">
<a href="http://google.com">
<div>test</div>
</a>
</span>
But when I run an apex:actionFunction
that rerenders myPanel, it renders as such:
<span id="j_id0:j_id302:j_id303:myPanel">
<a href="http://google.com"></a>
<div>test</div>
</span>
I want the div
to be inside the a
tag just like the first render. Is there a reason this happens?