Currently when an element is added to a parent, the following is called:

setClassName(computeFinalClassNames());

Because there’s no check there to determine if a class name was actually set, 
you can end up with elements with empty class names like so: <div class="">, 
<br class=“”>.

While this has no visual effect, it does clutter up the dom markup in the 
browser (and might have a non-zero effect on performance —  although this is 
likely minuscule).

I’d like to get rid of the empty assignments. I can either do that in UIBase, 
or in the HTML package for those classes.

My preference is to add it to UIBase —  both because I think it belongs there 
and because it’s going to be very messy adding it to subclasses. The code is in 
the middle of addedToParent.

Thoughts?
Harbs

Reply via email to