tmpvar/jsdom — pull request #486 by jankuca (2012-08-25 13:20:01+00:00)
Title: allow innerHTML to omit optional closing tags

Hi, I implemented an option to omit optional closing tags in innerHTML results.

The feature is turned off by default and you can allow it by specifying the `optionalClosing: true` option.

To illustrate, here are two examples of the output with and without the feature:

```html

Lorem ipsum.

Dolor sit amet.

I'm not in a paragraph.

Lorem ipsum.

Dolor sit amet.

I'm not in a paragraph.

```

```html

Lorem
Ipsum

Lorem
Ipsum

```

This feature follows the [Google HTML/CSS Style Guildelines](http://google-styleguide.googlecode.com/svn/trunk/htmlcssguide.xml#Optional_tags).

No current functionality has been altered and no tests have been broken.