Remove client-side validations #1636
bennypowers
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
|
I've got an issue open on Selector Hound to see how we can work on this. Working from a manifest or a custom element registry may be a novel way to do this. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Elements like CTA, Footer, Navigation and others contain client side validations which log warnings via
Loggerwhenever they find invalid HTML children.For example, this (incorrect) HTML
Will produce this message:
The Problem
This means we're shipping validation code to pages which don't need it
and we're also logging developer-facing messages on customer-facing sites
Proposed Solution
I propose we remove all of these validations, and instead use a tool like @paceaux's Selector Hound or other extensible HTML validators to run validations out-of-band
Beta Was this translation helpful? Give feedback.
All reactions