<li> tag with unmatched parentheses in default content fails
Reported by Ronny Hanssen | January 7th, 2011 @ 10:54 PM | in Hobo 1.3 (Rails 3)
When the default content in a <li>-tag contains unmatched parentheses, i.e. a single ) a compiler error is generated.
To reproduce, make a view-file with:
<li>Testing ) as default content</li>
This should generate something like this:
SyntaxError in xxx#xxx
Showing xxx/app/views/xxx/xxx.dryml where line #xx raised:
compile error
app/views/xxx/xxx.dryml:xx: syntax error, unexpected tIDENTIFIER, expecting '}'
Testing ) as default content
^
app/views/xxx/xxx.dryml:xx: syntax error, unexpected ')', expecting '}'
) ; safe_concat(%(</li>)) ; ou...
^
app/views/xxx/xxx.dryml:xx: syntax error, unexpected ')', expecting '}'
) ; safe_concat(%(</li>)) ; ou...
^
This used to work in Hobo 1.0.
Comments and changes to this ticket
-
Bryan Larsen January 12th, 2011 @ 08:45 PM
- Milestone set to Hobo 1.3 (Rails 3)
- Assigned user set to Domizio Demichelis
- Milestone order changed from 197936 to 0
-
Domizio Demichelis March 27th, 2011 @ 03:18 PM
- State changed from new to resolved
- Milestone order changed from 43 to 0
(from [578a8ab24aff92ff2aadd8f79f051705fc5f4f4d]) escape closed parens in dryml text [#898 state:resolved] https://github.com/tablatom/hobo/commit/578a8ab24aff92ff2aadd8f79f0...
-
Bryan Larsen March 28th, 2011 @ 03:13 PM
- State changed from resolved to open
Unfortunately, the fix breaks other code:
https://github.com/tablatom/hobo/commit/578a8ab24aff92ff2aadd8f79f0...
-
Domizio Demichelis March 28th, 2011 @ 09:35 PM
(from [cb5530f970de03c28a561bb74325bad4e5ba7dac]) fix for partial escape of parens [#898] introduced in 578a8ab24aff92ff2aadd8f79f051705fc5f4f4d https://github.com/tablatom/hobo/commit/cb5530f970de03c28a561bb7432...
-
Domizio Demichelis March 28th, 2011 @ 10:35 PM
- State changed from open to resolved
-
Domizio Demichelis March 29th, 2011 @ 03:32 PM
(from [018621ea460c2b5fdce104fc8b1a048278184061]) fix for ruby 1.8.x compatibility [#898] https://github.com/tablatom/hobo/commit/018621ea460c2b5fdce104fc8b1...
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
People watching this ticket
Referenced by
- 898 <li> tag with unmatched parentheses in default content fails (from [018621ea460c2b5fdce104fc8b1a048278184061]) fix for...
- 898 <li> tag with unmatched parentheses in default content fails (from [578a8ab24aff92ff2aadd8f79f051705fc5f4f4d]) escape ...
- 898 <li> tag with unmatched parentheses in default content fails (from [cb5530f970de03c28a561bb74325bad4e5ba7dac]) fix for...