W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2011

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

From: Karl Dubost <karld@opera.com>
Date: Tue, 30 Aug 2011 16:44:58 -0400
Message-Id: <8AD8A59F-513F-42E5-B73D-450CA169CB47@opera.com>
Cc: W3C WebApps WG <public-webapps@w3.org>, Ryosuke Niwa <rniwa@webkit.org>, Ehsan Akhgari <ehsan@mozilla.com>
To: Aryeh Gregor <ayg@aryeh.name>

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 - http://dev.opera.com/
Developer Relations & Tools, Opera Software
Received on Tuesday, 30 August 2011 20:45:45 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:13:23 UTC