{"action":"created","issue":{"url":"https://api.github.com/repos/fb55/htmlparser2/issues/242","repository_url":"https://api.github.com/repos/fb55/htmlparser2","labels_url":"https://api.github.com/repos/fb55/htmlparser2/issues/242/labels{/name}","comments_url":"https://api.github.com/repos/fb55/htmlparser2/issues/242/comments","events_url":"https://api.github.com/repos/fb55/htmlparser2/issues/242/events","html_url":"https://github.com/fb55/htmlparser2/issues/242","id":349003194,"node_id":"MDU6SXNzdWUzNDkwMDMxOTQ=","number":242,"title":"htmlparser2 can not handle `<img src=\"\">` and `<custom-element/>` accurately at the same time(use xmlMode or not)","user":{"login":"lovetingyuan","id":7310471,"node_id":"MDQ6VXNlcjczMTA0NzE=","avatar_url":"https://avatars3.githubusercontent.com/u/7310471?v=4","gravatar_id":"","url":"https://api.github.com/users/lovetingyuan","html_url":"https://github.com/lovetingyuan","followers_url":"https://api.github.com/users/lovetingyuan/followers","following_url":"https://api.github.com/users/lovetingyuan/following{/other_user}","gists_url":"https://api.github.com/users/lovetingyuan/gists{/gist_id}","starred_url":"https://api.github.com/users/lovetingyuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lovetingyuan/subscriptions","organizations_url":"https://api.github.com/users/lovetingyuan/orgs","repos_url":"https://api.github.com/users/lovetingyuan/repos","events_url":"https://api.github.com/users/lovetingyuan/events{/privacy}","received_events_url":"https://api.github.com/users/lovetingyuan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-08-09T07:05:59Z","updated_at":"2018-09-05T09:36:56Z","closed_at":"2018-09-05T09:07:41Z","author_association":"NONE","body":"when `xmlMode` is true, `<img src=\"\">` is invalid, otherwise `<my-component/>` is invalid, however I want to handle both of them at the same time.\r\n```html\r\n<div id=\"container\">\r\n  <img src=\"\"/>\r\n  <img src=\"\">\r\n  <p></p>\r\n  <my-component title=\"this tag is invalid in html5, it will wrap reset elements\"/>\r\n  <my-component></my-component>\r\n  <p></p>\r\n</div>\r\n```\r\nI hope the number of `container`'s element children could be 6, I know it goes against the standard, but could you offer an option to handle this? thanks!"},"comment":{"url":"https://api.github.com/repos/fb55/htmlparser2/issues/comments/418667003","html_url":"https://github.com/fb55/htmlparser2/issues/242#issuecomment-418667003","issue_url":"https://api.github.com/repos/fb55/htmlparser2/issues/242","id":418667003,"node_id":"MDEyOklzc3VlQ29tbWVudDQxODY2NzAwMw==","user":{"login":"thorn0","id":94334,"node_id":"MDQ6VXNlcjk0MzM0","avatar_url":"https://avatars0.githubusercontent.com/u/94334?v=4","gravatar_id":"","url":"https://api.github.com/users/thorn0","html_url":"https://github.com/thorn0","followers_url":"https://api.github.com/users/thorn0/followers","following_url":"https://api.github.com/users/thorn0/following{/other_user}","gists_url":"https://api.github.com/users/thorn0/gists{/gist_id}","starred_url":"https://api.github.com/users/thorn0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thorn0/subscriptions","organizations_url":"https://api.github.com/users/thorn0/orgs","repos_url":"https://api.github.com/users/thorn0/repos","events_url":"https://api.github.com/users/thorn0/events{/privacy}","received_events_url":"https://api.github.com/users/thorn0/received_events","type":"User","site_admin":false},"created_at":"2018-09-05T09:36:56Z","updated_at":"2018-09-05T09:36:56Z","author_association":"NONE","body":"Still, there are use cases like yours where XMLish markup is embedded in HTML and is intended for some kind of preprocessing, not to be directly fed to the browser. And that's where the speed and flexibility of this parser shine. On the other hand, if one needs an HTML5-compliant parser, there exists parse5."}}
{"actor":{"display_login":"thorn0"}}