-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Specify a limit in HTMLOptionsCollection.length setter. #8347
Specify a limit in HTMLOptionsCollection.length setter. #8347
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This just updates the "For web developers (non-normative)" text; you need to update the normative algorithm which says
On setting, the behavior depends on whether the new value is equal to, greater than, or less than
Feel free to rewrite that as a real algorithm with steps and stuff, if that'd make things easier...
43746da
to
001c6c0
Compare
I think it's done, please take a look. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! But it seems discussions with @mfreed7 have not fully settled in the issue thread; if it's OK, let's wait until that is done?
Thanks. My only request would be change 10,000 –> 100,000. |
This aligns with WebKit's behavior, but bumps the limit with 100k, as per the discussion in whatwg#8337. Co-authored-by: Domenic Denicola <[email protected]>
2c70ce4
to
703a99f
Compare
Okay, I updated the limit to 100k, as per discussion here and in the issue. |
I'll merge this now! I did notice that, by putting the return-if-over-100K line inside the "If the given value is greater than current" line, means that if I have a |
As per the discussion in whatwg/html#8347 Differential Revision: https://phabricator.services.mozilla.com/D160544 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1797792 gecko-commit: bdd3a81d328efa4627647bcc54e8b09878014c92 gecko-reviewers: smaug
As per the discussion in whatwg/html#8347 Differential Revision: https://phabricator.services.mozilla.com/D160544
As per the discussion in whatwg/html#8347 Differential Revision: https://phabricator.services.mozilla.com/D160544 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1797792 gecko-commit: bdd3a81d328efa4627647bcc54e8b09878014c92 gecko-reviewers: smaug
As per the discussion in whatwg/html#8347 Differential Revision: https://phabricator.services.mozilla.com/D160544
Update the const kMaxListItems to be 100,000 in HTMLOptionsCollections to reflect updated spec. Also, this max should only be used when new length is greater than current length. [1] https://html.spec.whatwg.org/#dom-htmloptionscollection-length [2] whatwg/html#8337 [3] whatwg/html#8347 Change-Id: I7ff54e9cfdcb2eb014ad508485eda6908308314b Fixed: 1370370
Update the const kMaxListItems to be 100,000 in HTMLOptionsCollections to reflect updated spec. Also, this max should only be used when new length is greater than current length. [1] https://html.spec.whatwg.org/#dom-htmloptionscollection-length [2] whatwg/html#8337 [3] whatwg/html#8347 Change-Id: I7ff54e9cfdcb2eb014ad508485eda6908308314b Fixed: 1370370 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4015681 Reviewed-by: Mason Freed <[email protected]> Commit-Queue: Di Zhang <[email protected]> Cr-Commit-Position: refs/heads/main@{#1070388}
Update the const kMaxListItems to be 100,000 in HTMLOptionsCollections to reflect updated spec. Also, this max should only be used when new length is greater than current length. [1] https://html.spec.whatwg.org/#dom-htmloptionscollection-length [2] whatwg/html#8337 [3] whatwg/html#8347 Change-Id: I7ff54e9cfdcb2eb014ad508485eda6908308314b Fixed: 1370370 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4015681 Reviewed-by: Mason Freed <[email protected]> Commit-Queue: Di Zhang <[email protected]> Cr-Commit-Position: refs/heads/main@{#1070388}
…ection.length setter, a=testonly Automatic update from web-platform-tests Restore 100,000 limit in HTMLOptionsCollection.length setter Update the const kMaxListItems to be 100,000 in HTMLOptionsCollections to reflect updated spec. Also, this max should only be used when new length is greater than current length. [1] https://html.spec.whatwg.org/#dom-htmloptionscollection-length [2] whatwg/html#8337 [3] whatwg/html#8347 Change-Id: I7ff54e9cfdcb2eb014ad508485eda6908308314b Fixed: 1370370 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4015681 Reviewed-by: Mason Freed <[email protected]> Commit-Queue: Di Zhang <[email protected]> Cr-Commit-Position: refs/heads/main@{#1070388} -- wpt-commits: 893a5f3fa49a459b94526de606e89856dcbb5dae wpt-pr: 36917
…ection.length setter, a=testonly Automatic update from web-platform-tests Restore 100,000 limit in HTMLOptionsCollection.length setter Update the const kMaxListItems to be 100,000 in HTMLOptionsCollections to reflect updated spec. Also, this max should only be used when new length is greater than current length. [1] https://html.spec.whatwg.org/#dom-htmloptionscollection-length [2] whatwg/html#8337 [3] whatwg/html#8347 Change-Id: I7ff54e9cfdcb2eb014ad508485eda6908308314b Fixed: 1370370 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4015681 Reviewed-by: Mason Freed <[email protected]> Commit-Queue: Di Zhang <[email protected]> Cr-Commit-Position: refs/heads/main@{#1070388} -- wpt-commits: 893a5f3fa49a459b94526de606e89856dcbb5dae wpt-pr: 36917
This aligns with WebKit's behavior as per the discussion in #8337.
/common-dom-interfaces.html ( diff )