twitter/bootstrap — Issue #1723: Closing Alerts (x) Html
Author: SiCoUK
Created: 2012-02-04 22:01:14+00:00
State: open

Would it not be better for the bootstrap-alert.js to add the close link (x) in an alert using progressive enhancement. Seeing as the alerts can't be closed with the base css it seems odd to:

a) Show the examples in the css element with the close (x) link.
http://twitter.github.com/bootstrap/components.html#alerts

b) To have to manually add the close (x) link in the html.

c) The close x (×) is shown in the css example as a x (which when copied doesn't work properly) and on the js example it is html encoded as ×

It seems the javascript plugin could do all this and you still have the close css helper (http://twitter.github.com/bootstrap/components.html#misc) if you need to know how to do it manually. Unless I've missed something?