Ver Mensaje Individual
  #1 (permalink)  
Antiguo 25/03/2013, 02:14
gerion_angel
 
Fecha de Ingreso: mayo-2012
Mensajes: 49
Antigüedad: 11 años, 11 meses
Puntos: 0
Pregunta pasar validación w3c

Buenos días foro.

Estoy desarrollando una aplicación web utilizando primefaces (J2EE, JSP, css, xhtml...)

mi problema ha venido una vez terminada, al intentar pasar la validación de w3c validator en [URL="http://validator.w3.org"]http://validator.w3.org[/URL]

al ejecutar el validador, me muestra errores del estilo a:

Código HTML:
 Line 40, Column 302: there is no attribute "role"
… ui-widget-header ui-corner-all" role="tablist"><li class="ui-state-default ui…
✉
You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.
La verdad es que no se muy bien como solucionar esto, he provado incluso a parsear toda la web tras la carga borrando todos los role y sus atributos con el consiguiente fallo generalizado ...

este es un ejemplo del codigo generado por los componentes primefaces
Código HTML:
<li class="ui-state-default ui-tabs-selected ui-state-active ui-corner-top" role="tab" aria-expanded="true"><a href="#j_idt9:j_idt10">Acceso</a></li> 
alguien conoce alguna forma de pasar esta validación??

este es mi doctype

Código HTML:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"> 
gracias por adelantado

Última edición por gerion_angel; 25/03/2013 a las 02:28 Razón: doctype