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

It sounds like the URL should be parsed when the constructor is 
called. Or do we have a good reason not to? This would suggest the 
[Interface PresentationRequest section][1] is amended with something 
like:

>When the `PresentationRequest()` constructor is called, the UA must 
run these steps:
>* ... language to implement URL parsing ... , if this fails throw a 
`SyntaxError` and abort these steps. 
>* Set the presentation request URL to the result of parsing.

On the exception naming: the `WebSocket()` constructor throws a 
`SyntaxError` if the parsing of the URL passed as an argument to the 
constructor fails. Perhaps better throw a `SyntaxError` instead of an 
`OperationError` here as well?

[1]: 
https://w3c.github.io/presentation-api/#interface-presentationrequest

-- 
GitHub Notif of comment by anssiko
See 
https://github.com/w3c/presentation-api/issues/200#issuecomment-144060269

Received on Tuesday, 29 September 2015 13:35:56 UTC