Closed Bug 975527 Opened 10 years ago Closed 3 years ago

<output>.defaultValue not updated by parser

Categories

(Core :: DOM: Core & HTML, defect, P5)

defect

Tracking

()

RESOLVED DUPLICATE of bug 1537689

People

(Reporter: ian, Unassigned)

References

()

Details

(Keywords: testcase)

Attachments

(1 file)

<output>test</output> should have a .defaultValue of "test", but instead it has the empty string.

From the <output> spec:
# Whenever the element's descendants are changed in any way, if the value mode
# flag is in mode default, the element's default value must be set to the value
# of the element's textContent IDL attribute.
 -- http://whatwg.org/html#the-output-element
Component: Layout: Form Controls → DOM: Core & HTML
Keywords: testcase
OS: Mac OS X → All
Hardware: x86 → All
Attached patch wipSplinter Review
This is a bit clunky but seems to work.
Note, both gecko and blink (and I guess also webkit) have this behavior,
and I thought something in the spec required this odd behavior. Was the spec just changed?
The patch for bug 902618 would fix this if there weren't those changes to output. 

We have also some test for the current behavior.
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046

Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5.

If you have questions, please contact :mdaly.
Priority: -- → P5
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: