Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...XHTML Validation error with dnncore.jsXHTML Validation error with dnncore.js
Previous
 
Next
New Post
8/31/2006 12:30 PM
 
Hi, there is a problem with the dnncore.js in terms of XHTML validation.  It is using illegal HTML characters to build up the value for the __dnnVariable.

The validation error reported by the W3C HTML validator is at the end of this post.  The problem only seems to show up when I validate the Login page.  I've had a look at the dnncore.js code, and the culprit seems to be these two lines:

var DNN_COL_DELIMITER = String.fromCharCode(16);
var DNN_ROW_DELIMITER = String.fromCharCode(15);

Unfortunately, I don't really know what the __dnnVariable is used for, or what valid HTML characters I could use instead.

Does anyone have any ideas to make dnncore.js produce valid markup?

Thanks.



Error Line 177 column 76: non SGML character number 17.
...e="hidden" id="__dnnVariable" value="dshChange_imgIcon:exp-1dshReset_imgIc

You have used an illegal character in your text. HTML uses the standard UNICODE Consortium character repertoire, and it leaves undefined (among others) 65 character codes (0 to 31 inclusive and 127 to 159 inclusive) that are sometimes used for typographical quote marks and similar in proprietary character sets. The validator has found one of these undefined characters in your document. The character may appear on your browser as a curly quote, or a trademark symbol, or some other fancy glyph; on a different computer, however, it will likely appear as a completely different character, or nothing at all.

Your best bet is to replace the character with the nearest equivalent ASCII character, or to use an appropriate character entity. For more information on Character Encoding on the web, see Alan Flavell's excellent HTML Character Set Issues reference.

This error can also be triggered by formatting characters embedded in documents by some word processors. If you use a word processor to edit your HTML documents, be sure to use the "Save as ASCII" or similar command to save the document without formatting information.


 
New Post
8/31/2006 2:29 PM
 

 

I ran into this also.  To make the framework not display those characters you can change ClientAPICaps.config in the <root>\js folder.

Change this:

<functionality nm="SingleCharDelimiters" desc="Supports single character delimiters (i.e. Char(18))">
  <supports>
   <browser nm="*" />
  </supports>
  <excludes>
   <browser contains="Mac_PowerPC)" />
  </excludes>
 </functionality> 

To this:

<functionality nm="SingleCharDelimiters" desc="Supports single character delimiters (i.e. Char(18))">
  <supports />
  <excludes>
   <browser contains="*" />
  </excludes>
 </functionality> 


DotNetNuke Modules from Snapsis.com
 
New Post
9/1/2006 5:26 AM
 
thanks, I will give this a go!
 
New Post
9/8/2006 12:49 PM
 

These invalid characters seemed to have caused some pain for my IE 7 users. This fix seems to fix the freezes they were having too.

 

Thanks


WildVoice.com Michael Levy - Are you ready to be heard? WildVoice.com
 
New Post
9/8/2006 12:58 PM
 

 

Yes, we need to do something about those characters, they are not valid in a lot of situations.

Don't forget to that you'll need to make this change again when you upgrade if it is not changed in the core by then.


DotNetNuke Modules from Snapsis.com
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...XHTML Validation error with dnncore.jsXHTML Validation error with dnncore.js


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out