Skip to content

Commit 73fbdbe

Browse files
committed
fix section no longer closes selects
1 parent 526a4f8 commit 73fbdbe

6 files changed

Lines changed: 31 additions & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ public HTMLElements() {
442442
new Element(SCRIPT, "SCRIPT", Element.SPECIAL | Element.SCRIPT_SUPPORTING,
443443
new short[]{HEAD, BODY}, null),
444444

445-
new Element(SECTION, "SECTION", Element.BLOCK, BODY, new short[]{SELECT, P}),
445+
new Element(SECTION, "SECTION", Element.BLOCK, BODY, new short[]{P}),
446446
// SELECT - - (OPTGROUP|OPTION)+
447447
new Element(SELECT, "SELECT", Element.CONTAINER, BODY, new short[]{SELECT}),
448448

Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<select><section>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
(html
2+
(head
3+
)head
4+
(body
5+
(select
6+
(section
7+
)section
8+
)select
9+
)body
10+
)html
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
(select
2+
(section
3+
)section
4+
)select
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<html><head></head><body><select><section></section></select></body></html>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
startDocument [(1,1,0) (1,1,0) false]
2+
startElement (localpart="html",rawname="html",uri="http://www.w3.org/1999/xhtml") [(-1,-1,-1) (-1,-1,-1) true]
3+
startElement (localpart="head",rawname="head",uri="http://www.w3.org/1999/xhtml") [(-1,-1,-1) (-1,-1,-1) true]
4+
endElement (localpart="head",rawname="head",uri="http://www.w3.org/1999/xhtml") [(-1,-1,-1) (-1,-1,-1) true]
5+
startElement (localpart="body",rawname="body",uri="http://www.w3.org/1999/xhtml") [(-1,-1,-1) (-1,-1,-1) true]
6+
startElement (localpart="select",rawname="select") [(1,1,0) (1,9,8) false]
7+
startElement (localpart="section",rawname="section") [(1,9,8) (1,18,17) false]
8+
characters '
9+
'[(1,18,17) (2,1,18) false]
10+
endElement (localpart="section",rawname="section") [(-1,-1,-1) (-1,-1,-1) true]
11+
endElement (localpart="select",rawname="select") [(-1,-1,-1) (-1,-1,-1) true]
12+
endElement (localpart="body",rawname="body",uri="http://www.w3.org/1999/xhtml") [(-1,-1,-1) (-1,-1,-1) true]
13+
endElement (localpart="html",rawname="html",uri="http://www.w3.org/1999/xhtml") [(-1,-1,-1) (-1,-1,-1) true]
14+
endDocument [(2,1,18) (2,1,18) false]

0 commit comments

Comments
 (0)