Awesome! That worked.
Thanks!
Chris Rahe
Executive Director of Marketing and Development
1020 High Road - P. O. Box 8
Bremen, IN 46506
Telephone 574.546.8011
Facsimile 574.546.4312
Email - <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Peter Leing
Sent: Thursday, April 05, 2007 2:50 PM
To: [email protected]
Subject: RE: [WSG] Need help with CSS breadcrumbs and navigation
Try the following from http://www.hixie.ch/advocacy/xhtml:
<script> and <style> elements in XHTML sent as text/html have to be
escaped using ridiculously complicated strings.
This is because in XHTML, <script> and <style> elements are #PCDATA
blocks, not #CDATA blocks, and therefore <!-- and --> really _are_
comments tags, and are not ignored by the XHTML parser. To escape
script in an XHTML document which may be handled as either HTML4 or
XHTML, you have to use:
<script type="text/javascript"><!--//--><![CDATA[//><!--
...
//--><!]]></script>
To embed CSS in an XHTML document which may be handled as either
HTML4 or XHTML, you have to use:
<style type="text/css"><!--/*--><![CDATA[/*><!--*/
...
/*]]>*/--></style>
Yes, it's pretty ridiculous. If documents _aren't_ escaped like
this, then the contents of <script> and <style> elements get
dropped on the floor when parsed as true XHTML.
(This is all assuming you want your pages to work with older
browsers as well as XHTML browsers. If you only care about XHTML
and HTML4 browsers, you can make it a bit simpler.)
_____
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Rahe
Sent: Thursday, April 05, 2007 2:36 PM
To: [email protected]
Subject: RE: [WSG] Need help with CSS breadcrumbs and navigation
Thanks Ben, but that wasn’t the problem. The problem is with the little bit of
JavaScript (when I comment it out, it validates, but doesn’t work in IE6)
Here is the message I get when trying to validate:
Below are the results of checking this document for XML well-formedness
<http://www.w3.org/TR/REC-xml#sec-conformance> and validity.
1. Error Line 11 column 29: character ";" not allowed in attribute
specification list.
for (var i=0; i<sfEls.length; i++) {
<http://validator.w3.org/feedback.html?uri=http%3A%2F%2Fwww.bremenhospital.org%2Ftestsite%2Findex2.html;errmsg_id=81#errormsg>
✉
2. Error Line 11 column 29: element "sfEls.length" undefined.
for (var i=0; i<sfEls.length; i++) {
You have used the element named above in your document, but the document type
you are using does not define an element of that name. This error is often
caused by:
o incorrect use of the "Strict" document type with a document that uses
frames (e.g. you must use the "Frameset" document type to get the "<frameset>"
element),
o by using vendor proprietary extensions such as "<spacer>" or
"<marquee>" (this is usually fixed by using CSS to achieve the desired effect
instead).
o by using upper-case tags in XHTML (in XHTML attributes and elements
must be all lower-case.
<http://validator.w3.org/feedback.html?uri=http%3A%2F%2Fwww.bremenhospital.org%2Ftestsite%2Findex2.html;errmsg_id=76#errormsg>
✉
3. Error Line 21 column 8: end tag for "sfEls.length" omitted, but OMITTAG
NO was specified.
</script>
You may have neglected to close an element, or perhaps you meant to
"self-close" an element, that is, ending it with "/>" instead of ">".
Chris Rahe
Executive Director of Marketing and Development
1020 High Road - P. O. Box 8
Bremen, IN 46506
Telephone 574.546.8011
Facsimile 574.546.4312
Email - <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ben Dodson
Sent: Thursday, April 05, 2007 2:27 PM
To: [email protected]
Subject: Re: [WSG] Need help with CSS breadcrumbs and navigation
Hi there,
The reason it's not validating is because you haven't unescaped the spaces in
your URLs - replace all spaces with %20 and you should be fine :-)
Ben
--
e: [EMAIL PROTECTED]
w: http://www.bendodson.com/
*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************
*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************
******************************************************************************
NOTICE: The information contained in this message is intended for the
addressess(s) only and may be confidential, proprietary, or legally
privileged. If you have received this message in error or there are any
problems with the transmission, please immediately notify us by return
e-mail. The unauthorized use, disclosure, copying, or alteration of this
message is strictly forbidden. The sender will not be liable for any
damages arising from alteration of the contents of this message by a
third-party or as a result of any virus being transmitted. This notice
is automatically appended to each e-mail message transmitted from the
sender's e-mail domain.
*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************
*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************