[Webkit-unassigned] [Bug 239687] New: Behavior error when rendering dialog with/without the open attribute
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Apr 22 23:08:23 PDT 2022
https://bugs.webkit.org/show_bug.cgi?id=239687
Bug ID: 239687
Summary: Behavior error when rendering dialog with/without the
open attribute
Product: WebKit
Version: Safari 15
Hardware: All
OS: All
Status: NEW
Severity: Normal
Priority: P2
Component: DOM
Assignee: webkit-unassigned at lists.webkit.org
Reporter: tlock.chijin at gmail.com
Created attachment 458203
--> https://bugs.webkit.org/attachment.cgi?id=458203&action=review
webkit screenshot
The behavior of <dialog> is not expected. As the document (https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog) illustates, when the open attribute is not set, the dialog shouldn't be shown to the user. However, webkit didn't meet this end.
The behavior of Chrome seems correct.
code:
```
<html>
<head>
<style>
</style>
<script>
function jsfuzzer() {
// https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog
// "When the open attribute is not set, the dialog shouldn't be shown to the user."
document.getElementById("htmlvar00001").setAttribute("open", "true")
}
</script>
</head>
<body onload=jsfuzzer()>
<dialog id="htmlvar00001">dialog 1</dialog>
<dialog id="htmlvar00002">dialog 2</dialog>
</body>
</html
```
link: https://codepen.io/chijinz/pen/QWaPBam
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220423/b5ad81f3/attachment.htm>
More information about the webkit-unassigned
mailing list