google chrome - Does the browser rearrange HTML if it violates some conditions -


i have template dynamically generating html

<span>   <p> words words words </p>   <div> <span>text</span></div> </span> 

but when check rendered html, more

<span><span> <p>words words words</p> <div><span>text</span></div> 

yes, browsers able "fix" broken code quite nowadays. problem here: nesting block elements inside inline elements. please change outer span div!

if need fixing - please tell more template, js or php code? post code if possible.


Comments

Popular posts from this blog

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -

python - Error while using APScheduler: 'NoneType' object has no attribute 'now' -