{"action":"created","issue":{"url":"https://api.github.com/repos/whatwg/html/issues/919","repository_url":"https://api.github.com/repos/whatwg/html","labels_url":"https://api.github.com/repos/whatwg/html/issues/919/labels{/name}","comments_url":"https://api.github.com/repos/whatwg/html/issues/919/comments","events_url":"https://api.github.com/repos/whatwg/html/issues/919/events","html_url":"https://github.com/whatwg/html/issues/919","id":142706348,"number":919,"title":"Make the HTML parser put audio/video/source/iframe/canvas-in-svg into the HTML namespace","user":{"login":"tabatkins","id":682840,"avatar_url":"https://avatars.githubusercontent.com/u/682840?v=3","gravatar_id":"","url":"https://api.github.com/users/tabatkins","html_url":"https://github.com/tabatkins","followers_url":"https://api.github.com/users/tabatkins/followers","following_url":"https://api.github.com/users/tabatkins/following{/other_user}","gists_url":"https://api.github.com/users/tabatkins/gists{/gist_id}","starred_url":"https://api.github.com/users/tabatkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tabatkins/subscriptions","organizations_url":"https://api.github.com/users/tabatkins/orgs","repos_url":"https://api.github.com/users/tabatkins/repos","events_url":"https://api.github.com/users/tabatkins/events{/privacy}","received_events_url":"https://api.github.com/users/tabatkins/received_events","type":"User","site_admin":false},"labels":[{"id":255177504,"url":"https://api.github.com/repos/whatwg/html/labels/normative%20change","name":"normative change","color":"207de5","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2016-03-22T16:40:02Z","updated_at":"2016-11-01T17:22:34Z","closed_at":null,"body":"The SVG2 spec defines that [the HTML audio/video/iframe/canvas elements should work in SVG](https://svgwg.org/svg2-draft/embedded.html#HTMLElements).  That's a little bit inconvenient in SVG's XML serialization, as you have to include another namespace, but it's actually _impossible_ currently in embedded SVG, as you don't use namespaces manually at all.\n\nThe parser, when it switches into parsing SVG, should have a list of elements that are put into the HTML namespace automatically.  At minimum, this should be audio/video/iframe/canvas, + picture.  Child elements should also automatically be in the HTML namespace (unless you hit an <svg> subtree, obviously).\n"},"comment":{"url":"https://api.github.com/repos/whatwg/html/issues/comments/257630592","html_url":"https://github.com/whatwg/html/issues/919#issuecomment-257630592","issue_url":"https://api.github.com/repos/whatwg/html/issues/919","id":257630592,"user":{"login":"AmeliaBR","id":9876129,"avatar_url":"https://avatars.githubusercontent.com/u/9876129?v=3","gravatar_id":"","url":"https://api.github.com/users/AmeliaBR","html_url":"https://github.com/AmeliaBR","followers_url":"https://api.github.com/users/AmeliaBR/followers","following_url":"https://api.github.com/users/AmeliaBR/following{/other_user}","gists_url":"https://api.github.com/users/AmeliaBR/gists{/gist_id}","starred_url":"https://api.github.com/users/AmeliaBR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AmeliaBR/subscriptions","organizations_url":"https://api.github.com/users/AmeliaBR/orgs","repos_url":"https://api.github.com/users/AmeliaBR/repos","events_url":"https://api.github.com/users/AmeliaBR/events{/privacy}","received_events_url":"https://api.github.com/users/AmeliaBR/received_events","type":"User","site_admin":false},"created_at":"2016-11-01T17:22:34Z","updated_at":"2016-11-01T17:22:34Z","body":"@zcorpan \r\nAs described [in the SVG spec](https://svgwg.org/svg2-draft/embedded.html#HTMLElements), arbitrary HTML elements *would* be allowed inside these elements, even when inside an SVG tree.  This is similar to being inside an SVG `<foreignObject>` subtree.  The elements would provide fallback content (or accessible semantic content, for `<canvas>`) as they normally do.  When the fallback is used, the parent media element would be rendered and laid out within the SVG coordinate system as if it was a `<foreignObject>`.\r\n\r\nThis does mean that some elements which currently auto-close an `<svg>` may no longer do that if there is one of these embedable  elements in between.  But the markup would have to be pretty messy for this to make a difference.\r\n"}}
{"actor":{"display_login":"AmeliaBR"}}