kinsleykajiva / loki-editor

Automatically exported from code.google.com/p/loki-editor
GNU Lesser General Public License v2.1
0 stars 0 forks source link

Cleanup enhancement: Remove nondisplayable inline elements #185

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Sometimes cruft builds up in the form of inline elements like
<strong><em><a href="foo"></a></em></strong>.

We should probably remove these elements, as they are meaningless when they
are not around any content. They also make it hard to edit, as a user can
inadvertently place their cursor in this invisible blob and get surprising
results when they start typing.

Here's a suggested list of inline elements that should be cleaned up in
this way:

a (but only if if no name or id attribute)
abbr
acronym
b
basefont
bdo
big
button
cite
code
del
dfn
em
font
i
ins
kbd
label
q
s
samp
small
span
strike
strong
sub
sup
tt
u
var

Original issue reported on code.google.com by matt.d.r...@gmail.com on 24 Mar 2009 at 6:47

GoogleCodeExporter commented 8 years ago

Original comment by enaes...@gmail.com on 1 Sep 2009 at 8:49