Develop with pleasure!

福岡でCloudとかBlockchainとか。

WebForms2.0

HTML5ワーキングドラフト最新、Web Forms 2.0吸収で完全体近づく | 開発・SE | マイナビニュース

HTML5にWebForms2.0が統合された模様。でもWebFormsって何だ?
XFormsのことかとも思ったけど、XFormsとは違うみたい。(同じ問題領域を対象としてるみたいなので競合してるのか。)

XForms自体は、IBMMozillaが取り組みを続けており、Firefoxでのサポートなども見込まれていたり、IEにもFormsPlayerというプラグインがある。
ただ、HTMLの正式仕様でもないため、認知度は低くほとんど流行ってはいない。個人的にはデータとデザインを分離し、入力項目へのバリデーションの定義や、通信は必要となるXMLデータのみでも可能など、次世代formという位置付けとして面白いなーとは思ってるんだけど…。

現在は、HTML5のドラフトに組み込まれたみたいだけど、WebForms2.0仕様は、

Abstract


This specification defines Web Forms 2.0, an extension to the forms features found in HTML4's Forms chapter and the corresponding DOM2 HTML interfaces. Web Forms 2.0 applies to both HTML and XHTML user agents. It provides new strongly-typed input fields, new attributes for defining constraints, a repeating model for declarative repeating of form sections, new DOM interfaces, new DOM events for validation and dependency tracking, and XML submission and initialization of forms. It also standardises and codifies existing practice in areas that have not been previously documented, and clarifies some of the interactions of HTML form controls and CSS.


HTML4, XHTML1.1, and the DOM are thus extended in a manner that has a clear migration path from existing HTML forms, leveraging the knowledge authors have built up with their experience with HTML so far.

Web Forms 2.0
  • inputフィールドについて、入力項目のタイプを指定可能になる。
  • モデルについて繰り返し処理が可能になる。
  • DOMの新しいインターフェースが追加される。
  • バリデーションや依存関係?のためのDOMイベントが追加される。
  • XMLでのformの初期化、送信が可能になる。

あたりがメイン機能かな?微妙に意訳できない英語力が残念orz…