{"action":"created","issue":{"url":"https://api.github.com/repos/PHPOffice/PHPWord/issues/324","repository_url":"https://api.github.com/repos/PHPOffice/PHPWord","labels_url":"https://api.github.com/repos/PHPOffice/PHPWord/issues/324/labels{/name}","comments_url":"https://api.github.com/repos/PHPOffice/PHPWord/issues/324/comments","events_url":"https://api.github.com/repos/PHPOffice/PHPWord/issues/324/events","html_url":"https://github.com/PHPOffice/PHPWord/issues/324","id":39261661,"number":324,"title":"Using table tag in HTML Reader produces no output","user":{"login":"EK1771","id":8280966,"avatar_url":"https://avatars.githubusercontent.com/u/8280966?v=3","gravatar_id":"","url":"https://api.github.com/users/EK1771","html_url":"https://github.com/EK1771","followers_url":"https://api.github.com/users/EK1771/followers","following_url":"https://api.github.com/users/EK1771/following{/other_user}","gists_url":"https://api.github.com/users/EK1771/gists{/gist_id}","starred_url":"https://api.github.com/users/EK1771/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EK1771/subscriptions","organizations_url":"https://api.github.com/users/EK1771/orgs","repos_url":"https://api.github.com/users/EK1771/repos","events_url":"https://api.github.com/users/EK1771/events{/privacy}","received_events_url":"https://api.github.com/users/EK1771/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/PHPOffice/PHPWord/labels/Bug%20Report","name":"Bug Report","color":"fc2929"},{"url":"https://api.github.com/repos/PHPOffice/PHPWord/labels/Open%20XML%20(Word2007)","name":"Open XML (Word2007)","color":"444444"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2014-08-01T05:07:51Z","updated_at":"2016-02-05T18:38:20Z","closed_at":null,"body":"**Sample Code:**\r\n\r\n```\r\n$phpWord = new \\PhpOffice\\PhpWord\\PhpWord();\r\n\r\n$section = $phpWord->addSection();\r\n\r\n$html = '<table><tr><td>test</td></tr></table>';\r\n\r\n\\PhpOffice\\PhpWord\\Shared\\Html::addHtml($section, $html);\r\n\r\n$objWriter = \\PhpOffice\\PhpWord\\IOFactory::createWriter($phpWord, 'Word2007');\r\n$objWriter->save('test.docx');\r\n```\r\n\r\n**Expected Output:**\r\n\r\nTable with one cell containing the word \"test\".\r\n\r\n**Actual Output:**\r\n\r\nBlank\r\n\r\nFrom stepping through the code quickly, the issue seems to be caused by the following if condition in parseChildNodes():\r\n\r\n```\r\nif ($element instanceof AbstractContainer) {\r\n    self::parseNode($cNode, $element, $styles, $data);\r\n}\r\n```\r\n\r\nCommenting out the if condition then allows for the sample code above to produce the expected output."},"comment":{"url":"https://api.github.com/repos/PHPOffice/PHPWord/issues/comments/180492160","html_url":"https://github.com/PHPOffice/PHPWord/issues/324#issuecomment-180492160","issue_url":"https://api.github.com/repos/PHPOffice/PHPWord/issues/324","id":180492160,"user":{"login":"mogilvie","id":7894754,"avatar_url":"https://avatars.githubusercontent.com/u/7894754?v=3","gravatar_id":"","url":"https://api.github.com/users/mogilvie","html_url":"https://github.com/mogilvie","followers_url":"https://api.github.com/users/mogilvie/followers","following_url":"https://api.github.com/users/mogilvie/following{/other_user}","gists_url":"https://api.github.com/users/mogilvie/gists{/gist_id}","starred_url":"https://api.github.com/users/mogilvie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mogilvie/subscriptions","organizations_url":"https://api.github.com/users/mogilvie/orgs","repos_url":"https://api.github.com/users/mogilvie/repos","events_url":"https://api.github.com/users/mogilvie/events{/privacy}","received_events_url":"https://api.github.com/users/mogilvie/received_events","type":"User","site_admin":false},"created_at":"2016-02-05T18:38:20Z","updated_at":"2016-02-05T18:38:20Z","body":"Html.php uploaded as a text file. It was working as of Jan 2015.\r\n\r\n[Html.txt](https://github.com/PHPOffice/PHPWord/files/119668/Html.txt)\r\n"}}