``` document.getElementById('example-div').dataset.myID == "1" ```
becomes:
``` <div id="example-div" data-my-i-d="1"></div> ```
``` document.getElementById('example-div').dataset.myID == "1" ```
becomes:
``` <div id="example-div" data-my-i-d="1"></div> ```
‘UI’ may be a better example :)
There's not really a good standard at all, but I think the _emerging_ practice is captured well here
> When using acronyms, use Pascal case or camel case for acronyms more than two characters long. For example, use HtmlButton or htmlButton . However, you should capitalize acronyms that consist of only two characters, such as System.IO instead of System.Io . Do not use abbreviations in identifiers or parameter names.
https://learn.microsoft.com/en-us/previous-versions/dotnet/n...
- Isn't limited to XML
- Isn't limited to HTTP
- The returned object is also the response
Beautifully named.
Obiously the JS API should be called ExtensibleMarkupLanguageHyperTextTransportProtocolRequest
like thisI presume, the ability to get the exact camelCase capitalization you want is why the html spec does the conversion this way: https://html.spec.whatwg.org/multipage/dom.html#dom-dataset-...