and surley applications such as dreamweaver would not allow code to be generated that contained bugs?
Bugs do not occur randomly through transcription errors and spelling mistakes, they most frequently occur by a difference of understanding between the implementor and the designer as to the function of the code. This is every bit as true for automatically generated code as it is for human-typed code ... arguably more so.