code-dot-org/blockly — pull request #432 by Bjvanminnen (2014-03-05 22:44:42+00:00)
Title: have layout ignore non-element xml nodes (which includes things like whitespace)

By using childNodes instead of children, we were also getting text nodes for whitespace in our xml. We would then throw when xmlChild.getAttribute was not defined. Instead we should only look at element childNodes.