mithril-vndb/pathname
Isiah Meadows 85bfd0f77d
Clarify pathname docs, follow spec with fragments (#2448)
* Clarify pathname docs, follow spec with fragments

- Valid URLs must not contain a `#` within its fragment.
  https://github.com/MithrilJS/mithril.js/issues/2445
- Our docs were a little confusing and misleading - `m.pathname` isn't
  aware of URLs, just path names.
- Removed the relevant extension to `m.parseQueryString` required to
  support the hash parsing extension. Now we just shave it off and
  ignore it.
- Fix support for arbitrary prefixes, so prefixes like `?#` are
  handled correctly.
- Add a bunch of tests to cover various areas of confusion and unusual
  edge cases.

* Update with PR [skip ci]
2019-07-03 06:22:25 -04:00
..
tests Clarify pathname docs, follow spec with fragments (#2448) 2019-07-03 06:22:25 -04:00
assign.js support falsy arguments in Object.assign polyfill (#2433) 2019-06-15 22:48:24 -04:00
build.js Streamline route/request path handling and split params + body in requests (#2361) 2019-05-29 09:28:40 -04:00
compileTemplate.js Streamline route/request path handling and split params + body in requests (#2361) 2019-05-29 09:28:40 -04:00
parse.js Clarify pathname docs, follow spec with fragments (#2448) 2019-07-03 06:22:25 -04:00