Comments (10)
well… looked at it again and you seem to be correct, there is no problem like this anymore.
from content.
@rugk I've created an issue in MDN browser-compat-data. Thank you!
from content.
okay, so closing this one here…
from content.
Coming from the issue on BCD. I think that there may have been a misinterpretation of the note; the compatibility table doesn't mention anything about .get()
with no arguments. It mentions .getAll()
's functionality of obtaining all the headers of a given name being placed into .get()
, meaning a name still needs to be specified.
from content.
But this is obsolete:
Headers.getAll()
Used to return an array of all the values of a header within a Headers object with a given name; this method has now been deleted from the spec, and Headers.get() now returns all values instead of just one.
Maybe that is really bad formulated, especially as it mentions the .get()
without any given parameter.
from content.
Ah, okay. That part isn't in the BCD, that's the documentation itself. Yeah, I would agree, the wording seems a little odd to me. Well, I just made a quick edit that should do the trick! How's it look?
from content.
@vinyldarkscratch I think your rewording looks good; closing this one.
from content.
Hmm, still see no difference/explanation here.
So to clarify .get("")
would get all headers or what? (Edit: tried, did not work.)
Also even https://developer.mozilla.org/en-US/docs/Web/API/Headers/get is not really explicit there. Actually, I see it nowhere even mentioned that retrieving all headers is possible.
Also consider adding an example in here. There is only the yellow box that tells the same: behaviors merged. So how do I do "get al"?? 😕
Or is it not possibly anymore? If so, just tell it: "You cannot receive all headers without specifying them anymore." or so, but do not talk about some kind of "merging" when actually behaviour has been removed… 🙄
Ah or wait: Now I get it: .getAll
could not actually return all headers? You had to specify them anyways… Ah, that makes it clear. Possibly this is also why it was renamed ("get all" implies you get well… all), so maybe this is the only misconception I had: If the old behaviour did not allow it, but was merged, it obviously does not work now either… (but if you misinterpret the old behaviour, this fails)
So again, however, explicitly state it. Just something like "You cannot retrieve all headers at a time.", possibly with a workaround: "But you can…"
from content.
Since there are still concerns here, I'll reopen this one, and I've tagged it and put it into the backlog. I've not got time right now, but I'll pick this one up in our next sprint.
from content.
Is this stiill an issue? get()
returns only the requested header as documented and there is no getAll()
?
from content.
Related Issues (20)
- [Web API] Enable `dom.events.asyncClipboard.clipboardItem` by default HOT 1
- [HTML] `data:` and `javascript:` not allowed in href
- IMPORTANT description and example missing HOT 2
- Third-party-cookies console error HOT 2
- see the W3C DOM FAQ no link and node wrong format HOT 1
- Ensuring ordering on conditional use of promises: Example is fundamentally flawed
- [CSS] `calc()` can parse color components
- Create "Cumulative Layout Shift" glossary page
- content Error HOT 2
- [Web API] HTML character entities are supported in WebVTT
- [CSS] Support alt text in the `content` property
- inset() shape function missing information
- [Security] Upgrade passive mixed content to HTTPS
- Limitations of `path()` basic shape
- Dead Link
- Internet Explorer is outdated, need to change the content
- MDN inert Attribute Docs: Missing Info on Text Selection Prevention
- Crashes on iOS Safari
- Add a glossary entry for "federated identity provider"
- Unclear whether omitting `<tbody>` tags (putting `<tr>` directly under `<table>`) is valid
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from content.