A user account is required in order to edit this wiki, but we've had to disable public user registrations due to spam.
To request an account, ask an autoconfirmed user on Chat (such as one of these permanent autoconfirmed members).
URL: Difference between revisions
Jump to navigation
Jump to search
(→Parsing: add javascript library links) |
|||
Line 36: | Line 36: | ||
See https://github.com/annevk/url/blob/master/url.js for now. | See https://github.com/annevk/url/blob/master/url.js for now. | ||
==JavaScript libraries== | |||
For improving the API we might want to take inspiration from: | |||
* http://medialize.github.com/URI.js/ | |||
* https://github.com/joyent/node/blob/master/doc/api/url.markdown | |||
* https://github.com/bestiejs/punycode.js (just Punycode) | |||
[[Category:Spec coordination]] | [[Category:Spec coordination]] |
Revision as of 20:57, 18 September 2012
This documents research and notes around the URL specification.
Implementations
- http://trac.webkit.org/browser/trunk/Source/WebCore/platform/KURL.cpp
- http://trac.webkit.org/browser/trunk/Source/WebCore/platform/KURLWTFURL.cpp
- http://trac.webkit.org/browser/trunk/Source/WebCore/platform/KURLGoogle.cpp
- http://trac.webkit.org/browser/trunk/Source/WebCore/platform/network/DataURL.cpp (data URLs)
Tests
Terminology
- URL string
- What you find in attribute values, property values, method parameters, etc.
- parse a URL string url using base URL base
- Turning a URL string into a URL by using a base URL.
- URL
- An in-memory representation of a URL with various properties as elaborated on by model below.
- URL interface/object
- JavaScript representation of a URL.
Model
URL (.href) - invalid? - scheme (.protocol) - authority - username (proposed .username) - password (proposed .password) - ip/host (.hostname) - port (.port) - path (.pathname) - query (.search) - fragment (.hash)
Parsing
See https://github.com/annevk/url/blob/master/url.js for now.
JavaScript libraries
For improving the API we might want to take inspiration from: