[Bug 9529] New: output element reset algorithm should set value mode flag to default _before_ setting textContent

http://www.w3.org/Bugs/Public/show_bug.cgi?id=9529

           Summary: output element reset algorithm should set value mode
                    flag to default _before_ setting textContent
           Product: HTML WG
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTML5 spec bugs
        AssignedTo: dave.null@w3.org
        ReportedBy: mounir.lamouri@gmail.com
         QAContact: public-html-bugzilla@w3.org
                CC: ian@hixie.ch, mike@w3.org, public-html@w3.org,
                    Olli.Pettay@gmail.com


At the moment, the output element reset algorithm has to set the textContent
then it has to change the value mode flag to default.
It looks like it is to prevent setting the textContent to the defaultValue then
the defaultValue to the textContent. Indeed, when in default mode, if an
element descendant is changed, the defaultValue has to be set to the
textContent.
However, by setting the textContent, the reset algorithm may fire a mutation
event which can change the .value and change the mode to the value mode but the
mode is changed just after to the default mode.

So we should set the mode to the default mode algorithm before setting
textContent and let implementors prevent setting / getting the same value which
is not harmful.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Thursday, 15 April 2010 12:32:11 UTC