DOM/Web Forms 2.0: Difference between revisions

m
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 [http://www.ietf.org/rfc/rfc3987 RFC 3987], as WF2 states.
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.
Confirmed users
146

edits