Named Key Discovery - Name Comparison

Mark,

I note that your current ED (
https://dvcs.w3.org/hg/webcrypto-keydiscovery/raw-file/9dd3763a0333/Overview.html
) makes this statement for the "getKeyByName" method (
https://dvcs.w3.org/hg/webcrypto-keydiscovery/raw-file/9dd3763a0333/Overview.html#methods
)

"A name specifier matches the name of a key if they are identical when
expressed as a string of unicode characters."

Several thoughts:
1) It seems you should include a normative reference to "convert a
DOMString to a sequence of Unicode characters" if you're going to
state the comparison as unicode codepoints (See
http://dev.w3.org/2006/webapi/WebIDL/#dfn-obtain-unicode )

2) Your specification leaves the comparison as ambiguous when dealing
with the Unicode equivalence - are they canonically equivalent,
compatible, etc.

It seems you should normatively reference one of the appropriate DOM
terminologies for string comparison (
https://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#strings /
http://dom.spec.whatwg.org/#strings ). I presume you wish a
case-sensitive match.

Cheers

Received on Tuesday, 9 July 2013 00:10:33 UTC