[Webkit-unassigned] [Bug 52214] New: [HTML5] Revert display:none on datalist

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jan 11 08:43:59 PST 2011


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

           Summary: [HTML5] Revert display:none on datalist
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
               URL: http://adactio.com/journal/4272/
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Minor
          Priority: P3
         Component: Forms
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: jeremy at adactio.com
                CC: rik at webkit.org


Until the datalist element is supported, the element should be ignored (like any other unknown element). Instead the CSS currently applies display:none to datalist elements (line 539 of html.css).

The datalist element can contain content other than option elements; this is by design so that authors can rely on non-supporting browsers to display the non-option content as a fallback. Applying display:none to datalist negates this ability.

In effect, the spec is relying on non-supporting browsers to treat the datalist element the same way they would treat foo, bar, or any other element they don't recognise.

Here's a test case: http://adactio.s3.amazonaws.com/misc/datalist.html

Source: https://gist.github.com/771830/

Without the author CSS that sets datalist to display: inline-block, the fallback content (a select element a text node) is hidden.

The expected behaviour is that the fallback content is displayed.

I've tested this in the latest nightly build r75294 on Mac OS X 10.6.6.

Because this issue can be resolved in a user or author stylesheet, I'm marking this bug as minor rather than normal.

-- 
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