Hi Fredy,

I now see the cross posting ;-(

In a first line this is an HtmlUnit issue. I wouldn't be surprised if it
comes from a problem in Rhino RegEx support but we have first to find
the cause in HtmlUnit itself before to make Rhino guilty ;-)

Cheers,
Marc.
-- 
Blog: http://mguillem.wordpress.com


Fredy Mesia wrote:
> Hi all,
> 
> I don't know if this is a bug or a not foreseen scenario by rhino, or
> htmlUnit... or someone else? but after 3 days I finally found the problem
> loading my dojo trees. I don't know either how relevant this information is
> to improve future releases of htmlunit, but I post it anyway, it might help
> some future generations of desperate developers... just like me the past
> days :)
> 
> When I execute the method getChildren() on a tree object or a treeNode
> object an array of objects is returned and a dijit.byNode is executed on
> each element of this array:
> 
> dojo.query("> [widgetId]", this.containerNode || this.domNode).map(
> dijit.byNode);
> 
> 
> When I run it on FireFox I obtain three objects:
> 
> [div#dndTree_DndTreeNode_7.dijitTreeNode, div#fdndTree_DndTreeNode_8
> .dijitTreeNode, div#dndTree_DndTreeNode_12.dijitTreeNode]
> 
> When I run it on IE7 I obtain an empty array (after console.log) but the
> display is okay.... I skip dealing with IE7!!
> 
> When I run it on htmlUnit with BrowserVersion.INTERNET_EXPLORER_7_0, I
> obtain three objects PLUS 4 more objects:
> 
> [object],[object],[object],<,d,i,v,>
> 
> So when a dijit.byNode("<") is executed, dojo run by htmlUnit stops... I
> would even feel like saying "it crashes", but somehow it continues doing the
> next methods.
> 
> The question is: why do I get those four objects <,d,i,v,> at the end of my
> array returned by dojo.query? Are they filtered in a regular browser? Is it
> a bug in dojo? splitting a div tag?!!! After 3 days working on that I just
> feel like moving on a continue with the next step.
> 
> Any comment or remark will be read with full interest!
> 
> à+
> 
> Fredy

_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino

Reply via email to