-
-
Notifications
You must be signed in to change notification settings - Fork 81
Closed
Description
I'm not sure using the # as a token is wise. Trying it out I hit quite a few cases where it completely standard HTML/CSS was interpreted as Leaf methods.
Two quick examples
A common way to "pop" modals is using an <a> where the href is just a #.
<a href="#" class="btn btn-primary" data-toggle="modal">(I know you could just use <button> instead of <a> but not everybody do that)
You also won't be able to use inline hex-colors, which is also something a lot of people are doing (at least the lazy ones).
<h1 style="color: #ff0000">This heading is red</h1>There are probably a lot more cases, where the # would make Leaf conflict with normal standard HTML/CSS. So maybe it would be better/wiser to use a different token?
Or maybe change it to a double ##? I don't know. All I know is a single # unfortunately causes quite the trouble :(
Metadata
Metadata
Assignees
Labels
No labels