mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 862084 - Mark HTMLSelectElement.{item,namedItem} as potentially returning null to fix a crash; r=bz
This commit is contained in:
parent
e9e1fa61d5
commit
52a59671a2
9
content/html/content/crashtests/862084.html
Normal file
9
content/html/content/crashtests/862084.html
Normal file
@ -0,0 +1,9 @@
|
||||
<!doctype html>
|
||||
<select></select>
|
||||
<script>
|
||||
var select = document.getElementsByTagName("select");
|
||||
select.item(0);
|
||||
select[0];
|
||||
select.namedItem("x")
|
||||
select["x"]
|
||||
</script>
|
@ -50,4 +50,4 @@ load 828180.html
|
||||
load 832011.html
|
||||
load 837033.html
|
||||
pref(dom.experimental_forms_range,true) load 838256-1.html
|
||||
|
||||
load 862084.html
|
||||
|
@ -30,9 +30,9 @@ interface HTMLSelectElement : HTMLElement {
|
||||
readonly attribute HTMLOptionsCollection options;
|
||||
[SetterThrows, Pure]
|
||||
attribute unsigned long length;
|
||||
getter Element item(unsigned long index);
|
||||
getter Element? item(unsigned long index);
|
||||
[Throws]
|
||||
object namedItem(DOMString name);
|
||||
object? namedItem(DOMString name);
|
||||
[Throws]
|
||||
void add((HTMLOptionElement or HTMLOptGroupElement) element, optional (HTMLElement or long)? before = null);
|
||||
void remove(long index);
|
||||
|
Loading…
Reference in New Issue
Block a user