Re: [nfc] Unclear definition of "URL scope"

You can definitely define a small algorithm and use it from each 
algorithm, and you probably need to in order to define the error that 
happens when the URL found in an NDEF record doesn't match the web 
app's origin.

The definition is also just not clear. You have "The term URL scope 
.... [is] a sub-string match to the web app's document URL.", which 
doesn't really mean anything. Do you want to define "URL scope" as "a 
URL that is a sub-string of the web app's document URL"? But an NDEF 
record can contain any URL. I think you mean that an NDEF record is 
only exposed to an application if its identifier is a substring of the
 application's URL?

Also, "substring" isn't really right: 
`https://www.example.com/path?x=https://www.somethingelse.com` is a 
valid URL, but you don't want an NDEF record containing 
"https://www.somethingelse.com" to match that example.com application.

-- 
GitHub Notif of comment by jyasskin
See https://github.com/w3c/nfc/issues/69#issuecomment-73988688

Received on Wednesday, 11 February 2015 23:35:28 UTC