XmlTag.getAttribute() problem

I'm getting a strange behaviour from the method XmlTag.getAttribute(String name, String namespace), but as i'm not sure this is a bug i wanted to run this by you folks.

My page is:

<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
<a t:type="myid"/>

When i call on the link tag i get these expected and not expected results:
getAttribute("type", "") = null : correct result

getAttribute("type", "http://tapestry.apache.org/schema/tapestry_5_0_0.xsd") = null : i expected this to return the atribute.

getAttribute("t:type", "") = : i expected null.

getAttribute("t:type", "http://tapestry.apache.org/schema/tapestry_5_0_0.xsd") = : i expected null.


So, it seems that the API is considering "t:type" as the attribute name and not "type" within a given namespace.
Is this a bug or am i seeing it all wrong ?



Please sign in to leave a comment.