..:: MX Studio Fóruns ::..: Validando Site no W3c - ..:: MX Studio Fóruns ::..

Jump to content

Publicidade




Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Validando Site no W3c dúvida

#1 User is offline   kadumx 

  • Group: Membros
  • Posts: 11
  • Joined: 02-March 08

Posted 17 August 2010 - 11:48 PM

Galera, e a primeira vez que valido um site nos padrões w3c e estou com algumas dúvidas, vou posta-las se eu puder pelo menos me apontar um caminho para revolve-las agradeço desde já.

De inicio aparece um seguinte erro
Após acontece após o "item.url = " na primeira aspas

-------------------------------------------------------------------------------------------------------
Line 74, Column 36: there is no attribute "item.url

return "<a href="" item.url ="\" target= "\"_blank\ "> <img src="" item.…

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).

-----------------------------------------------------------------------------------------------------
Após acontece após o "target= " na primeira aspas
-------------------------------------------------------------------------------------------------------

Line 74, Column 48: there is no attribute "target"
…rn "<a href="" item.url ="\" target= "\"_blank\ "> <img src="" item.image "…

-------------------------------------------------------------------------------------------------------
0

#2 User is offline   xanburzum 

  • Group: Administrador
  • Posts: 2077
  • Joined: 04-November 08

Posted 18 August 2010 - 05:39 PM

qual o valor de item.url, o que esta sendo passado na variavel ???
0

#3 User is offline   André Buzzo 

  • Group: Membros
  • Posts: 18
  • Joined: 31-August 10

Posted 01 September 2010 - 09:51 AM

Fala Compadre!

Ao que se deu a entender, você tá usando IFrames correto? E o que ele tá acusando de erro ali são duas coisas.

Primeiro, creio eu que você tenha colocado no Doctype o XHMTL 1.0 Strict, e o mesmo não aceita os frames. Se você de repente, mudar para HTML 4.1 ele poderia validar o seu site.

Segundo, é que o Strict não aceita o atributo "_blank" para envio à uma página externa. Você pode contornar esse problema utilizando JavaScript.

Você pode inserir no Head do seu HTML o seguite código:

<script type="text/javascript">
	$(document).ready(function(){
		$('a[rel="external"]').attr('target', '_blank')
	});
</script>


Aí no link, vc escreve ele assim:

<a href="sua-pagina.html" rel="external">Link para nova janela</a>

Pelo menos esse passa pelo W3c...

Abraços!
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic



Publicidade




1 User(s) are reading this topic
0 membro(s), 1 visitante(s) e 0 membros anônimo(s)