Add missing case in the "in-table" start-tag handling

Entry for "colgroup" was missing
This commit is contained in:
iska
2015-04-05 17:55:58 +02:00
parent c020e3ba6a
commit 89ff209f2d
+6
View File
@@ -1559,6 +1559,12 @@
case HTMLTokenTypeStartTag:
if ([token.asTagToken.tagName isEqualToString:@"caption"]) {
[_stackOfOpenElements clearBackToTableContext];
[_listOfActiveFormattingElements addMarker];
[self insertElementForToken:token.asTagToken];
[self switchInsertionMode:HTMLInsertionModeInCaption];
} else if ([token.asTagToken.tagName isEqualToString:@"colgroup"]) {
[_stackOfOpenElements clearBackToTableContext];
[self insertElementForToken:token.asTagToken];
[self switchInsertionMode:HTMLInsertionModeInColumnGroup];
} else if ([token.asTagToken.tagName isEqualToString:@"col"]) {
[_stackOfOpenElements clearBackToTableContext];