W3C home > Mailing lists > Public > public-secondscreen@w3.org > September 2015

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

From: Anssi Kostiainen via GitHub <sysbot+gh@w3.org>
Date: Tue, 29 Sep 2015 13:35:54 +0000
To: public-secondscreen@w3.org
Message-ID: <issue_comment.created-144060269-1443533754-sysbot+gh@w3.org>
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 

>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?


GitHub Notif of comment by anssiko
Received on Tuesday, 29 September 2015 13:35:56 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:18:58 UTC