<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Web IDL: DOM "onfoo" attributes should be configurable and enumerable"
href="https://bugs.webkit.org/show_bug.cgi?id=149474">149474</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Web IDL: DOM "onfoo" attributes should be configurable and enumerable
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>Product</th>
<td>WebKit
</td>
</tr>
<tr>
<th>Version</th>
<td>WebKit Nightly Build
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Unspecified
</td>
</tr>
<tr>
<th>URL</th>
<td>https://heycam.github.io/webidl/#es-attributes
</td>
</tr>
<tr>
<th>OS</th>
<td>Unspecified
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>Normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P2
</td>
</tr>
<tr>
<th>Component</th>
<td>HTML DOM
</td>
</tr>
<tr>
<th>Assignee</th>
<td>webkit-unassigned@lists.webkit.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>joepeck@webkit.org
</td>
</tr>
<tr>
<th>CC</th>
<td>cdumez@apple.com
</td>
</tr>
<tr>
<th>Blocks</th>
<td>122213, 142934
</td>
</tr></table>
<p>
<div>
<pre>* SUMMARY
DOM "onfoo" attributes should be configurable and enumerable
<a href="https://heycam.github.io/webidl/#es-attributes">https://heycam.github.io/webidl/#es-attributes</a>
<span class="quote">> 4.5.7. Attributes</span >
>
<span class="quote">> For each exposed attribute of the interface, whether it was declared on the interface itself
> or one of its consequential interfaces, there must exist a corresponding property.
> The characteristics of this property are as follows:</span >
>
<span class="quote">> • The property has attributes { [[Get]]: G, [[Set]]: S, [[Enumerable]]: true, [[Configurable]]: configurable }, where:
> - configurable is false if the attribute was declared with the [Unforgeable] extended attribute and true otherwise;
> - G is the attribute getter, defined below; and
> - S is the attribute setter, also defined below.</span >
* TEST
var descriptor = Object.getOwnPropertyDescriptor(window, "onhashchange");
assert(descriptor.enumerable);
assert(descriptor.configurable);
* NOTES
WebKit : Enumerable(false) Configurable(false)
Firefox: Enumerable(true) Configurable(true)
Chrome : Enumerable(true) Configurable(true) // NOTE: window.__proto__ right now</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>