Sunday, September 8, 2013

Forms template renders 'bad' html

I'm new to Django, working through the Polls tutorial with the old Test-Driven Django tutorial, where you're looking for specific field names and values and such. Anyway, to keep it short, I noticed this in a Show Page Source:


<form action="/polls/2/vote/" method="post">
<input type='hidden' name='csrfmiddlewaretoken' value='Nb1aC7FaZ1lKn8F4JvmA1OEUr3L6ATil' />

    <input type="radio" name="choice" id="choice"1"
        value="5" />
    <label for="choice1">Very awesome</label><br />

    <input type="radio" name="choice" id="choice"2"
        value="6" />
    <label for="choice2">Quite awesome</label><br />

    <input type="radio" name="choice" id="choice"3"
        value="7" />
    <label for="choice3">Moderately awesome</label><br />

<input type="submit" value="Vote" />
</form>

Note the id=choice#  - there's a double quote out of position - between the 'choice' and the number. This throws quoted text off for the rest of the form (and after). With colors, the error is obvious.

This is Django 1.5.2

Is this a bug? A known bug being tracked and or fixed? I can't make heads or tails out of the bug tracking site - at least I couldn't find anything from my searches.

What should I do about this? (I mean, my life goes on irregardless - I'll work around it). Is there a way to determine if this is a known issue, or should this be reported, or what?



--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate