On Aug 17, 6:15 am, d_adachi <maur...@mac.com> wrote: > Haml: > %audio{ :controls => 'controls' } > %source{ :src => '<SNIP>' } > %source{ :src => '<SNIP>' } > <SNIP> > Can I insert source end tag(</source>)?
While what you want to do is considered invalid, it's not invalid to not self close. IE is actually wrong since w3c has stated itself it doesn't matter for void elements whether you self close or not and there is no best practice for it, but if you want to self close it to avoid a gotcha in IE you can add / just outside the close } for the tag. This will self close it. Example: %source{:src => "location.ext"}/ or you can add the configuration :autoclose. You shouldn't add </source> since <source> is a void element and it should never have content, so it should never have a </source>, you can find out more here: http://www.w3.org/TR/html-markup/syntax.html#syntax-elements -- You received this message because you are subscribed to the Google Groups "Haml" group. To post to this group, send email to haml@googlegroups.com. To unsubscribe from this group, send email to haml+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/haml?hl=en.