[HtmlUnit] [ htmlunit-Bugs-2887288 ] NPE in HTMLElement#jsxFunction_setAttributeNode

View: New views
1 Messages — Rating Filter:   Alert me  

[HtmlUnit] [ htmlunit-Bugs-2887288 ] NPE in HTMLElement#jsxFunction_setAttributeNode

by SourceForge.net :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Bugs item #2887288, was opened at 2009-10-27 19:40
Message generated for change (Settings changed) made by asashour
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=448266&aid=2887288&group_id=47038

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: Latest code in SVN
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Hartmut Arlt (j3r0nim0)
Assigned to: Ahmed Ashour (asashour)
Summary: NPE in HTMLElement#jsxFunction_setAttributeNode

Initial Comment:
The implementation of HTMLElement#jsxFunction_setAttributeNode can cause an NPE when the following JS code will be executed since the corresponding attribute node has no parent to be detached of:

var attribute = document.createAttribute('class');
attribute.nodeValue = 'klazz';

document.getElementById('foobar').setAttributeNode(attribute);


----------------------------------------------------------------------

>Comment By: Ahmed Ashour (asashour)
Date: 2009-11-07 14:52

Message:
Thanks for the tiny case, fixed in SVN

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=448266&aid=2887288&group_id=47038

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
HtmlUnit-develop mailing list
HtmlUnit-develop@...
https://lists.sourceforge.net/lists/listinfo/htmlunit-develop