W3C home > Mailing lists > Public > www-html@w3.org > January 2004

noscript inside p

From: Greg Willits <willitsg@pacbell.net>
Date: Sat, 3 Jan 2004 10:00:55 -0800
Message-Id: <C6B0CC79-3E16-11D8-84A9-000393D6F798@pacbell.net>
To: www-html@w3.org

XHTML 1.0 T doesn't allow <noscript> inside <p>, or at least the 
current validator doesn't allow it. I don't understand the reasoning 
for that. A <script> can be inside of <p>, but the <noscript> 
alternative cannot. This doesn't make sense.

What I want to do is:
	<p> some text yadda yadda [customEmailMaskTag] bla bla bla </p>

Which generates:

	<p> some text yadda yadda
	<script type="text/javascript">
	.... some JS stuff here to build mailto: link ....
	 bla bla bla

But XHTML validation fails. The custom tag is general purpose, so 
there's no way for me to know whether P or Hn or who knows what is 
being used, and I can't just put <p> inside the noscript tags.

It seems to me the specification should allow <noscript> inside of tags 
like <p> for the above purposes.

Maybe this has changed in subsequent specs, I haven't got that far yet.

-- greg willits
Received on Saturday, 3 January 2004 13:23:35 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:06:07 UTC