Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1705011 [wpt PR 28465] - [Element Reflection] Null vs Empty-list …
…differentiation., a=testonly Automatic update from web-platform-tests [Element Reflection] Null vs Empty-list differentiation. If the content-attribute is not present, then we return null. If the content attribute is present, and there are no explicitly set attr-elements, and the content attribute doesn't yield any valid elements, then we return an empty array. This makes the interface more consistent, as a caller could already to the attribute to null to clear. This brings the implementation in-line with the update here whatwg/html#3917 (comment) This also updates/clarifies code comments and adds descriptive strings to existing tests. This is a subset of the work Alice did for https://crrev.com/c/2796854 Change-Id: I3dcc8492fdb5467f82468bbc3d4b7e4a87c5d48e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2825017 Reviewed-by: Alice Boxhall <aboxhall@chromium.org> Reviewed-by: Kent Tamura <tkent@chromium.org> Commit-Queue: Chris Hall <chrishall@chromium.org> Cr-Commit-Position: refs/heads/master@{#872329} -- wpt-commits: 82660010e10bbed4d383c2f040cdf3a12274fe9c wpt-pr: 28465
- Loading branch information