Re: Some way to change an element's name would be useful

Le 29 août 2011 à 14:57, Aryeh Gregor a écrit :
> In editing, it's common to want to change an element's name.  For
> instance, document.execCommand("formatblock", false, "h1") will change
> the current line's wrapper to an <h1>.  Unbolding <b id=foo> should
> produce <span id=foo>.

Does that also mean that if you feed a complete different markup, you could reassign a different document in the browser? Could it be the equivalent of an XSLT transform at the top of the document?

Karl Dubost -
Developer Relations & Tools, Opera Software

Received on Tuesday, 30 August 2011 20:45:45 UTC