summaryrefslogtreecommitdiff
path: root/src/HTML5/Parser/TreeBuildingRules.php
diff options
context:
space:
mode:
authorMatt Butcher <[email protected]>2014-02-11 09:56:01 -0700
committerMatt Butcher <[email protected]>2014-02-11 09:56:01 -0700
commit44e8e23626bf619844baf9983e931d2f58606377 (patch)
tree62625f63a954ab5a3f9bb4184039a68496e3896a /src/HTML5/Parser/TreeBuildingRules.php
parent77ad931cd824feb33eebae08cf3a5a47bce1e337 (diff)
parent3b691837c6d7a0969137048fbda274463d6b1d7c (diff)
Merge branch 'master' of github.com:Masterminds/html5-php
Diffstat (limited to 'src/HTML5/Parser/TreeBuildingRules.php')
-rw-r--r--src/HTML5/Parser/TreeBuildingRules.php11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/HTML5/Parser/TreeBuildingRules.php b/src/HTML5/Parser/TreeBuildingRules.php
index 0f1b3a5..b87c6b5 100644
--- a/src/HTML5/Parser/TreeBuildingRules.php
+++ b/src/HTML5/Parser/TreeBuildingRules.php
@@ -71,20 +71,19 @@ class TreeBuildingRules {
case 'rp':
return $this->handleRT($new, $current);
case 'optgroup':
- $this->closeIfCurrentMatches($new, $current, array('optgroup'));
+ return $this->closeIfCurrentMatches($new, $current, array('optgroup'));
case 'option':
- $this->closeIfCurrentMatches($new, $current, array('option', 'optgroup'));
+ return $this->closeIfCurrentMatches($new, $current, array('option', 'optgroup'));
case 'tr':
- $this->closeIfCurrentMatches($new, $current, array('tr'));
+ return $this->closeIfCurrentMatches($new, $current, array('tr'));
case 'td':
case 'th':
- $this->closeIfCurrentMatches($new, $current, array('th', 'td'));
+ return $this->closeIfCurrentMatches($new, $current, array('th', 'td'));
case 'tbody':
case 'thead':
case 'tfoot':
case 'table': // Spec isn't explicit about this, but it's necessary.
- $this->closeIfCurrentMatches($new, $current, array('thead', 'tfoot', 'tbody'));
-
+ return $this->closeIfCurrentMatches($new, $current, array('thead', 'tfoot', 'tbody'));
}
return $current;