[Bug 12945] "On setting, if the given element has an id attribute, then the content attribute must be set to the value of that id attribute. Otherwise, the IDL attribute must be set to the empty string." is strange and breaks reflection. If the given element isn't in

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

Olli Pettay <Olli.Pettay@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|NEEDSINFO                   |

--- Comment #8 from Olli Pettay <Olli.Pettay@gmail.com> 2011-09-04 09:43:48 UTC ---
I would assume that after setting reflectedAttribute,
reflectedAttribute would give back the same element it was set to.
But that is not the case.

If reflectedAttribute would be set to element_in_some_other_document
element.reflectedAttribute would give back null or perhaps some
other element which has the same ID as element_in_some_other_document.

So, the spec should probably require that
when setting reflected attribute, the element which ID attribute is read
is in the same document.

-- 
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 Sunday, 4 September 2011 09:43:57 UTC