[Webkit-unassigned] [Bug 24900] New: Render empty optgroup elements.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Mar 27 14:55:05 PDT 2009


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

           Summary: Render empty optgroup elements.
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Layout and Rendering
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: agl at chromium.org


Render empty optgroup elements.

Currently, optgroup elements which are empty are not rendered. The
HTML specification gives no guidance on this situation.

However, the test for being empty is that they have no children, thus
this will not render:
  <optgroup label="test"></optgroup>
while this /will/ render (because of the text node child):
  <optgroup label="test"> </optgroup>

This patch will cause both cases to render which matches IE's and
Firefox's behaviour.

The difference only appears when opening the select element, does not
appear in the render tree and there's no way to open a select from
Javascript. Thus, a manual layout-test is required.


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



More information about the webkit-unassigned mailing list