{"comment":{"created_at":"2011-10-22T02:06:50Z","body":"The other magic thing we can do is that if you append(\"svg\"), we can implicitly use the svg namespace because the element name matches the namespace prefix. (This could also work for the root html element, and similar for other namespaces such as math for MathML, provided that they are registered appropriately in d3.ns.prefix.)\r\n\r\nAnd that would me ZERO* NAMESPACES!\r\n\r\n* with the exception of attr xlink:href … but close enough.","updated_at":"2011-10-22T02:06:50Z","url":"https://api.github.com/repos/mbostock/d3/issues/comments/2488017","id":2488017,"user":{"avatar_url":"https://secure.gravatar.com/avatar/005a27e09fe946ebef64bf4d134efc0a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"005a27e09fe946ebef64bf4d134efc0a","url":"https://api.github.com/users/mbostock","id":230541,"login":"mbostock"}},"action":"created","issue":{"number":272,"created_at":"2011-08-27T17:40:12Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"It might be nice if append and insert inherited their namespace from the enclosing element. For example, you could append(\"svg:svg\") then append(\"g\"), and the latter would be interpreted as \"svg:g\" rather than \"xhtml:g\". It seems like this would be a relatively safe change; the only thing I could see breaking would be SVG foreignObject elements; you'd need to append \"xhtml:body\" rather than \"body\", but that seems relatively innocuous.\r\n\r\n(We might also want to make \"html:\" an alias for \"xhtml:\".)","comments":2,"title":"Inherit namespace from enclosing element?","updated_at":"2011-10-22T02:06:50Z","url":"https://api.github.com/repos/mbostock/d3/issues/272","id":1501213,"assignee":null,"milestone":{"number":6,"created_at":"2011-10-22T02:03:51Z","due_on":null,"title":"3.0","creator":{"avatar_url":"https://secure.gravatar.com/avatar/005a27e09fe946ebef64bf4d134efc0a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"005a27e09fe946ebef64bf4d134efc0a","url":"https://api.github.com/users/mbostock","id":230541,"login":"mbostock"},"url":"https://api.github.com/repos/mbostock/d3/milestones/6","open_issues":2,"closed_issues":0,"description":"","state":"open"},"closed_at":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/005a27e09fe946ebef64bf4d134efc0a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"005a27e09fe946ebef64bf4d134efc0a","url":"https://api.github.com/users/mbostock","id":230541,"login":"mbostock"},"html_url":"https://github.com/mbostock/d3/issues/272","labels":[{"name":"req","url":"https://api.github.com/repos/mbostock/d3/labels/req","color":"02e10c"}],"state":"open"},"legacy":{"issue_id":1501213,"comment_id":2488017}}