pub fn lookup_uri_for_namespace(self, namespace: &WStr) -> Option<AvmString<'gc>> {
        let mut attribute_name = WString::from_buf(b"xmlns:".to_vec());
        attribute_name.push_str(namespace);

        for node in self.ancestors() {
            if namespace.is_empty() {
                if let Some(url) = node.attribute_value(WStr::from_units(b"xmlns")) {
                    return Some(url);
                }
            }

            if let Some(url) = node.attribute_value(&attribute_name) {
                return Some(url);
            }
        }

        None
    }
/// Look up the URI for the given namespace.
///
/// XML namespaces are determined by `xmlns:` namespace attributes on the
/// current node, or its parent.
Look up the URI for the given namespace.
XML namespaces are determined by `xmlns:` namespace attributes on the
current node, or its parent.
Look up the URI for the given namespace . XML namespaces are determined by ` xmlns : ` namespace attributes on the current node or its parent .
pub fn lookup_uri_for_namespace(self, namespace: &WStr) -> Option<AvmString<'gc>> {
        let mut attribute_name = WString::from_buf(b"xmlns:".to_vec());
        attribute_name.push_str(namespace);
        for node in self.ancestors() {
            if namespace.is_empty() {
                if let Some(url) = node.attribute_value(WStr::from_units(b"xmlns")) {
                    return Some(url);
                }
            }
            if let Some(url) = node.attribute_value(&attribute_name) {
                return Some(url);
            }
        }
        None
    }
pub fn lookup_uri_for_namespace ( self , namespace : & WStr ) -> Option < AvmString < ' gc > > { let mut attribute_name = WString :: from_buf ( b" " . to_vec ( ) ) ; attribute_name . push_str ( namespace ) ; for node in self . ancestors ( ) { if namespace . is_empty ( ) { if let Some ( url ) = node . attribute_value ( WStr :: from_units ( b" " ) ) { return Some ( url ) ; } } if let Some ( url ) = node . attribute_value ( & attribute_name ) { return Some ( url ) ; } } None }
Look up the URI for the given namespace.
Look up the URI for the given namespace .
self
namespace
&WStr