Skip to content

Commit 8614520

Browse files
committed
reflect addition of area properties hash,host,hostname,href,origin,password,pathname,port,protocol,search, and username
1 parent 0bd1c04 commit 8614520

3 files changed

Lines changed: 25 additions & 8 deletions

File tree

src/changes/changes.xml

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

99
<body>
1010
<release version="5.0.0" date="April 01, 2026" description="jdk17, Bugfixes">
11+
<action type="add" dev="Lai Quang Duong">
12+
Area: properties hash,host,hostname,href,origin,password,pathname,port,protocol,search, and username added.
13+
</action>
1114
<action type="update" dev="Lai Quang Duong">
1215
Extract shared HTMLHyperlinkElementUtils for URL decomposition and use it from HTMLAnchorElement and HTMLAreaElement.
1316
</action>

src/test/java/org/htmlunit/general/ElementOwnPropertiesTest.java

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1887,10 +1887,19 @@ public void applet() throws Exception {
18871887
+ "protocol[GSCE],referrerPolicy[GSCE],rel[GSCE],relList[GSCE],search[GSCE],shape[GSCE],"
18881888
+ "target[GSCE],toString(),"
18891889
+ "username[GSCE]")
1890-
@HtmlUnitNYI(CHROME = "alt[GSCE],constructor(),coords[GSCE],rel[GSCE],relList[GCE]",
1891-
EDGE = "alt[GSCE],constructor(),coords[GSCE],rel[GSCE],relList[GCE]",
1892-
FF_ESR = "alt[GSCE],constructor(),coords[GSCE],rel[GSCE],relList[GCE]",
1893-
FF = "alt[GSCE],constructor(),coords[GSCE],rel[GSCE],relList[GCE]")
1890+
@HtmlUnitNYI(
1891+
CHROME = "alt[GSCE],constructor(),coords[GSCE],hash[GSCE],host[GSCE],hostname[GSCE],href[GSCE],"
1892+
+ "origin[GCE],password[GSCE],pathname[GSCE],port[GSCE],protocol[GSCE],rel[GSCE],relList[GCE],"
1893+
+ "search[GSCE],username[GSCE]",
1894+
EDGE = "alt[GSCE],constructor(),coords[GSCE],hash[GSCE],host[GSCE],hostname[GSCE],href[GSCE],"
1895+
+ "origin[GCE],password[GSCE],pathname[GSCE],port[GSCE],protocol[GSCE],rel[GSCE],relList[GCE],"
1896+
+ "search[GSCE],username[GSCE]",
1897+
FF_ESR = "alt[GSCE],constructor(),coords[GSCE],hash[GSCE],host[GSCE],hostname[GSCE],href[GSCE],"
1898+
+ "origin[GCE],password[GSCE],pathname[GSCE],port[GSCE],protocol[GSCE],rel[GSCE],relList[GCE],"
1899+
+ "search[GSCE],username[GSCE]",
1900+
FF = "alt[GSCE],constructor(),coords[GSCE],hash[GSCE],host[GSCE],hostname[GSCE],href[GSCE],"
1901+
+ "origin[GCE],password[GSCE],pathname[GSCE],port[GSCE],protocol[GSCE],rel[GSCE],relList[GCE],"
1902+
+ "search[GSCE],username[GSCE]")
18941903
public void area() throws Exception {
18951904
test("area");
18961905
}

src/test/java/org/htmlunit/general/ElementPropertiesTest.java

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1361,10 +1361,15 @@ public void applet() throws Exception {
13611361
+ "protocol,referrerPolicy,rel,relList,search,shape,target,username",
13621362
FF_ESR = "alt,coords,download,hash,host,hostname,href,noHref,origin,password,pathname,ping,port,"
13631363
+ "protocol,referrerPolicy,rel,relList,search,shape,target,username")
1364-
@HtmlUnitNYI(CHROME = "alt,coords,rel,relList",
1365-
EDGE = "alt,coords,rel,relList",
1366-
FF_ESR = "alt,coords,rel,relList",
1367-
FF = "alt,coords,rel,relList")
1364+
@HtmlUnitNYI(
1365+
CHROME = "alt,coords,hash,host,hostname,href,origin,password,pathname,port,protocol,"
1366+
+ "rel,relList,search,username",
1367+
EDGE = "alt,coords,hash,host,hostname,href,origin,password,pathname,port,protocol,"
1368+
+ "rel,relList,search,username",
1369+
FF_ESR = "alt,coords,hash,host,hostname,href,origin,password,pathname,port,protocol,"
1370+
+ "rel,relList,search,username",
1371+
FF = "alt,coords,hash,host,hostname,href,origin,password,pathname,port,protocol,"
1372+
+ "rel,relList,search,username")
13681373
public void area() throws Exception {
13691374
test("area");
13701375
}

0 commit comments

Comments
 (0)