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

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -