Merge pull request #1 from axefrog/master

Updating fork
Added HttpReferer support for initial request
Merge branch 'Referer'
Merge branch 'memoryleak'
Bug Fix: Return the result of the form submission rather than always returning false.
Merge branch 'master' of https://github.com/axefrog/SimpleBrowser
Bug fix: If the encoding type is null, do not add the Content-Encoding HTTP header with a blank value. This causes some web servers to return a 500 Internal Server Error or 501 Not Implemented error rather than navigating to the requested page..
Merge pull request #39 from kevingy/master

Pull request accepted - thanks!
According to the HTML 5 specification, "... if the element has a value attribute, it must return that attribute's value; otherwise, it must return the string "on"." In the case of HTML 4, this fix addresses malformed HTML. According to the HTML 4 specification, the value attribute is required for all input elements of type checkbox or radio. In cases where the value attribute is not provided (i.e., the HTML is malformed), all tested (i.e., modern) browsers default the value of the checkbox or radio to "on" if submitted with no value attribute.
Bug fix: Improve handling of malformed HTML by not allowing the tag name to contain a forward slash ('/'). Addresses Issue #41.
Bug fix: Properly parse CDATA sections rather than improperly treating CDATA like an HTML comment. Addresses Issue #42.
Bug fix: Add support for Microsoft downlevel-revealed conditional comments to the HTML parser. Addresses Issue #36.

Bug fix: Changed the way CDATA elements were being handled internally. Rather than being a System.Xml.Linq.XComment, a CDATA element is now a System.Xml.Linq.XCData.
Bug fix: Correct the way comments were being parsed. Prior to this fix, comments were actually doubly commented. (That is, <!-- !-- comment --> -->
Added unit tests for modified functionality
- Changes to Build SimpleBrowser on Linux with MonoDevelop (3.0.3.2,
  Debian Wheezy RC1)
- Clean up compiler build warnings
Update parser and unit tests to correctly parse a comment in a script element. Addresses issue 46.
Bug fix: Update textarea and input elements to properly handle the maxlength attribute. Includes unit tests to test functionality. Addresses issue #49
Prevent exception from being thrown if a call to DoAspNetLinkPostBack is a valid operation. Addresses issue #47
When parsing a script element, the only two tokens allowed to affect parsing are the open comment tag and the FULL closing script tag. This prevents code embedded in the script from affecting parsing. Addresses issue #51. This is also related to issue #46, addressing a bug in the fix for that issue where commented and non-commented code mixed in the same script block would not parse properly.
Prevent an unchecked check box element from submitting with form data as though it was checked. Addresses issue #53.
In the event there are elements with non-unique names on a form, when the form is submitted, only the last element appearing on the form is submitted. Addresses issue #52.
Additional change to prevent an unchecked check box element from submitting with form data as though it was checked. Addresses issue #53.