HomeHomeUsing DotNetNuk...Using DotNetNuk...Administration ...Administration ...XHTML Validation error with dnncore.jsXHTML Validation error with dnncore.js
Previous
 
Next
New Post
8/31/2006 10:30 AM
 
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 12: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 3:26 AM
 
thanks, I will give this a go!
 
New Post
9/8/2006 10:49 AM
 

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 10:58 AM
 

 

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 DotNetNuk...Using DotNetNuk...Administration ...Administration ...XHTML Validation error with dnncore.jsXHTML Validation error with dnncore.js


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

Attend A Webinar
Free Demo Site
Download DotNetNuke Professional Edition Trial
Have Someone Contact Me

Like Us on Facebook Join our Network on LinkedIn Follow DNN Corporate on Twitter Follow DNN on Twitter

Advertisers

DotNetNuke Scoop!

Sponsors

DotNetNuke Corporation

DotNetNuke Corp. is the steward of the DotNetNuke open source project, the most widely adopted Web Content Management Platform for building web sites and web applications on Microsoft .NET. Organizations use DotNetNuke to quickly develop and deploy interactive and dynamic web sites, intranets, extranets and web applications. The DotNetNuke platform is available in a free Community and subscription-based Professional and Enterprise Editions with an Elite Support option. DotNetNuke Corp. also operates the DotNetNuke Store where users purchase third party apps for the platform.