Contact [email protected]

ExplainerThis is a small extension to URLSearchParams. Web developers can
use the `size` attribute to check whether there are any query parameters in
a URLSearchParams object.

Specificationhttps://url.spec.whatwg.org/#dom-urlsearchparams-size

Summary

Add a size getter to URLSearchParams. It's useful to check whether there
are any query parameters in a URLSearchParams object.


Blink componentBlink
<https://bugs.chromium.org/p/chromium/issues/list?q=component:Blink>

TAG reviewNot applicable. The URL Standard is already updated.

TAG review statusNot applicable

Risks


Interoperability and Compatibility



*Gecko*: No signal

*WebKit*: Positive (https://github.com/whatwg/url/pull/734)

*Web developers*: Positive (https://github.com/whatwg/url/issues/163)

*Other signals*:

WebView application risks

Debuggability

An attribute can be suspected by DevTools and other tools.

Will this feature be supported on all six Blink platforms (Windows, Mac,
Linux, Chrome OS, Android, and Android WebView)?Yes

Is this feature fully tested by web-platform-tests
<https://chromium.googlesource.com/chromium/src/+/main/docs/testing/web_platform_tests.md>
?Yes
https://wpt.fyi/results/url/urlsearchparams-size.any.html?label=experimental
(to appear)

Flag nameN/A

Requires code in //chrome?False

Tracking bughttps://bugs.chromium.org/p/chromium/issues/detail?id=1418374

Estimated milestones

M113


Anticipated spec changes
No.

Link to entry on the Chrome Platform Status
https://chromestatus.com/feature/5197222754385920

This intent message was generated by Chrome Platform Status
<https://chromestatus.com/>.

-- 
You received this message because you are subscribed to the Google Groups 
"blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAPLXX-_OFPuEo8etovj4_HdWgtwvy3QOxOm6XS1e75EVueVgEQ%40mail.gmail.com.

Reply via email to