Looks like <select> implements StringToAttribute but not AttributeToString. Hence the problem -- StringToAttribute just sets the HTMLValue to the empty string for boolean HTML attrs. We may want some semi-general solution for this (eg <img> elements have the same problem with "ismap", and I suspect it's just a problem all over). Sicking? Care to roll this into your rewrite?
Status: UNCONFIRMED → NEW
Ever confirmed: true
See my comment in bug 203751, same analysis as bz, it's a general problem, so we need a general solution :-)
Hmm.. IMHO the correct solution for this is to not let StringToAttribute have any special handling for "boolean" attributes. Then we should only check that the attribute exists rather then check its value (which might be what we already do). Enforcing that the value of "multiple" is "multiple" IMHO falls under validation, but i coule be convinced of otherwise.
15 years ago
Depends on: 203751
sicking, sounds good to me.
Fixed by the checkin for bug 232706
Status: NEW → RESOLVED
Last Resolved: 14 years ago
Depends on: 232706
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.