c0debrain / gmaps4jsf

Automatically exported from code.google.com/p/gmaps4jsf
0 stars 0 forks source link

XHTML transitional compliance fixes for GMaps4JSF Core and Examples Project 1.1.2 #63

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Affected is the version 1.1.2 of GMaps4JSF. *All* tags should be written in
lowercase.

Changes for class com.googlecode.gmaps4jsf.util.ComponentConstants:

not XHTML compliant:
final String HTML_SCRIPT = "SCRIPT";
final String HTML_DIV = "DIV";

XHTML compliant:
final String HTML_SCRIPT = "script";
final String HTML_DIV = "div";

GMaps4JSF Examples Project:
- change <!DOCTYPE html to <!DOCTYPE PUBLIC html 
- change all HTML to html
- change all HEAD to head

If you change "Strict" to "Transitional" and "strict" to "transitional" in
the JSPs, then over 80% of all examples will be fully compliant to XHTML
1.0 transitional.

To be compliant to XHTML strict, the occurrence of the "name" attribute,
which is generated by MyFaces, should disappear. Haven't analyzed yet why
it is necessary. By XHTML strict or 1.1 is simply doesn't exist for most
tags except for "input".

Original issue reported on code.google.com by antonovic@osys.ch on 22 Jul 2009 at 9:57

GoogleCodeExporter commented 9 years ago
Done thanks to you.
I will add you to the contributors list.

Original comment by Hazem.sa...@gmail.com on 22 Jul 2009 at 12:22

GoogleCodeExporter commented 9 years ago
A copy-paste-bug by me:

wrong: DOCTYPE PUBLIC html
correct: DOCTYPE html PUBLIC

a case-insensitive replacement by you:

wrong: Xhtml
correct: XHTML

additionally for header.jspf:

old: <img src="/gmaps4jsf-examples/images/site/logo.png"/>
proposition: <img src="/gmaps4jsf-examples/images/site/logo.png" 
alt=”GMaps4JSF logo” />

Original comment by antonovic@osys.ch on 22 Jul 2009 at 1:00

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I did this and the main map page
(http://mashups.s43.eatj.com/gmaps4jsf-examples/pages/simple.jsf) passed from
http://validator.w3.org/.

Thank you!

Original comment by Hazem.sa...@gmail.com on 22 Jul 2009 at 1:23