W3C home > Mailing lists > Public > public-html@w3.org > April 2015

Re: Form element dependencies

From: Andrea Rendine <master.skywalker.88@gmail.com>
Date: Thu, 2 Apr 2015 04:23:34 +0200
Message-ID: <CAGxST9kPaYaJ23cX6C6qWTE62RF=S5DcfswVc0w5=E_hH3wO9g@mail.gmail.com>
To: "public-html@w3.org LIST" <public-html@w3.org>, sisbluesteel <sisbluesteel@aol.com>
Hey everybody!
Has there been any evolution about this subject?
Days ago I sent a message but it never reached the list. In short:
The focus for dependency attribute and "directionality" is to choose ease
of implementation or readability.
 - if @for is specified on the controller, then I think that it would be
easier for user agents to identify the state change action.
 <controller@for> -> identify controlled (depending) element(s) ->
controller state change -> toggle controlled element's state
 - on the other hand, specifying it on controlled elements (depending)
makes the code more readable, I see an element and I know what controls it
relies on.
It'd be also useful to know if there are custom scripts (plugins etc) which
do it as of now and how they work.
These are some examples:
http://dstreet.github.io/dependsOn/ - here the relationship starts from
controlled and the function specifies what elements the controlled relies
https://github.com/keyo/jQuery-Form-Dependency - more complex syntax, but
same as above. The rule specifies what element's state to watch in order to
enable/disable behaviors
same here, the depending elements are specified before the element to be
Then it looks like community goes this way.

I'd suggest some other ways to propose this feature:
 - https://www.w3.org/community/webed/wiki/HTML5_form_additions (page or
discussion), but I don't know how often it is watched
 - WHATWG mailing list (whatwg@whatwg.org), similar to this but regarding
Web Hypertext Application Technology Working Group
 - https://wiki.whatwg.org/wiki/IRC WHATWG Freenode channel (requires more
 - WHATWG wiki proposals (https://wiki.whatwg.org/wiki/Feature_Proposals) -
also worth noting this page for suggestions about proposing stuff:

Yours respectfully and supportingly
Received on Thursday, 2 April 2015 02:24:01 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 29 October 2015 10:16:43 UTC