Describe the bug
A clear and concise description of what the bug is.
Label("name", for_="test")
generates:
<label for-="test">name</label>
It should generate:
<label for="test">name</label>
Minimal Reproducible Example
Provide a minimal code snippet that reproduces the issue. This is crucial for us to understand and fix the bug quickly.
# Your code here
from fasthtml.common import FastHTML, serve, Label
app = FastHTML()
@app.route("/", methods=["GET"])
def home():
return Label("test_label", for_="test")
serve()
Expected behavior
A clear and concise description of what you expected to happen.
The generated property should be "for", not "for-".
Environment Information
Please provide the following version information:
Describe the bug A clear and concise description of what the bug is.
Label("name", for_="test")
generates:<label for-="test">name</label>
It should generate:<label for="test">name</label>
Minimal Reproducible Example Provide a minimal code snippet that reproduces the issue. This is crucial for us to understand and fix the bug quickly.
Expected behavior A clear and concise description of what you expected to happen. The generated property should be "for", not "for-".
Environment Information Please provide the following version information:
Confirmation Please confirm the following:
Additional context Add any other context about the problem here.
Screenshots If applicable, add screenshots to help explain your problem.