diff --git a/library/HTMLPurifier/ChildDef/Table.php b/library/HTMLPurifier/ChildDef/Table.php
index 67c7e9535..d92205b32 100644
--- a/library/HTMLPurifier/ChildDef/Table.php
+++ b/library/HTMLPurifier/ChildDef/Table.php
@@ -190,6 +190,9 @@ public function validateChildren($children, $config, $context)
$current_tr_tbody = null;
foreach($content as $node) {
+ if (!isset($node->name)) {
+ continue;
+ }
switch ($node->name) {
case 'tbody':
$current_tr_tbody = null;