[presentation-api] Convert URL passed to PresentationRequest to an absolute URL

tidoust has just created a new issue for 
https://github.com/w3c/presentation-api:

== Convert URL passed to PresentationRequest to an absolute URL ==
The specification remains silent on what happens to the URL passed to 
the `PresentationRequest` constructor. When `start` is called, the URL
 should be converted to an absolute one.

C.f. the "window.open" algorithm in HTML:
"resolve url relative to the API base URL specified by entry settings,
 and let resource be the resulting absolute URL, if any. If the 
resolve a URL algorithm failed, then ..."
http://www.w3.org/TR/html51/browsers.html#dom-open

Not sure what should happen if the URL cannot be resolved. Reject the 
promise with an `OperationError`?

Also, should this rather be done in the `PresentationRequest` 
constructor?


See https://github.com/w3c/presentation-api/issues/200

Received on Tuesday, 22 September 2015 07:49:32 UTC