Skip to content

Commit 0fed8f9

Browse files
committed
Revert "remove the <KEYGEN> tag"
This reverts commit 2ad75b0.
1 parent 3bac255 commit 0fed8f9

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

src/main/java/org/htmlunit/cyberneko/HTMLElements.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ public class HTMLElements implements HTMLElementsProvider {
106106
public static final short INPUT = IMAGE + 1;
107107
public static final short INS = INPUT + 1;
108108
public static final short KBD = INS + 1;
109-
public static final short LABEL = KBD + 1;
109+
public static final short KEYGEN = KBD + 1;
110+
public static final short LABEL = KEYGEN + 1;
110111
public static final short LEGEND = LABEL + 1;
111112
public static final short LI = LEGEND + 1;
112113
public static final short LINK = LI + 1;
@@ -347,6 +348,8 @@ public HTMLElements() {
347348
elementsArray['K' - 'A'] = new Element[] {
348349
// KBD - - (%inline;)*
349350
new Element(KBD, "KBD", Element.INLINE, BODY, null),
351+
// KEYGEN
352+
new Element(KEYGEN, "KEYGEN", Element.EMPTY, BODY, null),
350353
};
351354
elementsArray['L' - 'A'] = new Element[] {
352355
// LABEL - - (%inline;)* -(LABEL)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<html><head></head><body><abbr><keygen></keygen></abbr></body></html>
1+
<html><head></head><body><abbr><keygen /></abbr></body></html>

src/test/resources/org/htmlunit/cyberneko/testfiles/abbr/test-abbr-around-keygen.html.canonical-xni

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ startElement (localpart="head",rawname="head",uri="http://www.w3.org/1999/xhtml"
44
endElement (localpart="head",rawname="head",uri="http://www.w3.org/1999/xhtml") [(-1,-1,-1) (-1,-1,-1) true]
55
startElement (localpart="body",rawname="body",uri="http://www.w3.org/1999/xhtml") [(-1,-1,-1) (-1,-1,-1) true]
66
startElement (localpart="abbr",rawname="abbr") [(1,1,0) (1,7,6) false]
7-
startElement (localpart="keygen",rawname="keygen") [(1,7,6) (1,15,14) false]
8-
endElement (localpart="keygen",rawname="keygen") [(1,15,14) (1,24,23) false]
7+
emptyElement (localpart="keygen",rawname="keygen") [(1,7,6) (1,15,14) false]
98
endElement (localpart="abbr",rawname="abbr") [(1,24,23) (1,31,30) false]
109
characters '
1110
'[(1,31,30) (2,1,31) false]

0 commit comments

Comments
 (0)