Jump to content

Textarea CKEditor HTML5 compliant line breaks


da²
 Share

Recommended Posts

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

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.

  • Like 3
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...