Frequently Asked Questions
These are commonly asked questions.
-
Why are my HTML tags being converted to <div> or <span> tags?
THE PROBLEM:
HFL converts tags that are not 'built-in' to <div> or <span> tags so that browsers will display them correctly. This is the default.
REMEDY:
- Declare these tags as 'builtin' using a defscope statement.
-
When I specify two adjacent scopes in a cut{} or paste{} block without braces it fails to match. Yet each one by itself works fine?
For example, the following fails:
cut {header footer}
But this works:
cut {header}
cut {footer}
THE PROBLEM:
HFL sees 'header footer' as a single multi-level scope specification, not as two separate scope specifications. So it tries to cut a cell with tag 'footer' that is inside of a cell with tag 'header', instead of cutting two sibling cells having those tags. Since that inner cell does not exist, nothing happens.
As a convenience, HFL will allow scope specifications without trailing braces, but this is not a recommended practice, and it can result in the problem above.
REMEDY:
- Add braces after the single scope specification. For example:
cut {header{} footer{}}