-
Notifications
You must be signed in to change notification settings - Fork 3
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 <aboxhall@chromium.org> Reviewed-by: Kent Tamura <tkent@chromium.org> Commit-Queue: Chris Hall <chrishall@chromium.org> Cr-Commit-Position: refs/heads/master@{#872329} GitOrigin-RevId: 5bc9faabddc88997f080101649cd38a1c42875f8
- Loading branch information
1 parent
313df77
commit 85eb5fc
Showing
6 changed files
with
19 additions
and
19 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
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
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
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
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
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