Empty Div Causing Very Strange Behavior
Got something like this
<div class="something"&开发者_运维知识库gt;
<div></div>
<p>
Some text here
</p>
</div>
This is all called in a template in XSL.
For some reason I am getting when it's rendered that the empty div is never closed. The <p>
and its contents are inside this div. This continues on and on for each time this template is called. :( If I only take out the empty div, all the "something" divs are separate entities and not inside each other.
How could this be happening?!
Try putting an
inside the empty div.
精彩评论