开发者

Empty Div Causing Very Strange Behavior

开发者 https://www.devze.com 2023-01-31 08:50 出处:网络
Got something like this <div class=\"something\"&开发者_运维知识库gt; <div></div>

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

&nbsp;

inside the empty div.

0

精彩评论

暂无评论...
验证码 换一张
取 消