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 23307 - When input or select with validation attributes inside a hidden content, it validates anyway
Summary: When input or select with validation attributes inside a hidden content, it v...
Status: RESOLVED WONTFIX
Alias: None
Product: HTML WG
Classification: Unclassified
Component: HTML5 spec (show other bugs)
Version: unspecified
Hardware: All All
: P3 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: 2013-09-20 17:17 UTC by Konstantin
Modified: 2015-06-26 05:38 UTC (History)
3 users (show)

See Also:


Attachments

Description Konstantin 2013-09-20 17:17:06 UTC
After reading this fragment:
"The willValidate, validity, and validationMessage IDL attributes, and the checkValidity() and setCustomValidity() methods, are part of the constraint validation API. The labels IDL attribute provides a list of the element's labels. The select(), selectionStart, selectionEnd, selectionDirection, setRangeText(), and setSelectionRange() methods and IDL attributes expose the element's text selection. The autofocus, disabled, form, and name IDL attributes are part of the element's forms API."
I think that it can be quite useful to add condition or submit-if attribute to input and select elements with following semantics:
1) if the condition or submit-if attribute has any value and its value is an id of an existing check box or radio input, then the behavior of input or select is same as described in other paragraphs of this document.

1.2) if the condition or submit-if attribute is specified and if no input found by condition value, or a checkbox or radio found, but it is not checked 
the behavior and appearance of this input or select element is same as it has disabled attribute set and its value is not submitted among the form data;

2) if this attribute not set, or no input like check box or radio button with specified id was found, the behavior of this input or select element is usual, as described in other paragraphs of this document.
Comment 1 Michael[tm] Smith 2015-06-17 02:41:45 UTC
No indications of implementer interest nor follow-up from other commenters here, so moving to resolved=wontfix. Re-open if there's any new information.