-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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 <[email protected]> Reviewed-by: Kent Tamura <[email protected]> Commit-Queue: Chris Hall <[email protected]> Cr-Commit-Position: refs/heads/master@{#872329}
- Loading branch information
1 parent
85d6b55
commit 8266001
Showing
1 changed file
with
8 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters