W3C home > Mailing lists > Public > www-voice@w3.org > April to June 2010

April CCXML: test case 882 error?

From: Chris Davis <davisc@iivip.com>
Date: Tue, 27 Apr 2010 15:28:29 -0500
Message-ID: <4BD748ED.9080607@iivip.com>
To: www-voice@w3.org
Hello www-voice,

Test #882 seems to test that a conference ID is a legal URI.

It uses a cryptic value passed to "match":
---------
if (confid.match(/^([A-Za-z]:\/\/(.*\/)+)?(\w)+$/) != undefined )
------------------------

I ran some sample URIs from RFC2396 through the same "match" usage
as the test case and am told URIs are not URIs.

Examples that it claims are not URIs:
ftp://ftp.is.co.za/rfc/rfc1808.txt
http://www.math.uio.no/faq/compression-faq/part1.html

<html>
<body>
<pre>
<script type="text/javascript">
var confid = 'ftp://ftp.is.co.za/rfc/rfc1808.txt';

if (confid.match(/^([A-Za-z]:\/\/(.*\/)+)?(\w)+$/) != undefined )
{
    document.write( confid + ' is a URI' );
}
else
{
    document.write( confid + ' is NOT a URI' );
}

</script>
</pre>
</body>
</html>

This is part of 10_5_5_A.txml.

Thanks

-- 
Chris Davis
Interact Incorporated R&D
512-502-9969x117
Received on Tuesday, 27 April 2010 20:29:05 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 April 2010 20:29:11 GMT