[Webkit-unassigned] [Bug 58208] New: hidden attribute on <input type=file /> suppresses the file selection dialog

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Apr 10 12:39:24 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=58208

           Summary: hidden attribute on <input type=file /> suppresses the
                    file selection dialog
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: Forms
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: priyajeet.hora at gmail.com


Created an attachment (id=88957)
 --> (https://bugs.webkit.org/attachment.cgi?id=88957&action=review)
testcase

Downstream bug: http://code.google.com/p/chromium/issues/detail?id=78961
Test case attached. Will show file selection box in firefox, and nothing in webkit.

<input id=inp type=file hidden />
<button onclick="document.getElementById('inp').click();">Click me</button>

The onclick event is fired though, which can be tested with a simple alert in the input.

Looking at the spec, I do read
"Elements that are not hidden should not link to or refer to elements that are hidden."
http://dev.w3.org/html5/spec/Overview.html#the-hidden-attribute
Though unsure if this falls into that category.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list