This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 27895 - <input disabledifunchanged>
Summary: <input disabledifunchanged>
Status: RESOLVED WONTFIX
Alias: None
Product: HTML WG
Classification: Unclassified
Component: HTML5 spec (show other bugs)
Version: unspecified
Hardware: All All
: P2 enhancement
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-26 10:45 UTC by netmosfera
Modified: 2015-06-17 06:11 UTC (History)
3 users (show)

See Also:


Attachments

Description netmosfera 2015-01-26 10:45:58 UTC
Just a random idea. It would be nice to have an attribute for form elements that would prevent their data from being sent by the form when they are left unchanged.

<form method="post" action="./save">
<textarea name="article" disabledifunchanged>foo</textarea>
<button>Save</button>
</form>

if textarea.value === textarea.defaultValue is true, no "&article=" get/post variable will be sent by the form.

this is especially useful for data-tables containing lot of form inputs which unlikely will be all modified. so why not submitting only those that were actually changed? improves also bandwidth usage, simplifies the work of server-side form handlers and reduces the risk of errors since less work must be handled and performed.

hope you like the idea
Comment 1 Michael[tm] Smith 2015-06-17 06:11:29 UTC
The best way to get feedback on this idea would be to start a discussion about it at discuss.webplatform.org or on the public-webapps@w3.org mailing list, or the whatwg@whatwg.org mailing list, and then re-open this bug if/when there's new information or expressions of support that emerge from the discussion.