Ticket #54 (closed defect: fixed)

Opened 22 months ago

Last modified 22 months ago

Tags with empty content

Reported by: yayel Owned by: tec
Priority: major Milestone:
Component: doc Version:
Keywords: tags Cc:

Description

Using todays trunk:

The following 2 lines don't output anything:

br
div :id => 'menu-footer'

while

div( :id => 'menu-footer' ){}

works

and

br {}

raises a Markaby::InvalidXhtmlError?: the `#{sym}' element is self-closing, please remove the block

How to use these tags then ?

Change History

Changed 22 months ago by tec

  • owner changed from somebody to tec
  • status changed from new to assigned

Changed 22 months ago by tec

  • status changed from assigned to closed
  • resolution set to fixed

Your first example is correct usage; there was a bug with elements that had no attributes or child content (Fixed in [102]).

Note: See TracTickets for help on using tickets.