Use fetch
events in parsers for events that are not related to parsing and are related to getting the content of the file
#960
Labels
Parsers currently have custom
parse
events for some actions that can be covered byfetch
events.For example instead of events like
parse::<something>::error::not-found
orparse::<something>::error::not-specified
, we can just havefetch::missing::<something>
.In general I think the following events should cover most cases.
fetch::end::<resource-type>
fetch::error::<resource-type>
fetch::missing::<resource-type>
fetch::start::<resource-type>
I think having this (or adding these events in parsers) will not only reduce the need to introduce new custom events, and thus, new types, but also make more rules possible and easier to implement.
Also, in some cases as with the web app manifest, it will make things backward compatible with what we have right now
See also: #930
The text was updated successfully, but these errors were encountered: