- From: Joey Arhar via GitHub <noreply@w3.org>
- Date: Thu, 10 Jul 2025 15:40:17 +0000
- To: public-css-archive@w3.org
Pros of pseudo-element: - Don't have to worry about privacy of possibly exposing the browser's localized validation error message text. - Maybe don't have to worry as much about accessibility of when the validation bubble is shown? - Works better with existing setCustomValidity API. - Allows the author to reuse the browser's localized validation error message text without actually seeing the text. - If we provided another way to access this text for providing your own popover, there would be privacy issues. Although that might already be possible with the existing validationMessage property...? https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/validationMessage Pros of providing your own popover: - Very powerful since the author provides all their own markup, don't have to worry about providing a way to change the icon. - Easier to implement, don't have to worry about finding a place to put the popover for a form-associated custom element for example. -- GitHub Notification of comment by josepharhar Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7172#issuecomment-3057981499 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 10 July 2025 15:40:18 UTC