On Wed, May 21, 2008 at 10:34 AM, Maciej Stachowiak <<a href="mailto:mjs@apple.com">mjs@apple.com</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div style=""><div>style.opacity = ... certainly triggers DOM API even if opacity was not previously set on that style.</div></div></blockquote><div><br>The property was always there, though, from the JS point of view.<br>
<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div style=""><div> And there is even a plausible mapping for delete (style.removeProperty). It's not completely open-ended but you can certainly have properties added to and removed from a style declaration.</div>
</div></blockquote><div><br>style.removeProperty does not remove the JS property, so from the JS point of view it's a misnomer.<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div style=""><div></div><div>Ultimately the conclusion I question is that having obj.foo and obj.foo = ... work, but not delete obj.foo, will create confusion or is somehow illogical. I don't believe it will create confusion, and I think style is a relevant example of a case where it has not.</div>
</div></blockquote></div><br>FWIW, I see "style.opacity = '';" far more often than removeProperty. I don't think authors don't think of 'style' as a container to which they can add and remove arbitrary properties, so I continue to maintain it's not relevant to their expectations for storage.<br>
<br>I don't care all that much. But since it's convenience with some use, and we've already implemented it and so has IE, I think we'd want a pretty strong argument to remove it.<br><br>Rob<br>-- <br>"He was pierced for our transgressions, he was crushed for our iniquities; the punishment that brought us peace was upon him, and by his wounds we are healed. We all, like sheep, have gone astray, each of us has turned to his own way; and the LORD has laid on him the iniquity of us all." [Isaiah 53:5-6]