Title: 当规则不合法时,应该如何处理? · Issue #12 · webforms/webforms · GitHub
Open Graph Title: 当规则不合法时,应该如何处理? · Issue #12 · webforms/webforms
X Title: 当规则不合法时,应该如何处理? · Issue #12 · webforms/webforms
Description: 例如: 开发者设置了某个规则,但是规则定义不合法,对于数据校验来说,是应该抛出异常提醒开发者,还是应该直接通过、或不通过这个校验? 如果在提交前抛出异常,会影响到之前和后续所有规则,忽略后续所有客户端逻辑,并同步提交表单。 如果直接不通过校验,虽然不会影响到其他逻辑规则,但是对于用户体验、表单可用性可能是一个问题。 如果直接通过这个校验,这不便于发现这个问...
Open Graph Description: 例如: 开发者设置了某个规则,但是规则定义不合法,对于数据校验来说,是应该抛出异常提醒开发者,还是应该直接通过、或不通过这个校验? 如果在提交前抛出异常,会影响到之前和后续所有规则,忽略后续所有客户端逻辑,并同步提交表单。 如果直接不通过校验,虽然不会影响到其他逻辑规则,但是对...
X Description: 例如: <input minlength="abc" /> <input type="date" min="abc" /> 开发者设置了某个规则,但是规则定义不合法,对于数据校验来说,是应该抛出异常提醒开发者,还是应该直接通过、或不通过这个校验? 如果在提交前抛出异常,会影响到之前和后续所有规则,忽略后续所有...
Opengraph URL: https://github.com/webforms/webforms/issues/12
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"当规则不合法时,应该如何处理?","articleBody":"例如:\n\n``` html\n\u003cinput minlength=\"abc\" /\u003e\n\u003cinput type=\"date\" min=\"abc\" /\u003e\n```\n\n开发者设置了某个规则,但是规则定义不合法,对于数据校验来说,是应该抛出异常提醒开发者,还是应该直接通过、或不通过这个校验?\n1. 如果在提交前抛出异常,会影响到之前和后续所有规则,忽略后续所有客户端逻辑,并同步提交表单。\n2. 如果直接不通过校验,虽然不会影响到其他逻辑规则,但是对于用户体验、表单可用性可能是一个问题。\n3. 如果直接通过这个校验,这不便于发现这个问题规则。\n4. 开发者提供的规则不合法,可以考虑抛出 `error` 事件。\n","author":{"url":"https://github.com/hotoo","@type":"Person","name":"hotoo"},"datePublished":"2014-03-05T05:23:18.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/12/webforms/issues/12"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:27e53b5a-334b-0c75-2cd8-da661dde1d9c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D436:39D56:29080C5:354BFDB:6990C5D4 |
| html-safe-nonce | 897f1564fc450d470a9fd8568d62fdb973a751f8ec638ecbd4004c9a0ee06fcd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENDM2OjM5RDU2OjI5MDgwQzU6MzU0QkZEQjo2OTkwQzVENCIsInZpc2l0b3JfaWQiOiIzMDczNDIwODU3MjQ4MzY4MDg0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 011b7eadaaa9d80348f5d49f7645dacea19909e96eaf3fc20a62fbe60115f5cf |
| hovercard-subject-tag | issue:28765963 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/webforms/webforms/12/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e059f18e134411136e5b51b2c780308584f5e7f174d6d906acd612a060268092/webforms/webforms/issues/12 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e059f18e134411136e5b51b2c780308584f5e7f174d6d906acd612a060268092/webforms/webforms/issues/12 |
| og:image:alt | 例如: 开发者设置了某个规则,但是规则定义不合法,对于数据校验来说,是应该抛出异常提醒开发者,还是应该直接通过、或不通过这个校验? 如果在提交前抛出异常,会影响到之前和后续所有规则,忽略后续所有客户端逻辑,并同步提交表单。 如果直接不通过校验,虽然不会影响到其他逻辑规则,但是对... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | hotoo |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/webforms/webforms git https://github.com/webforms/webforms.git |
| octolytics-dimension-user_id | 7607914 |
| octolytics-dimension-user_login | webforms |
| octolytics-dimension-repository_id | 4153728 |
| octolytics-dimension-repository_nwo | webforms/webforms |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 4153728 |
| octolytics-dimension-repository_network_root_nwo | webforms/webforms |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width