No, it's not a bug. You might be misunderstood how html works. html4/5 doesn't need self closing tags (input, img, hr, br etc). xhtml, because is more like a xml based language, will need to have those slashes.
However, xhtml being almost dead, i think you don't have to concern about that