diff options
author | Valentin Kunz <[email protected]> | 2016-05-12 14:29:41 +0000 |
---|---|---|
committer | Asmir Mustafic <[email protected]> | 2016-09-22 12:37:05 +0200 |
commit | 9b0419a214d6c20b25de615653cc07597719fb1b (patch) | |
tree | 822556bd8a8b824d9dcaff6cd5f81a3314bcd159 /src/HTML5/Parser | |
parent | c30ea30fa99c3475e09e81499ef3d9a869043d4a (diff) |
don't close optgroup when followed by an option
Make sure options are children of optgroup, not the parent select.
Otherwise we end up with a bunch of empty optgroups.
Diffstat (limited to 'src/HTML5/Parser')
-rw-r--r-- | src/HTML5/Parser/TreeBuildingRules.php | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/HTML5/Parser/TreeBuildingRules.php b/src/HTML5/Parser/TreeBuildingRules.php index 2af3c66..6236208 100644 --- a/src/HTML5/Parser/TreeBuildingRules.php +++ b/src/HTML5/Parser/TreeBuildingRules.php @@ -76,7 +76,6 @@ class TreeBuildingRules case 'option': return $this->closeIfCurrentMatches($new, $current, array( 'option', - 'optgroup' )); case 'tr': return $this->closeIfCurrentMatches($new, $current, array( |