Changes between Version 5 and Version 6 of EnableFormFeatures
- Timestamp:
- Feb 13, 2013, 5:48:30 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
EnableFormFeatures
v5 v6 1 1 = How to enable Form features = 2 3 == Interactive form validation == 4 5 1. Implement `WebCore/page/ValidationMessageClient.h` for your port 6 2. Set it to `PageClients::validationMessageClient` 7 3. Instantiate a `Page` object 8 4. `page->settings()->setInteractiveFormValidationEnabled(true)` 9 10 Doing step 3 and 4 without step 1 and 2 enables a platform-neutral form validation UI. But it has [https://bugs.webkit.org/show_bug.cgi?id=95527 some unresolvable bugs]. 11 You should provide your `ValidationMessageClient`. 2 12 3 13 == input[type=number] == … … 21 31 22 32 Test: fast/forms/number/number-l10n-input.html 23 24 == Interactive form validation ==25 26 1. Implement `WebCore/page/ValidationMessageClient.h` for your port27 2. Set it to `PageClients::validationMessageClient`28 3. Instantiate a `Page` object29 4. `page->settings()->setInteractiveFormValidationEnabled(true)`30 31 Doing step 3 and 4 without step 1 and 2 enables a platform-neutral form validation UI. But it has [https://bugs.webkit.org/show_bug.cgi?id=95527 some unresolvable bugs].32 You should provide your `ValidationMessageClient`.33 33 34 34 == input[type=color] == … … 62 62 2. Implement `ChromeClient::openDateTimeChooser` 63 63 64 Note that WebCore has calendar chooser implementation built with HTML. It supports date type, month type, week type, and year-month-day part of datetime-local type. 65 It requires `ENABLE_CALENDAR_PICKER` and `ENABLE_PAGE_POPUP`. This implementation doesn't support time type and the time part of datetime-local type. 66 If we add their support in the future, `ENABLE_CALENDAR_PICKER` can be used for the chooser-only UI too. 64 === ENABLE_CALENDAR_PICKER === 65 WebCore has a calendar chooser implementation built with HTML. 66 It supports date type, month type, week type, and year-month-day part of datetime-local type, and 67 doesn't support time type and the time part of datetime-local type for now. 68 So, the implementation is not enough for the chooser-only UI. 69 70 1. Enable `ENABLE_PAGE_POPUP` flag.[[BR]] 71 This feature requires `V8EnabledPerContext` extended attribute. 72 If your port uses JavaScriptCore, dont't use `WebCore/page/DOMWindowPagePopup.idl` and setup `pagePopupController` property in C++ code. 73 2. Enable `ENABLE_CALENDAR_PICKER` flag 67 74 68 75 [[Image(calendar-picker.png)]] [[BR]]