Deprecated elementy v XHTML1.0 WAS: Re: Nefungujúci javascript

From: Martin Svarovsky <martin.svarovsky (zavinac)>
Date: 29. 11. 2005, 15:52 CET
MiSHAK napsal(a):
 > Ohledne name: Jsou dulezite pro odesilani hodnot formularu. Pokud
 > prvek formulare nema name, tak by nemel byt zarazen do odpovedi
 > serveru a to je duvod proc se statusem deprecated u v xhtml parametru
 > name IMHO nesouhlasim. Doted nejsou zadne jine mechanismy na odesilani

Ja jsem teda dokumentaci k XHTML1.0 pochopil trochu jinak:
---CUT---
HTML 4 defined the name attribute for the elements a, applet, form, 
frame, iframe, img, and map. HTML 4 also introduced the id attribute.
...
Note that in XHTML 1.0, the name attribute of these elements is formally 
deprecated, and will be removed in a subsequent version of XHTML.
---CUT---
Vyplyva mi z toho ze name atribut je deprecated pouze u elementu "a, 
applet, form, frame, iframe, img, and map".

Myslim ze to zminoval uz h!ynek ale spis jako samozrejmost...

Konkretne v DTD:
<!ELEMENT form %form.content;>   <!-- forms shouldn't be nested -->

<!ATTLIST form
   %attrs;
   action      %URI;          #REQUIRED
   method      (get|post)     "get"
   enctype     %ContentType;  "application/x-www-form-urlencoded"
   onsubmit    %Script;       #IMPLIED
   onreset     %Script;       #IMPLIED
   accept      %ContentTypes; #IMPLIED
   accept-charset %Charsets;  #IMPLIED
   >
<!ELEMENT input EMPTY>     <!-- form control -->

--> name tam nikde specifikovan neni

<!ATTLIST input
   %attrs;
   %focus;
   type        %InputType;    "text"
   name        CDATA          #IMPLIED
   value       CDATA          #IMPLIED
   checked     (checked)      #IMPLIED
   disabled    (disabled)     #IMPLIED
   readonly    (readonly)     #IMPLIED
   size        CDATA          #IMPLIED
   maxlength   %Number;       #IMPLIED
   src         %URI;          #IMPLIED
   alt         CDATA          #IMPLIED
   usemap      %URI;          #IMPLIED
   onselect    %Script;       #IMPLIED
   onchange    %Script;       #IMPLIED
   accept      %ContentTypes; #IMPLIED
   >

--> no a tady name je - stejne jako u select, textarea, button elementu

Chapu to spatne?

-- 
S pozdravem
Martin Svarovsky
Received on Tue, 29 Nov 2005 15:52:21 +0100

This archive was generated by hypermail 2.1.8 : 29. 11. 2005, 15:52 CET