[jbosstools-issues] [JBoss JIRA] (JBIDE-9932) Fix VpeDomMapping.getNodeMappingAtVisualNode to use HashMap.get instead of iteration
Denis Maliarevich (Commented) (JIRA)
jira-events at lists.jboss.org
Fri Dec 2 05:27:40 EST 2011
[ https://issues.jboss.org/browse/JBIDE-9932?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12647475#comment-12647475 ]
Denis Maliarevich commented on JBIDE-9932:
------------------------------------------
Now the main reason is that the container for include element (like for <c:import> tag) hasn't been mapped properly.
For instance, for <c:import> tag its visual <div> container hasn't been mapped to source node <c:import>:
{code}<DIV VPE:INCLUDE-ELEMENT="yes">{code} is not mapped,
so in tests when looking for the DOM mapping for the source node <c:import> -- the parent's visual container is returned.
> Fix VpeDomMapping.getNodeMappingAtVisualNode to use HashMap.get instead of iteration
> ------------------------------------------------------------------------------------
>
> Key: JBIDE-9932
> URL: https://issues.jboss.org/browse/JBIDE-9932
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: Visual Page Editor core
> Affects Versions: 3.3.0.M4
> Reporter: Denis Golovin
> Assignee: Denis Maliarevich
> Fix For: 3.3.0.Beta1
>
> Attachments: JBIDE-9932-Draft1.patch, JBIDE-9932-Draft2-wTests.patch, JBIDE-9932-Draft3.patch
>
>
> nsIDOMNode.appendChild(nsIDOMNode child) actually adds copy of child provided and returns it as result. VPE saves in map a child passed as parameter instead of actually added node returned from appendChild method.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list