Sometimes a specific doctype is required to reproduce an issue. Currently it's not possible to specify a doctype for a Stack Snippet's html section. I've tried this:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Test</title>
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet"/>
</head>
<body>
<p>First button has less height than the other two:</p>
<a href="#" class="btn btn-default"><span class="glyphicon glyphicon-pencil"></span> </a>
<a href="#" class="btn btn-default"><span class="glyphicon glyphicon-pencil"></span> </a>
<a href="#" class="btn btn-default"><span class="glyphicon glyphicon-pencil"></span> Test</a>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
</body>
</html>
That snippet actually needs the doctype for the issue to be reproducible. However, it renders as:
<!DOCTYPE html>
<html>
<head>
<style>
</style>
</head>
<body>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Test</title>
<!-- etc -->
I don't think there's any other way (yet) to do this (no input somewhere, which is the way jsfiddle does it, see the difference between html4 and html5), which is why I'm placing this feature request.