{"action":"created","issue":{"url":"https://api.github.com/repos/friendica/friendica/issues/2850","repository_url":"https://api.github.com/repos/friendica/friendica","labels_url":"https://api.github.com/repos/friendica/friendica/issues/2850/labels{/name}","comments_url":"https://api.github.com/repos/friendica/friendica/issues/2850/comments","events_url":"https://api.github.com/repos/friendica/friendica/issues/2850/events","html_url":"https://github.com/friendica/friendica/issues/2850","id":181583330,"number":2850,"title":"Users with non XHTML themes can't use their account@friendica.instance to connect","user":{"login":"Hypolite","id":925415,"avatar_url":"https://avatars.githubusercontent.com/u/925415?v=3","gravatar_id":"","url":"https://api.github.com/users/Hypolite","html_url":"https://github.com/Hypolite","followers_url":"https://api.github.com/users/Hypolite/followers","following_url":"https://api.github.com/users/Hypolite/following{/other_user}","gists_url":"https://api.github.com/users/Hypolite/gists{/gist_id}","starred_url":"https://api.github.com/users/Hypolite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hypolite/subscriptions","organizations_url":"https://api.github.com/users/Hypolite/orgs","repos_url":"https://api.github.com/users/Hypolite/repos","events_url":"https://api.github.com/users/Hypolite/events{/privacy}","received_events_url":"https://api.github.com/users/Hypolite/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-10-07T04:30:28Z","updated_at":"2016-10-07T12:40:01Z","closed_at":null,"body":"Since I started using Friendica with the frio theme, I never could connect using my short-form address `hypolite@friendica.mrpetovan.com`, it invariably failed. Using my full profile URL (https://friendica.mrpetovan.com/profile/hypolite) seemed to work so I didn't think much about it. Until today.\r\n\r\nI set up a fan page account for a webcomic I'm following, and I wanted to connect with it to access its posts. However, in the connect page, I don't have the choice of address, it shows my shot-form address and there are no way of changing it. Unexpectedly, the connection request failed, which surprised me since we are on the same server.\r\n\r\nAfter a quick debugging session, it turns out that during the connection exchange, the XML parsing of my profile page fails because the frio theme is using the HTML5 doctype, not the XHTML one.\r\n\r\nI have two solutions in mind:\r\n1. ~~Generate an XML-compliant page for profiles that would be independent of the theme so that the parser is always successful~~ (**Edit**: [It already exists](https://friendica.mrpetovan.com/xrd/?uri=acct%3Ahypolite%40friendica.mrpetovan.com) but it's apparently not used)\r\n2. ~~Use regular expressions instead of an XML parser to grab the links, this would probably be faster than a full XML parse of an HTML document that may or may not be XML compliant~~ Not practical\r\n3. ~~**Edit**: Find out why the XML page isn't queried instead of the full public profile web page~~ Nevermind, I assume this is needed for non-Friendica connection\r\n4. **Edit 07/10**: Replace the XML parser by a HTML DOM parser like @annando suggests."},"comment":{"url":"https://api.github.com/repos/friendica/friendica/issues/comments/252241777","html_url":"https://github.com/friendica/friendica/issues/2850#issuecomment-252241777","issue_url":"https://api.github.com/repos/friendica/friendica/issues/2850","id":252241777,"user":{"login":"Hypolite","id":925415,"avatar_url":"https://avatars.githubusercontent.com/u/925415?v=3","gravatar_id":"","url":"https://api.github.com/users/Hypolite","html_url":"https://github.com/Hypolite","followers_url":"https://api.github.com/users/Hypolite/followers","following_url":"https://api.github.com/users/Hypolite/following{/other_user}","gists_url":"https://api.github.com/users/Hypolite/gists{/gist_id}","starred_url":"https://api.github.com/users/Hypolite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hypolite/subscriptions","organizations_url":"https://api.github.com/users/Hypolite/orgs","repos_url":"https://api.github.com/users/Hypolite/repos","events_url":"https://api.github.com/users/Hypolite/events{/privacy}","received_events_url":"https://api.github.com/users/Hypolite/received_events","type":"User","site_admin":false},"created_at":"2016-10-07T12:40:01Z","updated_at":"2016-10-07T12:40:01Z","body":"Updated the solutions list, I can take care of 4. probably this weekend, this is a bummer for me right now."}}
{"actor":{"display_login":"Hypolite"}}