Skip to content

Commit 8f9f6bc

Browse files
Jonathan Kingstonhsivonen
authored andcommitted
Mozilla bug 1315460 - Removal of keygen element. r=hsivonen.
1 parent 73a560c commit 8f9f6bc

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

src/nu/validator/htmlparser/impl/ElementName.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1172,9 +1172,9 @@ public void destructor() {
11721172
// CPPONLY: NS_NewSVGUnknownElement,
11731173
TreeBuilder.MI_MO_MN_MS_MTEXT | SCOPING_AS_MATHML);
11741174
public static final ElementName KEYGEN = new ElementName("keygen", "keygen",
1175-
// CPPONLY: NS_NewHTMLSpanElement,
1175+
// CPPONLY: NS_NewHTMLElement,
11761176
// CPPONLY: NS_NewSVGUnknownElement,
1177-
TreeBuilder.KEYGEN);
1177+
TreeBuilder.KEYGEN | SPECIAL);
11781178
public static final ElementName MAIN = new ElementName("main", "main",
11791179
// CPPONLY: NS_NewHTMLElement,
11801180
// CPPONLY: NS_NewSVGUnknownElement,

src/nu/validator/htmlparser/impl/TreeBuilder.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2096,11 +2096,11 @@ public final void startTag(ElementName elementName,
20962096
case OBJECT:
20972097
case TABLE:
20982098
case AREA_OR_WBR:
2099+
case KEYGEN:
20992100
case BR:
21002101
case EMBED:
21012102
case IMG:
21022103
case INPUT:
2103-
case KEYGEN:
21042104
case HR:
21052105
case TEXTAREA:
21062106
case XMP:
@@ -2332,6 +2332,7 @@ public final void startTag(ElementName elementName,
23322332
case BR:
23332333
case EMBED:
23342334
case AREA_OR_WBR:
2335+
case KEYGEN:
23352336
reconstructTheActiveFormattingElements();
23362337
// FALL THROUGH to PARAM_OR_SOURCE_OR_TRACK
23372338
// CPPONLY: MOZ_FALLTHROUGH;
@@ -2356,7 +2357,6 @@ public final void startTag(ElementName elementName,
23562357
elementName = ElementName.IMG;
23572358
continue starttagloop;
23582359
case IMG:
2359-
case KEYGEN:
23602360
case INPUT:
23612361
reconstructTheActiveFormattingElements();
23622362
appendVoidElementToCurrentMayFoster(
@@ -2740,7 +2740,6 @@ public final void startTag(ElementName elementName,
27402740
}
27412741
case INPUT:
27422742
case TEXTAREA:
2743-
case KEYGEN:
27442743
errStartTagWithSelectOpen(name);
27452744
eltPos = findLastInTableScope("select");
27462745
if (eltPos == TreeBuilder.NOT_FOUND_ON_STACK) {
@@ -3802,13 +3801,13 @@ public final void endTag(ElementName elementName) throws SAXException {
38023801
// fall through to IN_HEAD;
38033802
break;
38043803
case AREA_OR_WBR:
3804+
case KEYGEN: // XXX??
38053805
// CPPONLY: case MENUITEM:
38063806
case PARAM_OR_SOURCE_OR_TRACK:
38073807
case EMBED:
38083808
case IMG:
38093809
case IMAGE:
38103810
case INPUT:
3811-
case KEYGEN: // XXX??
38123811
case HR:
38133812
case IFRAME:
38143813
case NOEMBED: // XXX???

0 commit comments

Comments
 (0)