Wednesday, 21 August 2013

Why this "" is shown strange in DOM?

Why this "" is shown strange in DOM?

When you put <p><div></br></div></p> into body, you will get the strange
DOM structure like:
<p></p>
<div></br></div>
<p></p>
Why does this happened? It seems that when <p> contains a block element
this will happen.

No comments:

Post a Comment