Answer - injecting radio buttons in webkit

Answer - injecting radio buttons in webkit

This appears to be an issue with webkit and not jQuery specifically, but I've noticed this:

  1. NewDomRadio = '<input type="radio" checked="checked" id="testme" name=" testme" />';
  2. $('div').prepend(NewEnumDom);

will not work in Safari (I'm using 5.0 w/ Snow Leopard).

Chrome appears to have somewhat fixed this, although destroying and recreating the element a few times re-introduces the bug. The source will read "checked=checked" correctly, but the DOM inspector reports checked:false.

There seem to be two workarounds:
1] removing the name attribute (!!!)

2] placing the checked attribute at the end.