Ticket #484 (new enhancement)
Special element methods should only be implemented on appropriate elements...
| Reported by: | tomocchino | Owned by: | tomocchino |
|---|---|---|---|
| Type: | enhancement | Priority: | minor |
| Milestone: | Mootools version 1.3 | Component: | Core |
| Keywords: | Cc: |
Description
For instance... when executing the following code
$('myDiv').getValue();
i should recieve an error that getValue is not defined...
Likewise, when doing
$('myDiv').send();
I should recieve a similar error.
On the other hand,
$('myForm').send();
should work as intended.
Other elements / properties that should be taken into account are send (for form elements), toQueryString(for form elements and input/textarea/selects), removeOption (for selects), etc.
Change History
Note: See
TracTickets for help on using
tickets.