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...Performance and...Performance and...HTML5 Validation ErrorsHTML5 Validation Errors
Previous
 
Next
New Post
8/20/2010 1:06 PM
 
Was working on a new skin for html5 and ran into these errors validating my site.

Line 3, Column 152: Bad value Content-Script-Type for attribute http-equiv on element meta.
…pt" http-equiv="Content-Script-Type" 
 
New Post
2/13/2011 4:43 PM
 
Hi Stephen
Please remember that the W3C HTML5 validator is not reliable at the moment.
Your error is related to one of the meta tags in Default.aspx and you could try to use optimised Default.aspx file that you can find here http://www.mattjura.com/home/post/62/...
There are additional files you may find useful for skinning in HTML5.
Hope thsi helps
 
New Post
2/13/2011 5:22 PM
 
Stephen

HTML5 in DNN is very achievable. 

First you need to change the doc type in the YourSkinname.doctype.xml file from


<SkinDocType>

<![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">]]>

</SkinDocType>

to 

<SkinDocType><![CDATA[<!doctype html>]]></SkinDocType>


You will need to make sure you reset all the HMTL tags as you dont want any of the DNN legacy styles causing trouble

You will also need to set the semantic elements <Nav>, <article> etc to display:block

As we are all having to deal with IE and older browser you will need to use something like Modernizr to help sort things out for IE5.5-8

To get  Modernizr running on DNN you need either
  • add HtmlAttributes.Add("class", "no-js") the default.aspx.vb its somewhere near line 244 in the if statement. Note this in not recommended as you need to remember this was done when you go to upgrade.
  •  DNN Widget http://dnnwidgets.codeplex.com/wikipage?title=Modernizr%20Widget&referringTitle=Home

A good place to start with the HTML5 and what you need to consider when it comes to implementing HTML5, is Paul Irish's HTML5 boilerplate http://html5boilerplate.com/

Paul has a video where he runs through the boilerplate http://net.tutsplus.com/tutorials/html-css-techniques/the-official-guide-to-html5-boilerplate/


You wont be able to just slot the boilerplate straight into DNN but you will be able to get close.


also on validation, worth a read http://net.tutsplus.com/articles/general/but-it-doesnt-validate/




hope this helps

Marcel






 
New Post
2/13/2011 5:34 PM
 
Hi Marcel - exactly as the files you can find in my post mentioned above - http://www.mattjura.com/home/post/62/... , any suggestions and comments are very welcome.

Good call about the Modernizr Widget
 
New Post
2/13/2011 5:44 PM
 
Hey Matt

Just having a look at your HTML5 run through. looks good, I think you have nailed it.

Just quickly, in the skin.aspx file you are using   <!--[if IE 9 ]><div id="Body" class="ie9"><![endif]-->  Are you hedging your bet that IE9 will continue to be badly behaved?

also doesn't the the Body Div need to conditionally closed?  </div><!-- eof #Body -->

Thanks

Marcel

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Performance and...Performance and...HTML5 Validation ErrorsHTML5 Validation Errors


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