You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For an example, the haskellfoundation/haskellfoundation.github.io@50e7310 commit for the Haskell Foundation website has the donors list at the bottom. The ones that use the srcset attribute only have the first path relativized, for example:
in our case this is okay for the deployed site, since the absolute path is correct in that case, but it would not be so if we wanted to deploy branch builds to a subdirectory, and it looks bad locally opening files in the browser.
The text was updated successfully, but these errors were encountered:
We used to assume that `srcset` is just like `src`, and contains only
one URL. As the name of the attribute might suggest, this assumption is
wrong.
The attribute's value has a somewhat-complex grammar, with optional
fields and different separators, so I implemented a Parsec parser for
(the most of) it. The parser expects URLs to be a contiguous string of
anything but space or comma (`srcset`'s separators); I hope it will be
sufficient.
This also adds tests for the affected functions, and documentation for
`getUrls`.
Fixesjaspervdj#889.
We used to assume that `srcset` is just like `src`, and contains only
one URL. As the name of the attribute might suggest, this assumption is
wrong.
The attribute's value has a somewhat-complex grammar, with optional
fields and different separators, so I implemented a Parsec parser for
(the most of) it. The parser expects URLs to be a contiguous string of
anything but space or comma (`srcset`'s separators); I hope it will be
sufficient.
This also adds tests for the affected functions, and documentation for
`getUrls`.
Fixes#889.
For an example, the haskellfoundation/haskellfoundation.github.io@50e7310 commit for the Haskell Foundation website has the donors list at the bottom. The ones that use the
srcset
attribute only have the first path relativized, for example:in our case this is okay for the deployed site, since the absolute path is correct in that case, but it would not be so if we wanted to deploy branch builds to a subdirectory, and it looks bad locally opening files in the browser.
The text was updated successfully, but these errors were encountered: