Programming error!
May. 5th, 2012 08:10 pm![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Maybe my 100 Things should have been 100 Programming Errors. It would have been much quicker and easier to get to the end of. Oh well!
These are going to be mostly for my reference. But feel free to enjoy my idiocy!
If I forget the quotes in an HTML attribute, it behaves oddly. Especially when I'm using a templating language (like Jinja for example) to render the page. That means my attribute might have spaces in them, and I'll get weird behaviour if there are spaces I haven't accounted for.
Like for example, not rendering the user's whole entry when I re-render a form.
The answer: remember the quotes!
I think I'm going to like having somewhere taggable to keep these.
These are going to be mostly for my reference. But feel free to enjoy my idiocy!
If I forget the quotes in an HTML attribute, it behaves oddly. Especially when I'm using a templating language (like Jinja for example) to render the page. That means my attribute might have spaces in them, and I'll get weird behaviour if there are spaces I haven't accounted for.
Like for example, not rendering the user's whole entry when I re-render a form.
The answer: remember the quotes!
I think I'm going to like having somewhere taggable to keep these.
no subject
Date: 2012-05-05 11:46 pm (UTC)no subject
Date: 2012-05-06 12:46 pm (UTC)I thought maybe writing it down would help me remember in future...
no subject
Date: 2012-05-06 01:25 pm (UTC)no subject
Date: 2012-05-06 07:36 am (UTC)no subject
Date: 2012-05-06 12:47 pm (UTC)Or "Strings with \"quotes\" in them."
....etc.
That can get fun. And confusing. :D