Confirmed users
146
edits
Line 196: | Line 196: | ||
For this, we may just want to use NS_NewURI() to validate the value of the input. | For this, we may just want to use NS_NewURI() to validate the value of the input. | ||
This has a disadvantage of not allowing for URI's which we don't support but WF2 allows. The alternative, which I don't quite know how to do, is to validate the value by | This has a disadvantage of not allowing for URI's which we don't support but WF2 allows. The alternative, which I don't quite know how to do, is to validate the value by RFC 3987, as WF2 states. | ||
It may be best to allow both - default to NS_NewURI first, then validate by RFC 3987 if that fails. | It may be best to allow both - default to NS_NewURI first, then validate by RFC 3987 if that fails. |