Opened 14 years ago
Closed 12 years ago
#6184 closed New Feature (fixed)
Better HTML code clean up
Reported by: | Wiktor Walc | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | |
Keywords: | Discussion | Cc: |
Description
We are mainly focused on cleaning up the content while pasting, but there is still a lot of content in various systems that was created long time ago that may contain broken / invalid HTML.
Suppose we have the following HTML source at the beginning:
<p><font face=""><font face=""><font face="">fooo</font></font></font></p>
The <font>
tag is totally useless there and theoretically could be simply removed by CKEditor from the HTML source.
Change History (5)
comment:1 Changed 14 years ago by
Status: | new → pending |
---|
comment:2 Changed 14 years ago by
I was thinking about simply removing <font>
tags without any reasonable attribute. Empty "face" attribute makes no sense.
comment:3 Changed 14 years ago by
Keywords: | Discussion added |
---|---|
Status: | pending → new |
comment:4 Changed 14 years ago by
@wwalc, I'm starting to see all this client side cleanup as a problem, because there are too many things to be considered, and the code can start to become larger and larger.
What about a server side processing instead (aka HTMLTidy and friends)? We could add a feature that sends the cleanup data to any URL for processing, additionally offering ready to use solutions for some common languages.
This will make the cleanup procedure richer, adding also more power to end developers through configuration options, leaving our client code smaller.
What about breaking CSS selectors based on tag path ? Should all font tags be removed ?