{"action":"created","issue":{"url":"https://api.github.com/repos/IDPF/epubcheck/issues/332","labels_url":"https://api.github.com/repos/IDPF/epubcheck/issues/332/labels{/name}","comments_url":"https://api.github.com/repos/IDPF/epubcheck/issues/332/comments","events_url":"https://api.github.com/repos/IDPF/epubcheck/issues/332/events","html_url":"https://github.com/IDPF/epubcheck/issues/332","id":26344803,"number":332,"title":"When item id contains a leading/trailing space character","user":{"login":"vincent-gros","id":1560109,"avatar_url":"https://avatars.githubusercontent.com/u/1560109?v=3","gravatar_id":"","url":"https://api.github.com/users/vincent-gros","html_url":"https://github.com/vincent-gros","followers_url":"https://api.github.com/users/vincent-gros/followers","following_url":"https://api.github.com/users/vincent-gros/following{/other_user}","gists_url":"https://api.github.com/users/vincent-gros/gists{/gist_id}","starred_url":"https://api.github.com/users/vincent-gros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vincent-gros/subscriptions","organizations_url":"https://api.github.com/users/vincent-gros/orgs","repos_url":"https://api.github.com/users/vincent-gros/repos","events_url":"https://api.github.com/users/vincent-gros/events{/privacy}","received_events_url":"https://api.github.com/users/vincent-gros/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/IDPF/epubcheck/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/IDPF/epubcheck/milestones/2","html_url":"https://github.com/IDPF/epubcheck/milestones/4.0","labels_url":"https://api.github.com/repos/IDPF/epubcheck/milestones/2/labels","id":701817,"number":2,"title":"4.0","description":"","creator":{"login":"tofi86","id":365118,"avatar_url":"https://avatars.githubusercontent.com/u/365118?v=3","gravatar_id":"","url":"https://api.github.com/users/tofi86","html_url":"https://github.com/tofi86","followers_url":"https://api.github.com/users/tofi86/followers","following_url":"https://api.github.com/users/tofi86/following{/other_user}","gists_url":"https://api.github.com/users/tofi86/gists{/gist_id}","starred_url":"https://api.github.com/users/tofi86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tofi86/subscriptions","organizations_url":"https://api.github.com/users/tofi86/orgs","repos_url":"https://api.github.com/users/tofi86/repos","events_url":"https://api.github.com/users/tofi86/events{/privacy}","received_events_url":"https://api.github.com/users/tofi86/received_events","type":"User","site_admin":false},"open_issues":26,"closed_issues":59,"state":"open","created_at":"2014-06-25T21:04:37Z","updated_at":"2015-06-18T09:47:32Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2014-01-27T10:54:10Z","updated_at":"2015-06-18T17:22:44Z","closed_at":null,"body":"If a non-Content Document (css, jpeg...) item id contains one or more leading/trailing spaces, no error or warning is provided by EpubCheck.\r\n\r\nBut, for a Content Document (xhtml, svg) item id, this is another story, because this id is used by the associated itemref.\r\n\r\nIn this context, `idref=\"content1\"` is not associated to `id=\" content1 \"`, for example. Though this is the same normalized value.\r\n\r\n[Here an EPUB2 sample](https://drive.google.com/file/d/0BzBMXg7nStOIdkdUVWExVmZCd0E/edit?usp=sharing)\r\n\r\n[Here an EPUB3 sample](https://drive.google.com/file/d/0BzBMXg7nStOIS1dGaTFCOWZlQUk/edit?usp=sharing)"},"comment":{"url":"https://api.github.com/repos/IDPF/epubcheck/issues/comments/113226129","html_url":"https://github.com/IDPF/epubcheck/issues/332#issuecomment-113226129","issue_url":"https://api.github.com/repos/IDPF/epubcheck/issues/332","id":113226129,"user":{"login":"mattgarrish","id":1565164,"avatar_url":"https://avatars.githubusercontent.com/u/1565164?v=3","gravatar_id":"","url":"https://api.github.com/users/mattgarrish","html_url":"https://github.com/mattgarrish","followers_url":"https://api.github.com/users/mattgarrish/followers","following_url":"https://api.github.com/users/mattgarrish/following{/other_user}","gists_url":"https://api.github.com/users/mattgarrish/gists{/gist_id}","starred_url":"https://api.github.com/users/mattgarrish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattgarrish/subscriptions","organizations_url":"https://api.github.com/users/mattgarrish/orgs","repos_url":"https://api.github.com/users/mattgarrish/repos","events_url":"https://api.github.com/users/mattgarrish/events{/privacy}","received_events_url":"https://api.github.com/users/mattgarrish/received_events","type":"User","site_admin":false},"created_at":"2015-06-18T17:22:44Z","updated_at":"2015-06-18T17:22:44Z","body":"Right, it's a nuisance using schematron to check attributes for this reason, as you have to remember to normalize space before checking for equality as someone could slip in leading/trailing spaces.\r\n\r\nUnlike with elements, it's also pretty rare find random whitespace around attribute values, so not surprising it's never come up before."}}