import namespace from "./src-namespace.js";
import { xhtml } from "./src-namespaces.js";
function creatorInherit(name) {
  return function() {
    var document = this.ownerDocument, uri = this.namespaceURI;
    return uri === xhtml && document.documentElement.namespaceURI === xhtml ? document.createElement(name) : document.createElementNS(uri, name);
  };
}
function creatorFixed(fullname) {
  return function() {
    return this.ownerDocument.createElementNS(fullname.space, fullname.local);
  };
}
function creator(name) {
  var fullname = namespace(name);
  return (fullname.local ? creatorFixed : creatorInherit)(fullname);
}
export {
  creator as default
};
//# sourceMappingURL=src-creator.js.map
