da² Posted January 8, 2023 Share Posted January 8, 2023 Hello, I'm using the W3C validator to check my pages and find that Textarea CKEditor outputs line breaks as <br /> instead of <br>. Is there a way to make it HTML5 compliant? I used no text formatter and checked Markup/HTML content type. EDIT : Same issue with InputfieldForm, <input /> should be <input> Thanks. Link to comment Share on other sites More sharing options...
BrendonKoz Posted January 10, 2023 Share Posted January 10, 2023 Hello da², I still stand by my comment in that you are in compliance, a warning is not the same as an error, and attempting to circumvent the current processing of text for the sake of clearing a warning may cause more harm than good. That said, this topic came up back in October, and the linked topic should provide you with possible workarounds, if you decide to take them: EDIT: For any modules that output their own HTML (ex: InputfieldText's ___render() method), you'd need to find, and then override the module's own output method to fix; or setup and run all of your generated HTML through a post-processor. 3 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now