Ticket #66 (new New Feature)
HTML Tidy for XHTML processing
| Reported by: | FredCK | Owned by: | |
|---|---|---|---|
| Priority: | Normal | Milestone: | CKEditor 3.0 |
| Component: | General | Version: | |
| Keywords: | Confirmed | Cc: |
Description
It would be interesting to have the innerHTML generated by the browsers to be fixed with HTML Tidy in the server when switching to source view or before posting the data.
The process steps would be:
- Show a "Processing..." message in the interface.
- Retrieve the innerHTML (no changes to it). We know that the editor includes some custom elements and attributes there.
- Send the HTML to the server using XMLHttpRequest (synchronous).
- Process the HTML in the server using Tidy. "Tidy Processors" should be available on all supported server side languages.
- Receive the processed HTML from the server and inject it in a DOMDocument.
- Make the necessary changes in the DOMDocument, removing or changing browser specific or FCKeditor tags.
- Hide the "Processing..." message and update the hidden field, or the source view, depending on the case.
Well, this is an initial idea than must be further developed in the future.
Change History
Note: See
TracTickets for help on using
tickets.