[Webkit-unassigned] [Bug 223712] New: HTMLFormElement.elements should not return images
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Mar 24 13:55:52 PDT 2021
https://bugs.webkit.org/show_bug.cgi?id=223712
Bug ID: 223712
Summary: HTMLFormElement.elements should not return images
Product: WebKit
Version: Safari 14
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Forms
Assignee: webkit-unassigned at lists.webkit.org
Reporter: epirat07 at gmail.com
CC: cdumez at apple.com, wenson_hsieh at apple.com
According to https://html.spec.whatwg.org/multipage/forms.html#category-listed the HTMLFormElement elements
property should not list img elements in forms, this does seem to work fine, except when explicitly accessing by ID.
For example given the following HTML:
<form id="test_form">
<input type="text" name="example_text_input">
<img alt="example" id="test_img" width="10" height="10" src="…">
</form>
Querying the elements with the img id like this:
document.forms['test_form'].elements['test_img']
should return undefined, like it happens in other browsers (tested with Firefox and Chrome), but it actually returns the img element.
Possibly related to #87834
--
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/20210324/cf0007f8/attachment.htm>
More information about the webkit-unassigned
mailing list