[Webkit-unassigned] [Bug 190626] New: [Datalist] imported/w3c/web-platform-tests/html/semantics/forms/the-datalist-element/datalistoptions.html fails after enabling the datalist element
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Oct 16 10:10:49 PDT 2018
https://bugs.webkit.org/show_bug.cgi?id=190626
Bug ID: 190626
Summary: [Datalist]
imported/w3c/web-platform-tests/html/semantics/forms/t
he-datalist-element/datalistoptions.html fails after
enabling the datalist element
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Forms
Assignee: webkit-unassigned at lists.webkit.org
Reporter: wenson_hsieh at apple.com
CC: cdumez at apple.com, wenson_hsieh at apple.com
See: GenericCachedHTMLCollection.cpp:
GenericCachedHTMLCollection<traversalType>::elementMatches handles DataListOptions by filtering out disabled and empty option elements, which means HTMLDataListElement.options() won't include disabled or empty options. However, this WPT checks that HTMLDataListElement.options() does include empty and disabled options.
The official spec has this to say:
<https://www.w3.org/TR/html52/sec-forms.html#the-datalist-element>
> Each option element that is a descendant of the datalist element, that is not disabled, and whose value is a string that isn’t the empty string, represents a suggestion. Each suggestion has a value and a label.
>
> datalist . options
>
> Returns an HTMLCollection of the option elements of the datalist element.
> The options IDL attribute must return an HTMLCollection rooted at the datalist node, whose filter matches option elements.
So the spec makes it clear what a suggestion is w.r.t. the datalist element, but it never specifies that there's a 1-1 mapping between a datalist element's options and its suggestions...
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20181016/cfca7cbe/attachment.html>
More information about the webkit-unassigned
mailing list