diff --git a/README.md b/README.md index 62f9b45833d..cef441b497e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # HtmlUnit -Version 2.49.0 / April 11, 2021 +Version 2.49.1 / April 11, 2021 :heart: [Sponsor](https://github.com/sponsors/rbri) @@ -25,7 +25,7 @@ For maven, you would add: net.sourceforge.htmlunit htmlunit - 2.49.0 + 2.49.1 Overview @@ -91,7 +91,7 @@ License This project is licensed under the Apache 2.0 License -[1]: https://sourceforge.net/projects/htmlunit/files/htmlunit/2.49.0/ "HtmlUnit on sourceforge" +[1]: https://sourceforge.net/projects/htmlunit/files/htmlunit/2.49.1/ "HtmlUnit on sourceforge" [2]: https://jenkins.wetator.org/job/HtmlUnit%20-%20Headless/ "HtmlUnit CI" [3]: https://twitter.com/HtmlUnit "https://twitter.com/HtmlUnit" [4]: https://htmlunit.sourceforge.io/ "https://htmlunit.sourceforge.io/" diff --git a/pom.xml b/pom.xml index 1ebc59520bc..8e0ecc2a655 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 net.sourceforge.htmlunit htmlunit - 2.50.0-SNAPSHOT + 2.49.1 HtmlUnit Gargoyle Software Inc. diff --git a/src/changes/changes.xml b/src/changes/changes.xml index 29a37906471..d85f7858999 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -7,11 +7,18 @@ + + + Clicking an anchor was always calling the attachment handler (if set). This was a regression from anchor + download attribute support. + + + - + Fix :required and :optional pseudo classes to work with all html elements supporting the 'required' attribute. - + HtmlDetails.asNormalizedText() and HtmlDetails.asVisibleText() fixed. diff --git a/src/site/xdoc/filedownload-howto.xml b/src/site/xdoc/filedownload-howto.xml index 096fc10ca7b..07b38135a8a 100644 --- a/src/site/xdoc/filedownload-howto.xml +++ b/src/site/xdoc/filedownload-howto.xml @@ -47,7 +47,7 @@

HtmlUnit handles all unknown content similar to known content - the content is wrapped in an page object and the page is placed inside the window. For all unknown content HtmlUnit uses the UnexpectedPage. In most cases the UnexpectedPage replaces the current (Html)page in the current window, - but in some cases a new additional window gets opend (e.g. clicking an anchor with a download attribute defined). + but in some cases a new additional window gets opened (e.g. clicking an anchor with a download attribute defined).

You can then access the plain content stream from the enclosed UnexpectedPage. @@ -82,7 +82,7 @@ try (final WebClient webClient = new WebClient(BrowserVersion.FIREFOX)) {

The AttachmentHandler based download support works in addition to the default UnexpectedPage based support. This means, if your AttachmentHandler - does not handle the content, the webClient will fall back to the default solution and place an UnexpectedPage inside a new window. + does not handle the content, the webClient will fall back to the default solution and place an UnexpectedPage inside the window. You can overwrite the method isAttachment() in your AttachmentHandler to only handle dedicated responses - the default implementation only detects responses having a content-disposition header of type 'attachment'.

diff --git a/src/site/xdoc/index.xml b/src/site/xdoc/index.xml index 1c836d96979..bd59831da65 100644 --- a/src/site/xdoc/index.xml +++ b/src/site/xdoc/index.xml @@ -57,7 +57,7 @@
Latest release April 11, 2021
-

version 2.49.0

+

version 2.49.1

Source code
@@ -169,7 +169,7 @@ net.sourceforge.htmlunit htmlunit - 2.49.0 + 2.49.1 ]]>