XPCOM:nsIRegExpService: Difference between revisions
(nsIRegExpService reference) |
m (Fixed broken links which ended in a | (Incorrect use of WIKI-code)) |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
[https://bugzilla.mozilla.org/show_bug.cgi?id=106590 Bug 106590] covers implementing a nsIRegExpService for XPCOM. Various modules - such as Web Forms 2.0 and XForms - need functionality like this. In addition, some C++ operations would benefit from having this supported. | |||
This page is for discussing how to actually solve bug 106590. | This page is for discussing how to actually solve bug 106590. | ||
== Use Cases == | |||
* [http://lxr.mozilla.org/seamonkey/source/extensions/schema-validation/src/nsSchemaValidatorRegexp.js The schema-validation extension] uses XPCOM to reach JavaScript for regular expression services. | |||
* [http://www.whatwg.org/specs/web-forms/current-work/#the-pattern Web Forms 2.0] requires for the pattern attribute of HTML form inputs that validation happen according to the ECMA-262 specification. (WF2 cannot immediately use the schema-validation process, because WF2 would be built much earlier than schema-validation... not to mention that schema-validation is currently an extension.) |
Latest revision as of 22:45, 11 August 2006
Bug 106590 covers implementing a nsIRegExpService for XPCOM. Various modules - such as Web Forms 2.0 and XForms - need functionality like this. In addition, some C++ operations would benefit from having this supported.
This page is for discussing how to actually solve bug 106590.
Use Cases
- The schema-validation extension uses XPCOM to reach JavaScript for regular expression services.
- Web Forms 2.0 requires for the pattern attribute of HTML form inputs that validation happen according to the ECMA-262 specification. (WF2 cannot immediately use the schema-validation process, because WF2 would be built much earlier than schema-validation... not to mention that schema-validation is currently an extension.)