ãªã html ã® form 㯠PUT / DELETE ããµãã¼ãããªãã®ãï¼
注æ
å 容ã«ã¤ãã¦ã¯ä¸åä¿è¨¼ãã¾ããã
ããã§ã¯ã主㫠W3C ML ã§ã®è°è«ãå種ä»æ§ãªã©ã«åºã¥ãã¦æ¸ãã¦ãã¾ãã ããã«æ¸ããã¦ãããã¨ãæ£ãããã©ããã¯ãèªèº«ã§å¤æãã¦ä¸ããã äºå®ã¨ãã¦ããããã¨ãããªã©ã¯ãã³ã¡ã³ãã§ã©ãã©ãææãã¦ä¸ãããé æ ®ã¯ããã¾ããã
ãã ãããã®ã¨ã³ããªã§ã¯ãform ã PUT/DELETE ããµãã¼ãããã¹ããã©ããï¼ãã®è°è«ã¯ãã¾ããã ãREST ã®æ¯éãããPUT/DELETE ã®æ義ãã«ã¤ãã¦ãè°è«ããæ°ã¯ããã¾ããã ããã§ãã£ã¦ããã®ã¯ãããã¾ã§ãã©ããã£ãè°è«ã®æ«ç¾ç¶ãããã®ãã®èª¿æ»ã§ãã ããããæè¦ãããå ´åã¯ã W3C ãªã©ã«æ稿ããã®ãæãæçã ã¨æãã¾ãã
History
- 2014/03/29: å ¬é
- 2014/03/29: XForm 㨠XHTML ã®é¢ä¿ãæ確å(thanx koichik)
- 2014/03/29: HTTP/1.1 㨠XHTML1.1 ã®æéé¢ä¿ãæ確åãããã«ãã HTML3.2 ã®é ã¯å¤§å¹ ä¿®æ£ (thanx koichik)
- 2014/04/09: HTML Form Extension ã®ãµã³ãã«ã追å
- 2014/04/10: Cameron æ°ã¨ã®ã¡ã¼ã«ããåãã®çµæããä»å¾ããããã£ãã®ã§è¿½è¨
- 2014/04/10: é¢é£ã¨ã³ããªããªã³ã¯
Intro
HTML ã® Form ã¯ãæ´å²ççµç·¯ãã ã¨ããã»ãã¥ãªãã£çãªçç±ã ã«ãã GET 㨠POST ãããµãã¼ãããªãã ã¨ããããåãã£ããããªåãããªããããªèª¬æã¯ããè¦ããã©ã å®éã¯ä½æ ãªã®ãã
ã¨ããã®ã話ã®å§ã¾ãã§ããããäºãããã¨ã«èª¿ã¹ããã¨ããããã©ãããããããã«ãã¾ããã
å®æçã«ããªããã©ã¦ã¶ã®ãã©ã¼ã 㯠PUT / DELETE ããµãã¼ãããªãã®ãï¼ãã調ã¹ã¦ã¯ã¯ã£ããã¨ããåç©«ç¡ããã¾ãéä¸ã¾ã§ã®è¶³åããã¡ããã¨æ®ããå¿ãããã©ã£ãã«ãºããã¨çç±ãèæ¯ãæ¸ããããªã½ã¼ã¹ã£ã¦ããã®ããªï¼
— Jxck (@Jxck_) 2014, 3æ 23
ã¨ãããã¨ã§åãã¦ã¿ãã¨ãããè²ã ãªæ¹ããåå¿ãé ãã¾ããã ãã®åå¿ã«ã¤ãã¦ã¯ã以ä¸ã«ã¾ã¨ãã¦ãã¾ãã
なぜ html の form は PUT / DELETE をサポートしないのか? - Togetterまとめ
ããã£ããã¨ã¯ãéå»ã«ã¤ãã¦ã¯ããã¾ã§ã¯ã£ããã¨æ¸ããããªã½ã¼ã¹ã¯ãªããããªãã¨ã ããã¦ãè²ã ãªæ¡ä»¶ãéãªã£ã¦ãç¾å¨ã®ä»æ§ã«è½ã¡ã¤ã¦ããããã§ãããã¨ã ã¾ããæ°ããä»æ§ã«ã¤ãã¦ã®ææ¡ã¯ãããè°è«ã¯ã¾ã ç¶ãã¦ããã¨ãããã¨ã
ããã¾ã§ã®è©±ãããããã¦èª¿ã¹ã¦ãã¾ã¨ãã¦ã¿ã¾ããã
åæ
ä»å話é¡ã«ãããã®ã¯ã HTML ã® form ã®ä»æ§ã HTTP ã®ã¡ã½ããã® "GET", "POST" é¨åãããµãã¼ããã¦ããªãçç±ã§ãã
å ·ä½çã«ã¯ä»¥ä¸ã® method å±æ§ã§ãã
<form action="http://example.com/users" method="post"> <label for="name">name: </label> <input type="text" id="name"> <input type="submit" value="send"> </form>
HTTP/1.1 ã§ã¯ãã¡ã½ããã¨ãã¦ä»¥ä¸ã® 8 ã¤ãå®ç¾©ãã¦ãã¾ãã
GET POST PUT DELETE HEAD OPTIONS TRACE CONNECT
ãã®ä¸ã§å®è³ªãªã½ã¼ã¹ã®æä½ã«ç¨ããããã®ã¯ GET, POST, PUT, DELETE ã® 4 ã¤ã§ãã
REST ã®èãæ¹ãæ®åãã¦ä»¥éã¯ããã® 4 ã¤ã®ã¡ã½ãããç¨ãã¦ãªã½ã¼ã¹ã®æä½ãå®è¡ãã API ãæä¾ãããµã¼ãã¹ãå¢ããããã°ã©ã éã®éä¿¡ãã Ajax ãç¨ãããªã¯ã¨ã¹ãã§ã¯ PUT/DELETE ãç¨ããæä½ã¯å®éã«è¡ããã¦ãã¾ãã
ãããã HTML ã® Form 㯠GET/POST 以å¤ããªã¯ã¨ã¹ããããã¨ãã§ãã¾ããã ããã§ç¾ç¶ã¯ã POST ãªã¯ã¨ã¹ãã« hidden å±æ§ã§ _method ãã©ã¡ã¼ã¿ãä»ä¸ãããã submit ã¤ãã³ãã JavaScript ã§ããã¯ãã¦ã Ajax 㧠PUT/DELETE ãªã¯ã¨ã¹ãã代è¡ãããªã©ã®æ¹æ³ã§åé¿ããã¦ãã¾ãã
æç³»å
ä»åã®ä»¶ã¯ãä»æ§ã®æç³»åã«ãé¢ä¿ãããã®ã§ãã¾ã¨ãã¦ã¿ã¾ããã åä»æ§ã¯ã IETF, W3C ãªã©ããããã®ã¯ã¼ã¯ããã¼ã§æ´æ°ããã¦ãããä¸è¨ã¯ãã®ä¸»ã ã£ããã¼ã¸ã§ã³ã®ã¿ãè¼ãã¦ãã¾ãã 
- 1996/05/xx: HTTP 1.0 (rfc1945)
- 1997/01/02: HTTP 1.1 (rfc2068)
- 1997/01/14: HTML 3.2
- 1997/12/18: HTML 4.0
- 1999/02/xx: WebDAV
- 1999/12/24: HTML 4.01
- 2000/01/26: XHTML 1.0
- 2000/xx/xx: REST
- 2001/05/31: XHTML 1.1
- 2003/11/14: XForms 1.0
- 2005/02/18: Ajax
- 2007/06/xx: WebDAV
- 2008/01/22: HTML5(first)
- 2009/10/20: XForms 1.1
- 2010/11/23: XHTML 1.1(2nd)
- 2014/02/04: HTML5(latest)
ä»æ§(HTTP)
HTTP ã®åä»æ§ãè¦ã¦ã¿ã¾ãã
PUT/DELETE ã¨ãã method ãæåã«åºã¦ããã®ã¯ HTTP/1.0 ã§ãã
http://tools.ietf.org/html/rfc1945#appendix-D.1
ããã¯ã appendix ã® Additional Request Methods æ±ãã§ãã ããã§ã¯ PUT, DELETE, LINK, UNLINK ããããç¬èªæ¡å¼µã¨ãã¦ãããã®ã¡ã½ããã®å®è£ ããã£ãããããã®æ³¨æãä¿ãç®çã ã£ãããã§ãã(å®éã©ã®å®è£ ã ã£ãã®ãã¯ããããã¾ããã)
HTTP/1.1 ãã㯠intro ã§ç´¹ä»ãã 8 ã¤ã®ã¡ã½ãããå®ç¾©ããã PUT, DELETE ã¯æ£å¼ãª HTTP ã¡ã½ããã«ãªãã¾ããã
ä»æ§(HTML)
HTML ã®åä»æ§ãè¦ã¦ã¿ã¾ãããããã Form ã® method ã«ã¯ GET/POST ããå®ç¾©ããã¦ãã¾ããã
HTML3.2 http://www.w3.org/TR/REC-html32#form
method When the action attribute specifies an HTTP server, the method attribute determines which HTTP method will be used to send the form's contents to the server. It can be either GET or POST, and defaults to GET.
HTML4.0 http://www.w3.org/TR/1998/REC-html40-19980424/interact/forms.html#adef-method
HTML4.01 http://www.w3.org/TR/html401/interact/forms.html#adef-method
method = get|post [CI] This attribute specifies which HTTP method will be used to submit the form data set. Possible (case-insensitive) values are "get" (the default) and "post". See the section on form submission for usage information.
HTML5 http://www.w3.org/TR/html5/forms.html#attr-fs-method
The method and formmethod content attributes are enumerated attributes with the following keywords and states: The keyword get, mapping to the state GET, indicating the HTTP GET method. The keyword post, mapping to the state POST, indicating the HTTP POST method.
HTML3.2
HTML3.2 ã®ãã©ããã«ã¯ãåç §ãã HTTP ã®ãã¼ã¸ã§ã³ã¯æè¨ããã¦ããªãããã§ãã ãããã HTTP/1.1 ãåºãã®ã¯ HTML3.2 ã®ãã£ã 2 é±éåã§ãããããç¾å®çã«ã¯ HTTP/1.0 ãåç §ãã¦ããã¨ãããããã®ã妥å½ã§ãããã
å°ãªãã¨ãããã® 2 é±éã®é㧠PUT/DELETE ã®åå¨ãæèããä¸ã§ HTML3.2 ã®ä»æ§ã«åãè¾¼ã¾ãªãã£ãã¨ããããã¯ã PUT/DELETE ã®åå¨ã¯ä¸æ¦ããã¦ãã HTTP/1.0 ãã¼ã¹ã§ HTML3.2 ã®ä»æ§ã(ã»ã¨ãã©æ±ºã¾ã£ã¦ãããã®ã)åºããã¨ããæ¹ãèªç¶ã ã¨èãããã¾ãã
PUT/DELETE ã«ãã¦ãã HTTP/1.0 ããåå¨ã¯ãã¦ãããããã HTTP/1.1 ã§æ¡ç¨ããã㯠1996 å¹´å¾åã§ã¯ããè°è«ã«ä¸ãã£ã¦ããã ãããã HTML3.2 ã®è°è«ããã¦ããå´ãå®å ¨ã«ç¥ããªãã£ãã¨ãããã¨ã¯ç¡ãã§ãããã
ããã¯ã HTML3.2 㯠HTTP/1.0 ããã¼ã¹ã¨ãã HTTP/1.1 ã¸ã®è¿½å¾ã¯å¾ã®ãã¼ã¸ã§ã³ã§è¡ãã ã¨ããã®ã妥å½ãªå¤æã ã£ãã ããã¨æ³åã§ãã¾ãã
ãã£ã¦ãåé¡ã¯æ¬¡ã®ãã¼ã¸ã§ã³ HTML4 ã«ç§»ãã¾ãã
HTML 4.0, 4.01
HTML4.0 ããã¯ã HTTP/1.1(RFC2068) ã¸ã®åç §ãæ示ããã¦ãã¾ããã¤ã¾ãããããã HTTP/1.1 ãåæã« Form ã« PUT/DELETE ãå ¥ããªããã¨ãé¸æãããã©ããã¨è¨ããã§ãããã
http://www.w3.org/TR/1998/REC-html40-19980424/references.html#ref-RFC2068
HTML4.0 㯠HTTP/1.1 ãåºã¦ãã 11 ã¶æå¾ã HTML4.01 㯠2 年空ãã¦ãã¾ãã ãããã該å½é¨åã®ä»æ§ã¯ãããã®ãã¼ã¸ã§ã³ãå¤æ´ãããã¾ããã
ããã®æéã«ã¯è¬ãå¤ããå®éã«ãForm ã« PUT, DELETE ãå ¥ããã¹ããï¼ãã¨ããè°è«ãããã£ãã®ãã©ããããããã¾ããã(è¦ã¤ãããã¾ããã§ãããè¦ã¤ããæ¹ã¯æãã¦ä¸ãã)
ãããããã®æ代(1997~1999) ã¯ãã¾ã WebDAVãAjaxã REST ã®è«æãªã©ã¯åºã¦ãããã PUT/DELETE ã«ãã£ã¦ä½ããè¡ãã¨ããéè¦ãããã¾ã§å¼·ããªãã£ãã®ã§ã¯ç¡ããã¨èãããã¾ãã
ã¾ãã1997/4/4 ã«ã¯ã Apache HTTP Server ã®éçºè ãã Apache HTTP Server ã« PUT ãå®è£ ããå ´åã®ãã»ãã¥ãªãã£çãªãªã¹ã¯ãããããåé¿ããããã«è©¦è¡é¯èª¤ããçµæãç´¹ä»ããã¦ãã¾ãã
ããã§ç´¹ä»ããã¦ããææ³ã¯ãããã¾ã§ãæ°è¦ææ¸ããµã¼ãã«ç½®ã(PUT)ãã¨ããã¦ã¼ã¹ã±ã¼ã¹ã§ãããNetscape Navigator Gold, AOLPress, Amaya ã¨ããããªã¼ãµãªã³ã°æ©è½ãåããå½æã®ãã©ã¦ã¶ã PUT ããµãã¼ããããã¨ãèªã¿åãã¾ãã
Apache ã§ãã¾ã ãå®è£ ã®é¢ã§ããã¾ã§ããªãã¦ããªãã£ããã¨ãã Web ãã¼ã¸ã®ç·¨éã¨ãããä»ã® Ajax ãªã©ã¨æ¯ã¹ãã¨éå®çãªã¦ã¼ã¹ã±ã¼ã¹ãããã PUT ã¨ãããã®ããã¾ã ããã¾ã§åºã使ããã¦ãããã®ã§ã¯ãªãã£ãã ãããã¨ãæ³åã§ãã¾ãã
ãªããå½æãã©ã¦ã¶ã®éçºã«æºãã£ã¦ãã @snakajima ããã«ãèãããã¨ããããã¯ãç©æ¥µçãªäººãããªãã£ãã¨ããé°å²æ°ã ã£ãããã§ãã
@Jxck_ æéçãªåé¡ã¨ãããããããHTTPã«PUTã¨DELETEã¯ä¸è¦ï¼GETã¨POSTã§ååï¼ãã¨èãã人ãå¤ãããã ã¨æãã¾ããããã£ãæ¹ãè¯ãããããã®ãã®ãå
¨ã¦è¶³ãããä»æ§ã¯ã©ãã©ãè¥å¤§åãã¦ããã¾ãããã
— Satoshi Nakajima (@snakajima) March 27, 2014
XForms
HTML ã§ã¯ãä»æ§ã«åãè¾¼ã¾ãããã¨ããªãã£ã PUT/DELETE ã§ãããå®ã¯ XForms ã¨ããä»æ§ã«ã¯ 1.0 㧠PUT ãã 1.1 㧠DELETE ã追å ããã¦ãã¾ããã(XForms 1.0 ã«ã¯ 2nd, 3rd Edition ãããã¾ããã該å½é¨ã¯å¤ãã£ã¦ãã¾ããã)
- 2003/11/14: XForms 1.0 (GET, POST, PUT)
- 2009/10/20: XForms 1.1 (GET, POST, PUT, DELETE)
- 20xx/xx/xx: XForms 2.0(çå®ä¸) (GET, POST, PUT, DELETE)
XForms 㯠XML ãç¨ãã¦ããããªãããªæ©è½ãæ㤠Form ãå®è£ ããããã®ä»æ§ã§ãã XHTML2.0 ã«ã¯ XForms ãå«ã¾ããäºå®ã ã£ãããã XHTML2.0 ã主æµã¨ãªã£ã¦ããã°ããã使ããããããã¾ããã ãããã XHTML2.0 ã¯çå®æ´»åã 2012/12/17 ã§çµäºãã¾ãããã¾ã XForms ãå®è£ ãã¦ãããã©ã¦ã¶ã¯ç¡ãããããããã®æ©è½ã¯ä½¿ããã¨ãã§ãã¾ããã
HTML5
2010 å¹´ã«ã HTML5 ã®ä»æ§ã¨ãã¦ã以ä¸ã®ã¹ã¬ããã§ãã®ä»¶ã«é¢ããè°è«ãè¡ããã¾ããã issue 㯠HTTP ã®çå®æ´»åã«ãã³ããããã¦ãã Julian Reschke æ°ã§ãã
Bug 10671 - consider adding support for PUT and DELETE as form methods
ãã㯠Ajax ã主æµã«ãªã£ã¦ä»¥éã§ãããã㤠Rails ãªã©ãä¸å¿ã« REST ãæ®åããå¾ã§ãã ããããåé¡ã®æèµ·ã¯ãForm ã« PUT/DELETE ãå ¥ãããï¼ãã¨ããç絡çãªãã®ã§ã¯ãªããããæ éãªãã®ã®ããã§ãã Julian æ°ã®çºè¨ã®ä¸é¨ãæç²ãã¾ãã
It seems that we currently do not understand how PUT and DELETE will be useful for HTML forms. For DELETE, it's indeed easy to create a useful request. However, server implementations usually respond with 200 and a minimal response body ("deleted") or 204 (no content). So it's not clear how this can be used in a web application. For PUT, it seems there's no real use case as long as the web page doesn't have full control over the payload, and also can set the content type. Please consider removing this feature until there's a clearer understanding about what it's good for.
The tricky question is how to actually *use* PUT and DELETE with HTML forms. The bug was raised because I think the spec (as it was back then) wasn't specific enough to make this work, and thus early adoption (such as in FF4) would make it very hard to do the right thing later on.
PUT ã DELETE ã Form ã§ãµãã¼ãããåã«ããµã¼ãã¨ã®ã¤ã³ã¿ã©ã¯ã·ã§ã³ã Form ã§ã¯ HTTP ããããªã©ãå¤æ´ã§ããªãç¹ã«ã¤ã¦ãã¦ãã¾ã Form ã®ä»æ§èªä½ã«ããã³ã¨è§£æ±ºãã¹ãåé¡ãããã¨ãããåé¡æèµ·ã主ã®ããã§ãã
ãããããã®è°è«ã¯ Hixie ã㨠Ian Hickson ã«ãã£ã¦çªç¶ Reject ããã¾ãã
Status: Rejected Change Description: no spec change Rationale: PUT as a form method makes no sense, you wouldn't want to PUT a form payload. DELETE only makes sense if there is no payload, so it doesn't make much sense with forms either.
DELETE ã¯ãã¤ãã¼ããå¿ è¦ã¨ããªããã Form ã®ãã¼ã¿ã PUT ãããããã§ã¯ãªãã Form ã§ããããããã®ã¯ make no sense ã§ããã¨ãã¦ãã¾ãããããã Wont' Fix ã¨ããæãã§ãã 2011/12/2 ã®ãã¨ã§ããã
HTML Working Group
ã¨ãããããã®è°è«ã¯ 2011/12/7 ã« public-html-comments ã¨ããå¥ã® ML ã§åçºãã¾ãã
Follow-up about PUT and DELETE in form methods
ã©ããã ML åå¿è ã®ããã§ãå é±ã®ãã®è°è«ãã©ããªã£ãã®ï¼ãã¨ããæãã®è³ªåã§ãã ãããã bug 10671 ã§ä¸åº¦ãææããã¦ããªãã£ã Mike Amundsen ã¨ãã人ã®ä»¥ä¸ã®ãã©ãããåç §ããã¦ãã¾ããæ¸ãããã®ã¯ 2011/4/1 ãã¤ã¾ã 10671 ã®è°è«ã®æä¸ã§ããã
Supporting PUT and DELETE with HTML FORMS
ãã® Follow-up about PUT and DELETE in form methods ã¯ããªãé·ãè°è«ã«ãªããããã§ã¯å ·ä½çãªä»æ§ã«è½ã¨ãããããã«å¿ è¦ãª Form ã®æ¡å¼µãªã©ã«ã¤ãã¦è°è«ããã¦ããããã§ãã
ãããã²ã¨éãçµãã£ã 2012/1/14 ã« Julian æ°ã¯ HTML Working Group ã«äºã¤ã® issue ãä¸ãã¾ãã
- ISSUE-195: Enhance http request generation from forms
- ISSUE-196: Define user agent http response handling behaviour
ã¿ã¤ãã«ã®éãã HTML ã® Form ã HTTP ã®ãªã¯ã¨ã¹ãã«å¯¾ãã¦æ¡å¼µããããã®è°è«ã¨ã HTTP ã®ã¬ã¹ãã³ã¹ã«å¯¾ããã¦ã¼ã¶ã¨ã¼ã¸ã§ã³ãã®æåã«ã¤ãã¦ã®è°è«ã§ã(ãã¡ãã¯ãå段ã¨ãã¦ãã©ã¦ã¶ãã¨ã®æåã®èª¿æ»ãããã¾ã)ã
ãããã® issue ã CLOSE ããã¦ããã ISSUE-195 ã«ã¤ãã¦ã¯ä»¥ä¸ã®çµæãã¿ã¤ããã¾ããã
- ISSUE-195: Enhance HTTP request generation from forms
- ISSUE-195: Defer complex form feature proposal to HTML.next
åè 㯠Cameron Jones æ°ã®ãã®ã§ã Form ãæ¡å¼µããææ¡(proposal) ããªããã¦ãã¾ãã å¾è 㯠Edward Oconnor æ°ã®ãã®ã§ã Cameron æ°ã®ææ¡ã®è¤éæ§ãå®è£ æã®æ¸å¿µãªã©ãææãã¦ããããã§ãã
ã¾ã ISSUE-196 ã®æå¾ ã§ Cameron æ°ã¯ãã®ææ¡ãããå ·ä½åãã Unofficial Draft ã 2013/2/22 ã«ä½æã Github ã§å ¬éãã¦ãã¾ãã
ãã®ãã©ããããç¾æç¹ã§è¿½ããæå¾ã®è°è«ã®çµæã§ããå°ãè¦ã¦ã¿ã¾ãã
HTML Form HTTP Extensions
http://cameronjones.github.io/form-http-extensions/index.html
ãã®ãã©ããã§ã¯ã Form ãããçæããã HTTP ãªã¯ã¨ã¹ããããæè»ã«å¤æ´ã§ããããã« Form ã®æ¡å¼µãè¡ãä»æ§ã§ãã PUT/DELETE ã®ãµãã¼ãã¨ããçãç¯å²ã§ã¯ãªããæ¬è³ªçã« Form ã«è¶³ãã¦ããªãã£ãæ©è½ãæ¡å¼µãã¦ãã¾ãã
ãã¨ãã° payload å±æ§ã追å ãããã¨ã§ã Form ãã HTTP ã®ãããæ å ±ã追å ã§ããããã«ãããã¨ã§ãåã« method ã PUT/DELETE ãã®ä»ããµãã¼ãããã ãã§ã¯è§£æ±ºã§ããªãã£ãåé¡ã«ã対å¿ã§ããããã«ãã¦ãã¾ãã
ãã©ããä¸ã® PUT 㨠DELETE ã®ãµã³ãã«ãè¦ã¦ã¿ã¾ãã
<form action="http://www.example.com/cms/hogmanay" method="PUT"> <input name="If-Unmodified-Since" type="hidden" value="Tue, 1 Jan 2013 12:00:00 GMT" payload="_header"/> <textarea name="content"> // content </textarea> <button type="submit">Update</button> </form>
<form action="http://www.example.com/logs" method="DELETE"> <label for="since">Since</label> <input name="since" type="datetime"/> <button type="submit">Delete</button> </form>
DELETE ã¯å²ãã¨ãã®ã¾ã¾ãªæãã§ããã PUT 㯠input ã¿ã°ã® payload å±æ§ãç¨ãã¦ç´æ¥ HTTP ãããã追å ãã¦ãã¾ãã
ä»ã«ãããããã触ããã¨ãããã¨ã¯ Bacis èªè¨¼ã Form ã ãã§(ãã©ã¦ã¶çµã¿è¾¼ã¿ã® UI ã§ã¯ãªã)ã§ãã¾ãã å®éã«ã¯ãå°ç¨ã® username, password ã使ç¨ãã¾ãã
<form action="http://www.example.com/login" method="POST"> <label for="_username_">Username</label> <input name="_username_" type="text"/> <label for="_password_">Password</label> <input name="_password_" type="password"/> <button type="submit">Login</button> </form>
ã¾ããã¡ã¼ã«ã®éä¿¡ãå®ç¾©ããã¦ããããã§ãã
<form action="mailto:"> <label for="to">To</label> <input name="to" type="email" payload="_action"/> <label for="cc">Cc</label> <input name="cc" type="email" payload="_header"/> <label for="bcc">Bcc</label> <input name="bcc" type="email" payload="_header"/> <label for="subject">Subject</label> <input name="subject" type="text" payload="_header"/> <label>Content</label> <textarea size="50"/> <button type="submit">Send</button> </form>
çµæ§ãªæ¡å¼µã§ããã
ä»å¾
Cameron æ°ã®ãã©ãã以éããã®è°è«ã¯æ¢ã¾ã£ã¦ããããã§ãç¹ã« 2013å¹´å¾åãããããã®è°è«ã¯è¦ã¤ããã¾ããã§ããã ç¾ç¶ã©ããªã£ã¦ããã®ããããããã Cameron æ°ã®ãã©ããã«ã¤ãã¦ãæ±ããããããããªãã£ããããæ¬äººã«ã¡ã¼ã«ã§è³ªåããã¦ã¿ã¾ããã
ãããªãã®è³ªåã§ãããã¯æ¨æºåã¬ã¤ãå¿«ãè¿ãã¦ããã¾ããã ããã«ããã¨ã以ä¸ã®ãããªæãã
- ãã®ãã©ããèªä½ã¯ãå®æãã¦ãã(åºããç¶æ ã§ãã)ã¨ããèªèã
- HTMLWG ã¸ã®æåºã¯ã¾ã ãã¦ãªããã©ãããå°ãé å¼µã£ã¦ããã¾ã§ãã£ã¦ããããã
- è¿ããã¡ã« FPWD(First Public Working Draft) ã¨ã㦠ML ã«æåºããäºå®ã
- HTML5.0 ã®çå®ããã»ã¹ã«ä¹ãã¦ãå®éã«ã¯ HTML5.1 ãããã§å ¥ãããã
ã¨ãããã¨ã§ãè¿ããã¡ã«ãã®ãã©ããã ML ã«æ稿ããã¦ãããã§ã¾ãä»åã®è©±ãå«ãã Form ã¨ãããã®èªä½ã®ä»å¾ã«ã¤ãã¦ã®è°è«ãèµ·ãããã¨ã¨äºæ³ããã¾ãã Cameron æ°ã¯ãæ稿æã«ã¯ BBC ã«èªåãå ¥ãã¦ãããã¨ã®ãã¨ãªã®ã§ãåãããã£ããã¾ãããã«ã¢ãããã¼ããæ¸ãããã¨æãã¾ãã
ã¾ã¨ã
ã¾ã¨ããã¨ã以ä¸ã®ãããªæããã¨æãã¾ãã
- HTML4.x 以å: éè¦ããã¾ããªããç©æ¥µçã«ä»æ§ã«è¿½å ãã人ããããã HTTP3.2 ããã®ä»æ§ãå¼ãç¶ãã§ããã
- XForms: ä»æ§ã«ã¯åãè¾¼ãã ãããããå«ãäºå®ã ã£ã XHTML2.0 ã®çå®ãçµäºããæ®åããªãã£ãã
- HTML5: è°è«ã¯ä½åº¦ããããç¾å¨ Cameron æ°ã®ãã©ããããããæåã§ãããã¯ãã®ãã¡ ML ã«æãããã模æ§ã
- HTML5.1?: Cameron æ°ã®ãã©ãããè°è«ãããæ¿èªãããã°ãã®è¾ºã§å ¥ããããããªããå ¥ããªãå¯è½æ§ã¯å¤§ãã«ããã¨æãããã
Cameron æ°ã®ãã©ããã«ã¤ãã¦æè¦ãããå ´åã¯ã W3C ã® ML ãªã©ãéã㦠Cameron æ°ã«ãã£ã¼ãããã¯ãããã¨ã§ãä»å¾ã®è°è«ã«å¯ä¸ãããã¨ãã§ããã¨æãã¾ãã
æå¾ã«ãå度æ¸ãã¾ãããããä½ãééããªã©ããã£ããé æ ®ãªãææãã¦ä¸ããã å¿ è¦ãªãã®ã«ã¤ãã¦ã¯è¿½è¨ããã¢ãããã¼ããã¾ãã
ä»åã®èª¿æ»ã«ãååããã ããçæ§ãæ¬å½ã«ãããã¨ããããã¾ããï¼
é¢é£ãªã³ã¯
Jxck