Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Gecko Bug 1537689] Fix HTML output element default value is absent; DONTBUILD #28957

Merged
merged 1 commit into from
May 12, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 7 additions & 0 deletions html/semantics/forms/the-output-element/output.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@
<script src="/resources/testharnessreport.js"></script>
<div id="log"></div>
<output id=output></output>
<output id="defaultValueOutput">abc</output>
<script>
var output = document.getElementById("output");
var defaultValueOutput = document.getElementById("defaultValueOutput");

test(function(){
assert_equals(output.type, "output", "type must return the string 'output'");
Expand All @@ -35,5 +37,10 @@
assert_equals(output.value, "20", "defaultValue is set to 15: value remains unchanged");
assert_equals(output.textContent, "20", "defaultValue is set to 15: textContent remains unchanged");
assert_equals(output.defaultValue, "15", "defaultValue is set to 15");

assert_equals(defaultValueOutput.type, "output", "type must return the string 'output'");
assert_equals(defaultValueOutput.textContent, "abc", "textContent should be 'abc'");
assert_equals(defaultValueOutput.value, "abc", "value should be 'abc'");
assert_equals(defaultValueOutput.defaultValue, "abc", "defaultValue should be 'abc'");
}, "output value and defaultValue");
</script>