w3c / web-share-target

Web API proposal for receiving shared data
https://w3c.github.io/web-share-target/
Other
191 stars 20 forks source link

Parse and validate URL template at manifest parse time #34

Closed mgiuca closed 6 years ago

mgiuca commented 6 years ago

Previously, the URL template would be stored as an opaque string until target launch time, at which point any syntax errors in the template would result in a failed launch.

Now, the URL template is parsed at manifest parse time, and stored as a URL object. Any syntax errors (URL syntax or template syntax) result in the target being ignored in any share picker.

Resolves #25.


Preview | Diff

mgiuca commented 6 years ago

@ewilligers PTAL. This is the main change I want to make to this spec before sending back to TAG review.

ewilligers commented 6 years ago

Add resolves #25 to the CL description.