View Single Post
Old 12-08-2023, 07:32 PM   #172
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,873
Karma: 6120478
Join Date: Nov 2009
Device: many
FWIW,

You can use css descendant combinator classes to actually style your example span:

p.P1 span {
}

or

p.P1 > span {
}

so you can safely only remove "empty spans" if there are no css combinator selectors involving spans.

This also holds true when javascript can be used to style as well.

So you might want to warn people to verify that they are not using "empty spans" in those ways first, to be safest.

Last edited by KevinH; 12-08-2023 at 07:34 PM.
KevinH is offline   Reply With Quote