Re: xhtml 2.0 noscript

> You all are pissing me off.  In clear and plain English.  YES OR NO.  
> Can you use <noscript> in xhtml2?
> You still have not answered by questions.  Everytime I write to W3C, my 

That question shouldn't be asked here, because it can be answered from
the draft specification (which I haven't read recently, so can't give
you a definitive answer).

> topic always gets hijacked and turns into a discussion about something 
> else, rather than address the original question, MY question.

This is a discussion list, not a help desk.  

> <a href='javascript:history.go(-1)'>Go back to the page you just left</a>

This is a proprietary pseudo scheme, which shouldn't be used as it
leads to dead links (which is why you want to make it conditional).
My own view is that you should not provide alternatives to standard
browser functions, but, if you do use it, you should use the standardised
onclick technique.

> In your document, well anyone with JavaScript disabled or not supported 
> will just get a link that doesn't do anything.  Annoying those people.  

Or, for one browser, reports an usupported scheme.

> So what do we do, it's simple.
> 
> <script type='text/javascript'>
> <!--

Just a caution, this is not valid XHTML.  At the moment, if you are serving
XHTML to IE you need to make all of your scripts out of line.

> document.write ("<a href='javascript:history.go(-1)'>Go back to the page you just left<\/a>")
> -->
> </script>

> <noscript><!--NOOP--></noscript>

The noscript serves no useful prupose here; this doesn't demonstrate a
use case.  In general, where noscript is permitted, it is always
valid to have nothing at all.

> Now if someone has JS enabled, they'll see the link, if not they see 
> nothing.  It's the best of both worlds.

The see something part can be done by inserting the relevant nodes 
during the onload processing.

The case where noscript has some value, although that value is based on
it not being a reasonable expectation for authors to be able to script
properly, is where scripting is used to trigger a form submission on an
onchange event.  (Note that there are accessibility problems with doing
this, as well.)  The noscript can then include the input type=submit
button.

Received on Saturday, 29 July 2006 16:08:55 UTC