Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: bledy walidatora
Forum PHP.pl > Forum > Po stronie przeglądarki > HTML \ XHTML
dabb
jak naprawic te bledy bo juz nie wiem co mam robic...

  1. #
  2.  
  3. Line 97, column 11: there is no attribute "name"
  4.  
  5. <form name="txtlist" action="./dodaj.php" target="txtlist" method="get" onSubmit
  6.  
  7. &#9993;
  8. #
  9.  
  10. Line 97, column 49: there is no attribute "target"
  11.  
  12. ...txtlist" action="./dodaj.php" target="txtlist" method="get" onSubmit="JavaScr
  13.  
  14. &#9993;
  15. #
  16.  
  17. Line 97, column 81: there is no attribute "onSubmit"
  18.  
  19. ...rget="txtlist" method="get" onSubmit="JavaScript:window.open('','txtlist','wi
  20. #
  21. Line 97, column 176: document type does not allow element "form" here; missing one of "object", "ins", "del", "map" start-tag
  22. ...,toolbar=no,status=no,resizable=no')">
  23.  
  24. The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.
  25.  
  26. One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
crash
Napisałbyś chociaż jakiego doctype używasz...
dr_bonzo
1. Daj link do strony -- bedziemy mogli poznac kontekst problemu (otaczajace go znaczniki itd.)

2. onSubmit powinno byc z malych liter: onsubmit
dabb
mam taki kod formularza:
Kod
<form action="./dodaj.php" target="txt" method="get" id="txtlist" onsubmit="JavaScript:window.open('','txtlist','width=300,height=150,toolbar=no,status=no,resizable=no')">
<p class="txtVerdana8white">Podaj email aby otrzymywać biuletyn.</p>
<div><input type="text" name="email" value="Twój email" size="14" maxlength="100" /></div>
<div><input type="hidden" name="type" id="type_sub" value="sub" checked="checked" /></div>
<table border="0" cellpadding="0" cellspacing="0" width="50"><tr><td style="height: 4px"></td></tr></table>
<div><input type="submit" value="dodaj" /></div>
</form>


i bład walidatora ze nie ma atrybuty target ale co wstawic zamiast target jakas podpowiedz ? moze jakis nowy atrybut questionmark.gif

pozdrawiam
dabb
crash
Ponawiam prośbę o podanie doctype tego dokumentu tongue.gif
dabb
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
dr_bonzo
target --> poszukaj byly podane rozwiazania: za pomoca javascriptu lub poszerzenia DTD.
Draugfor
1. W XHTML nie ma czegos takiego, jak target, wiec, jak napisal dr_bonzo, musisz uzyc JS, chociaz jest to niezgodne z regulami Accessibility.
2. onSubmit -> onsubmit.
3. <form> nie moze byc wewnatrz <p>.

EDIT
a propos 1., luknij tu http://wordpress.org/support/topic/1472
dabb
zmienilem doctype na xhtml 1.1 strcit bo nie wiem czemu w3c wywalilo target z xhtml1.1 smile.gif moze przez te ramki.....


pozdrawiam
Draugfor
Rowniez po to, zeby nie robic otwierania stron w nowym oknie, co wielu uzytkownikow doprowadza do szalu.
matid
Cytat(dabb @ 2005-06-18 15:24:47)
zmienilem doctype na xhtml 1.1 strcit bo nie wiem czemu w3c wywalilo target z xhtml1.1

Nie istnieje XHTML 1.1 Strict
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.