Skip to content

Commit 70f5bad

Browse files
committed
neko improved
1 parent a0c9053 commit 70f5bad

2 files changed

Lines changed: 33 additions & 17 deletions

File tree

src/changes/changes.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,18 @@
88

99
<body>
1010
<release version="5.4.0" date="August xx, 2026" description="Firefox 153, Bugfixes">
11+
<action type="update" dev="rbri">
12+
neko: Remove the &lt;comment&gt; tag suport (https://github.com/HtmlUnit/htmlunit-neko/issues/173).
13+
</action>
14+
<action type="update" dev="rbri">
15+
neko: A new &lt;nobr&gt; start tag closes an &lt;nobr&gt; that is still open, even across intervening block elements.
16+
</action>
17+
<action type="update" dev="rbri">
18+
neko: A new &lt;a&gt; start tag closes an &lt;a&gt; that is still open, even across intervening block elements.
19+
</action>
20+
<action type="update" dev="rbri">
21+
neko: Some performance optimizations and code cleanup.
22+
</action>
1123
<action type="fix" dev="rbri">
1224
Fix a possible resource leak by making sure ImageIOImageData closes the base stream.
1325
</action>

src/test/java/org/htmlunit/html/parser/MalformedHtmlTest.java

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -361,28 +361,32 @@ public void sectionWithUnknownClosingTag() throws Exception {
361361
* @throws Exception if an error occurs
362362
*/
363363
@Test
364-
@Alerts({"4", "#text:\\n\\s\\s", "A:null", "DIV:null", "#text:Z\\n\\n\\n", "3",
365-
"innerDiv", "BODY:null", "3", "A:null", "A:null", "#text:Y",
366-
"outerA", "BODY:null", "1", "#text:V", "true", "false",
367-
"outerA", "DIV:null", "1", "#text:W", "false", "false",
368-
"innerA", "DIV:null", "1", "#text:X", "false", "true"})
364+
@Alerts({"4", "#text:\\n\\s\\s", "A:null", "DIV:null", "#text:Z\\n\\n\\n",
365+
"3", "innerDiv", "BODY:null", "3", "A:null", "A:null", "#text:Y",
366+
"outerA", "BODY:null", "1", "#text:V", "true", "false",
367+
"outerA", "DIV:null", "1", "#text:W", "false", "false",
368+
"innerA", "DIV:null", "1", "#text:X", "false", "true"})
369369
@HtmlUnitNYI(
370-
CHROME = {"4", "#text:\\n\\s\\s", "A:null", "A:null", "#text:YZ\\n\\n",
371-
"2", "innerDiv", "A:null", "1", "#text:W", "TypeError",
370+
CHROME = {"4", "#text:\\n\\s\\s", "A:null", "DIV:null", "#text:Z\\n\\n",
371+
"3", "innerDiv", "A:null", "1", "#text:W", "TypeError",
372372
"outerA", "BODY:null", "2", "#text:V", "true", "false",
373-
"innerA", "BODY:null", "1", "#text:X", "false", "true", "TypeError"},
374-
EDGE = {"4", "#text:\\n\\s\\s", "A:null", "A:null", "#text:YZ\\n\\n",
375-
"2", "innerDiv", "A:null", "1", "#text:W", "TypeError",
373+
"outerA", "DIV:null", "0", "TypeError",
374+
"innerA", "DIV:null", "1", "#text:X", "false", "true"},
375+
EDGE = {"4", "#text:\\n\\s\\s", "A:null", "DIV:null", "#text:Z\\n\\n",
376+
"3", "innerDiv", "A:null", "1", "#text:W", "TypeError",
376377
"outerA", "BODY:null", "2", "#text:V", "true", "false",
377-
"innerA", "BODY:null", "1", "#text:X", "false", "true", "TypeError"},
378-
FF = {"4", "#text:\\n\\s\\s", "A:null", "A:null", "#text:YZ\\n\\n",
379-
"2", "innerDiv", "A:null", "1", "#text:W", "TypeError",
378+
"outerA", "DIV:null", "0", "TypeError",
379+
"innerA", "DIV:null", "1", "#text:X", "false", "true"},
380+
FF = {"4", "#text:\\n\\s\\s", "A:null", "DIV:null", "#text:Z\\n\\n",
381+
"3", "innerDiv", "A:null", "1", "#text:W", "TypeError",
380382
"outerA", "BODY:null", "2", "#text:V", "true", "false",
381-
"innerA", "BODY:null", "1", "#text:X", "false", "true", "TypeError"},
382-
FF_ESR = {"4", "#text:\\n\\s\\s", "A:null", "A:null", "#text:YZ\\n\\n",
383-
"2", "innerDiv", "A:null", "1", "#text:W", "TypeError",
383+
"outerA", "DIV:null", "0", "TypeError",
384+
"innerA", "DIV:null", "1", "#text:X", "false", "true"},
385+
FF_ESR = {"4", "#text:\\n\\s\\s", "A:null", "DIV:null", "#text:Z\\n\\n",
386+
"3", "innerDiv", "A:null", "1", "#text:W", "TypeError",
384387
"outerA", "BODY:null", "2", "#text:V", "true", "false",
385-
"innerA", "BODY:null", "1", "#text:X", "false", "true", "TypeError"})
388+
"outerA", "DIV:null", "0", "TypeError",
389+
"innerA", "DIV:null", "1", "#text:X", "false", "true"})
386390
// Input:
387391
// <a id="outerA">V<div id="innerDiv">W<a id="innerA">X</a>Y</div>Z</a>
388392
// CHROME and IE generate:

0 commit comments

Comments
 (0)