jonathanong/horizontal-grid-packing — pull request #11 by hughsk (2013-12-28 06:27:33+00:00)
Title: Only include ELEMENT_NODEs in `this.images` array.

Other node types, such as `TEXT_NODE` or `DOCUMENT_FRAGMENT_NODE`, are missing a `.getAttribute()` method and causing the script to throw an error if included in the array.

This is normally fine if you're creating the container element dynamically, but when you're just working with HTML there'll be a text node between each child. Was getting errors when trying it out with this markup:

``` html

```

These changes fixed the issue :)