{"action":"created","issue":{"url":"https://api.github.com/repos/validator/validator/issues/104","labels_url":"https://api.github.com/repos/validator/validator/issues/104/labels{/name}","comments_url":"https://api.github.com/repos/validator/validator/issues/104/comments","events_url":"https://api.github.com/repos/validator/validator/issues/104/events","html_url":"https://github.com/validator/validator/issues/104","id":88100188,"number":104,"title":"SVG `<title>` & `<desc>` not allowing interior markup","user":{"login":"Tigt","id":8072522,"avatar_url":"https://avatars.githubusercontent.com/u/8072522?v=3","gravatar_id":"","url":"https://api.github.com/users/Tigt","html_url":"https://github.com/Tigt","followers_url":"https://api.github.com/users/Tigt/followers","following_url":"https://api.github.com/users/Tigt/following{/other_user}","gists_url":"https://api.github.com/users/Tigt/gists{/gist_id}","starred_url":"https://api.github.com/users/Tigt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tigt/subscriptions","organizations_url":"https://api.github.com/users/Tigt/orgs","repos_url":"https://api.github.com/users/Tigt/repos","events_url":"https://api.github.com/users/Tigt/events{/privacy}","received_events_url":"https://api.github.com/users/Tigt/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-14T01:54:09Z","updated_at":"2015-06-28T08:36:50Z","closed_at":"2015-06-28T08:30:00Z","body":"[The spec says:](https://developers.whatwg.org/the-map-element.html#svg-0)\r\n\r\n>The content model for title elements in the SVG namespace inside HTML documents is phrasing content. (This further constrains the requirements given in the SVG specification.)\r\n\r\nI could have sworn I saw something about the namespace autoswitching to HTML in both `<title>` and `<desc>` but I'll be damned if I can find it. [This is the closest I got](https://html.spec.whatwg.org#the-stack-of-open-elements):\r\n\r\n>A node is an HTML integration point if it is one of the following elements:\r\n>[...]\r\n>A foreignObject element in the SVG namespace\r\n>A desc element in the SVG namespace\r\n>A title element in the SVG namespace\r\n\r\nHowever, when attempting to use markup (either HTML or SVG tags) inside either `<title>` or `<desc>`, the validator throws an error. This is my test document:\r\n\r\n```html\r\n<!DOCTYPE html>\r\n<html>\r\n<head>\r\n<title>Test</title>\r\n</head>\r\n<body>\r\n<svg>\r\n<title>The <a xlink:href=\"//example.org/\">quick brown fox</a> jumped over <em>the lazy dog</em>.</title>\r\n<desc>The <a xlink:href=\"//example.org/\">quick brown fox</a> jumped over <em>the lazy dog</em>.</desc>\r\n</svg>\r\n</body>\r\n</html>\r\n```"},"comment":{"url":"https://api.github.com/repos/validator/validator/issues/comments/116226822","html_url":"https://github.com/validator/validator/issues/104#issuecomment-116226822","issue_url":"https://api.github.com/repos/validator/validator/issues/104","id":116226822,"user":{"login":"sideshowbarker","id":194984,"avatar_url":"https://avatars.githubusercontent.com/u/194984?v=3","gravatar_id":"","url":"https://api.github.com/users/sideshowbarker","html_url":"https://github.com/sideshowbarker","followers_url":"https://api.github.com/users/sideshowbarker/followers","following_url":"https://api.github.com/users/sideshowbarker/following{/other_user}","gists_url":"https://api.github.com/users/sideshowbarker/gists{/gist_id}","starred_url":"https://api.github.com/users/sideshowbarker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sideshowbarker/subscriptions","organizations_url":"https://api.github.com/users/sideshowbarker/orgs","repos_url":"https://api.github.com/users/sideshowbarker/repos","events_url":"https://api.github.com/users/sideshowbarker/events{/privacy}","received_events_url":"https://api.github.com/users/sideshowbarker/received_events","type":"User","site_admin":false},"created_at":"2015-06-28T08:36:50Z","updated_at":"2015-06-28T08:36:50Z","body":"Fix pushed to https://validator.w3.org/nu/\r\n\r\nAs far as your example, the checker is still going to emit an error for the `xlink:href` attribute in there. But that’s appropriate because the HTML `a` element can’t actually have an `xlink:href` attribute."}}