Radio's name attribute doesn't work when using appendChild()

When trying to dynamically create radio buttons with createElement() and appendChild() I noticed that the name and type of the radios weren't being appended along with the radio element.

Test page Workaround is not included
Reported by: Calophi.

Safari | Reported on 13 October 2005.

This site is no longer maintained. I’m sorry, but it’s just too much work for too little return. You can continue to browse old bug reports, though.

Search reports by browser:

Atom RSS


(Add your own)

1 Posted by Tim on 7 March 2007 | Permalink

This is a documented problem with IE's createElement() implementation.

A workaround is to create a element, append it to the document, and then set its innerHTML property.

2 Posted by Brandy on 15 June 2007 | Permalink

Safari 3 Beta (tested on my Mac) now handles your original problem and all possible workarounds properly.