HTML5 - Target schema for Validation

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
8/30/2011 10:17:50 AM
Gravatar
Total Posts 245
mojoPortal Community Expert

HTML5 - Target schema for Validation

Hi

I'm doing some work using the new HTML5 canvas tag in a custom mojoPortal feature. Very Cool stuff!

To get rid of the annoying 'canvas' is not supported warning using XHTML 1.0 transition I have switched my VS 2010 Target schema for Validation to HTML5.

A couple of questions:

1) Should I be using a Target schema for Validation of XHTML5 or HTML5?

2) In the footer of my layout.master I have a link basically saying my mojoPortal site is XHTML 1.0 compliant but now it is not by using the the new HTML 5 canvas element.  Should I remove this link?

3) The canvas drawing app I have put in displays a message to the user that they need to upgrade to a newer browser.  But...  Is putting HTML5 in an ecommerce site a big mistake or a small mistake?

I don't want to open a can of worms, but I have always been an early adopter living on the bleeding edge.  It's never boring being like this, but I would not want to pay someone to code this way.  It would cost me way too much.

P.S.
Also, I notice that some developers using HTML5 add the line
<!DOCTYPE html>
in their aspx pages above the < head> section

Rick Hubka

8/30/2011 1:03:10 PM
Gravatar
Total Posts 18439

Re: HTML5 - Target schema for Validation

Hi Rick,

1. would be a personal choice. The difference between Html 5 and XHtml 5 is just more strictness to the markup to make it valid xml just the same as the difference between html and xhtml. To be valid xml requires that the tag always be lower case and always well formed with closing tags etc whereas with plain html things are a bit looser, some tags don't have to have a closing tag etc. Using Xhtml 5 would help you be more consistent with the markup in VS even if you just really are targeting html 5. 

2. You can use html 5 doctype <!DOCTYPE html> , the jqueryui-1 skin uses it, and the validation link can be set like this:

<portal:XhtmlValidatorLink id="lnkw3cValidator" runat="server" UseImage="false" Html5="true" /> |

to make it say "html 5" insterad of xhtml and also to make it point to the html 5 validator.

3. Again a personal choice and business decision. Myself I would not want anything to discourage commerce so I would not want users getting any warnings. One can still use the html 5 doctype and some html 5 elements without causing browser warnings but some things like using canvas are more problematic.

Hope that helps,

Joe

8/31/2011 10:58:05 AM
Gravatar
Total Posts 245
mojoPortal Community Expert

Re: HTML5 - Target schema for Validation

Thanks for the information Joe.  I appreciate you taking the time to do so.

It's been a while since I bought you a beer.  A couple are on the way.

Cheers!!!

Rick Hubka

8/31/2011 12:03:59 PM
Gravatar
Total Posts 18439

Re: HTML5 - Target schema for Validation

Hey Rick,

Thanks as always for the beers! I appreciate them!

Cheers,

Joe

You must sign in to post in the forums. This thread is closed to new posts.