Closed typeoneerror closed 5 years ago
Experienced this curious bug today (not sure if I'm just mis-using emblem or not...
input value=name class="form-control input-lg" autocomplete="off" placeholder="e.g. Digital Strategy for Designers" tabindex="1" required="required" pattern="[A-Z]{3}"
The above works great. When I use the optional "=" in front though:
= input value=name class="form-control input-lg" autocomplete="off" placeholder="e.g. Digital Strategy for Designers" tabindex="1" required="required" pattern="[A-Z]{3}"
This produces a crash:
. Compiler said: Error: Emblem syntax error, line 3: Expected BeginStatement or DEDENT but "\uEFEF" found.
Removing the "pattern" attribute but keeping the "=" solves the crash.
As an FYI, I think there's a general issue with {} inside an attribute. I'd be curious if your regex didn't contain {3} if it'd still explode..
{}
{3}
Experienced this curious bug today (not sure if I'm just mis-using emblem or not...
The above works great. When I use the optional "=" in front though:
This produces a crash:
Removing the "pattern" attribute but keeping the "=" solves the crash.