If I have
<span style='display:none'>
<p>this is some stuff</p>
<p>more stuff</p>
</span>
my nested <p>
tags are hidden as I would have expected. The moment I add a <p>
as a parent
<p>Some stuff
<span style='display:none'>
<p>this is some stuff</p>
<p>more stuff</p>
</span>
</p>
The nested <p>
tags are no longer hidden. While I can change the <p>
to a <div>
to get it to work, I don't understand why the former fails.
The above is a boiled down version of my actual markup. Changing to a <div>
means reworking a lot so I'd like to find a way to use the <p>
(or at least understand the rationale).
Thanks in advance
inside another
http://www.w3.org/TR/html5/dom.html#paragraph
– Aguardientico Apr 11 '14 at 19:37