[Bug 23307] New: When input or select with validation attributes inside a hidden content, it validates anyway

https://www.w3.org/Bugs/Public/show_bug.cgi?id=23307

            Bug ID: 23307
           Summary: When input or select with validation attributes inside
                    a hidden content, it validates anyway
           Product: HTML WG
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTML5 spec
          Assignee: dave.null@w3.org
          Reporter: konstardiy@gmail.com
        QA Contact: public-html-bugzilla@w3.org
                CC: mike@w3.org, public-html-admin@w3.org,
                    public-html-wg-issue-tracking@w3.org

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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Received on Friday, 20 September 2013 17:17:07 UTC