You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by bu...@apache.org on 2007/04/02 17:50:27 UTC
DO NOT REPLY [Bug 42021] New: - XPathResult not exposed to JavaScript
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42021>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=42021
Summary: XPathResult not exposed to JavaScript
Product: Batik
Version: 1.7
Platform: Other
URL: http://home.arcor.de/martin.honnen/batikBugs/XPath/XPath
ResultTest1.svg
OS/Version: other
Status: NEW
Severity: normal
Priority: P2
Component: Scripting
AssignedTo: batik-dev@xmlgraphics.apache.org
ReportedBy: martin.honnen@gmx.de
With the Mozilla and Opera W3C DOM Level 3 XPath API implementation the
XPathResult object is exposed to script so that script can use the constants
like XPathResult.ORDERED_NODE_SNAPSHOT_TYPE. With Batik 1.7 beta this is not the
case as the test case at
<http://home.arcor.de/martin.honnen/batikBugs/XPath/XPathResultTest1.svg>
shows, it gives an error "XPathResult is not defined" with Batik while it
displays "3" with Mozilla or with Opera.
The ECMAScript bindings in the W3C DOM specifications are unfortunately not too
clear on how things need to be exposed to script but
<http://www.w3.org/TR/DOM-Level-3-XPath/ecma-script-binding.html> speaks about
"Properties of the XPathResult Constructor function:
XPathResult.ANY_TYPE
The value of the constant XPathResult.ANY_TYPE is 0."
so based on that one can infer that a function XPathResult with properties like
ANY_TYPE should be exposed.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org
DO NOT REPLY [Bug 42021] - XPathResult not exposed to JavaScript
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42021>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=42021
cam@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From cam@apache.org 2007-04-02 16:50 -------
Yes, the org.w3c.dom.xpath interfaces should be available from script.
Fixed in SVN.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org