mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 595447 - Add type IDL attribute for HTMLFieldSetElement. r=smaug a=jst
This commit is contained in:
parent
10942c993a
commit
2b85f59b0d
@ -126,6 +126,13 @@ nsHTMLFieldSetElement::GetForm(nsIDOMHTMLFormElement** aForm)
|
||||
return nsGenericHTMLFormElement::GetForm(aForm);
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsHTMLFieldSetElement::GetType(nsAString& aType)
|
||||
{
|
||||
aType.AssignLiteral("fieldset");
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
// nsIFormControl
|
||||
|
||||
nsresult
|
||||
|
@ -226,6 +226,7 @@ _TEST_FILES = \
|
||||
test_bug592802.html \
|
||||
test_bug589696.html \
|
||||
test_bug595429.html \
|
||||
test_bug595447.html \
|
||||
$(NULL)
|
||||
|
||||
libs:: $(_TEST_FILES)
|
||||
|
30
content/html/content/test/test_bug595447.html
Normal file
30
content/html/content/test/test_bug595447.html
Normal file
@ -0,0 +1,30 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<!--
|
||||
https://bugzilla.mozilla.org/show_bug.cgi?id=595447
|
||||
-->
|
||||
<head>
|
||||
<title>Test for Bug 595447</title>
|
||||
<script type="application/javascript" src="/MochiKit/packed.js"></script>
|
||||
<script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
|
||||
</head>
|
||||
<body>
|
||||
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=595447">Mozilla Bug 595447</a>
|
||||
<p id="display"></p>
|
||||
<pre id="test">
|
||||
<script type="application/javascript">
|
||||
|
||||
/** Test for Bug 595447 **/
|
||||
|
||||
var fieldset = document.createElement("fieldset");
|
||||
|
||||
ok("type" in fieldset, "fieldset element should have a type IDL attribute");
|
||||
is(fieldset.type, "fieldset", "fieldset.type should return 'fieldset'");
|
||||
fieldset.type = "foo";
|
||||
is(fieldset.type, "fieldset", "fieldset.type is readonly");
|
||||
|
||||
</script>
|
||||
</pre>
|
||||
</body>
|
||||
</html>
|
@ -49,12 +49,13 @@
|
||||
|
||||
interface nsIDOMValidityState;
|
||||
|
||||
[scriptable, uuid(7d66ab6c-61fb-459f-8e3b-f8bd67991786)]
|
||||
[scriptable, uuid(8e89ae21-c666-4027-a1c7-bbc8f3d0a37a)]
|
||||
interface nsIDOMHTMLFieldSetElement : nsIDOMHTMLElement
|
||||
{
|
||||
readonly attribute nsIDOMHTMLFormElement form;
|
||||
attribute DOMString name;
|
||||
|
||||
readonly attribute DOMString type;
|
||||
|
||||
// The following lines are parte of the constraint validation API, see:
|
||||
// http://dev.w3.org/html5/spec/forms.html#the-constraint-validation-api
|
||||
|
Loading…
Reference in New Issue
Block a user