Revision history for HTML::DOM 0.058 2 February, 2018 Bug fix: When a element is clicked, its value is now included in the form data even if it has no value. Previously, valueless buttons would be omitted. 0.057 10 July, 2016 Bug fix: $doc->base now returns the URL of the page if it is a data URL, instead of just ‘data:’. 0.056 28 February, 2016 Bug fix: $doc->title no longer dies when setting the title of a document with no head node. Miscellaneous: The make_request method of form elements has been tweaked to work with Encode 2.80. Technically, it was working, but, due to changed output in Encode 2.80, the tests started failing. So now the MIME encoding is skipped on a string consisting solely of spaces and printable ASCII. (This was easier than having two sets of tests.) 0.055 8 November, 2015 Bug fixes: • getElementsByClassName now works correctly when class names contain hyphens, instead of treating hyphens within class attributes as boundaries. This was based on a patch by Sean Dodger (thank you!). • $doc->body used to return a text node in some cases, caus- ing methods like aLink to die. 0.054 26 October, 2014 New feature: The named node map returned by $elem->attributes can now be used as an array or hash reference. This also means that JavaScript code run by WWW::Scripter can do form.attributes['action'].value, etc. 0.053 April Fools’ Day, 2012 Bug fixes: • An extraneous tag with event attributes now calls the event_attr_handler on the body, not the preceding tag’s element, and actually supplies the value of the attribute, rather than undef (RT #75997). Thanks again to Tomki Camp for the report. • When DOMAttrModified events were triggered, if it happened that no event listeners were triggered, the event object that HTML::DOM::EventTarget passed to the default_event_handler would not have its type set and its cancellability would be set to true instead of false. This has been fixed. 0.052 25 March, 2012 Bug fixes: • An extraneous tag no longer closes currently open tags, turning into (RT #75997). Thanks to Tomki Camp for the report. • The weird colour methods of the document (fgColor, etc.) no longer die when there is no body element. 0.051 11 March, 2012 Bug fix: write() no longer dies inside an element handler (e.g., 0.003 15 July, 2007 - HTML::DOM::Text now has its nodeValue method, which I forgot about before. (Actually, I moved HTML::DOM::Comment's nodeValue to HTML::DOM::CharacterData.) - as_text and as_HTML have been overridden and now work. 0.002 9 July, 2007 The basic mechanism for event handling has been implemented. The various different flavours of event objects still need to be added. 0.001 27 June, 2007 The first version. So far, most of the level-1 core DOM is implemented, and a couple of HTML-specific methods, but that's all.