code: def get_tag_ns(self, el):
          
  
          if self.supports_namespaces():
              namespace = ''
              ns = el.namespace
              if ns:
                  namespace = ns
          else:
              namespace = NS_XHTML
          return namespace
docs: Get tag namespace.