[Webkit-unassigned] [Bug 20787] New: Inablity to insert text/html with script into innerHTML or innerText elements
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Sep 11 11:57:52 PDT 2008
https://bugs.webkit.org/show_bug.cgi?id=20787
Summary: Inablity to insert text/html with script into innerHTML
or innerText elements
Product: WebKit
Version: 420+
Platform: PC
OS/Version: Windows XP
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: JavaScriptCore
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: nls at spaciouspresent.com
I have been successfully using the recommended procedures for inserting content
at the cursor into appropriate elements (e.g., <DIV>) with IE for years. I also
have code that works with Navigator. But recently I downloaded the new Chrome
implementation of WebKit and ran into problems.
Neither the IE nor Navigator code worked. After researching the problem, I
decided to try using execCommand("Paste") as an alternative.
queryCommandEnabled reported that it was not supported, which appeared to be
true. But it also said that execCommand("Copy") was not supported, yet it did
in fact work. I found the same in consistency with some other commands.
Next I tried the InsertParagraph command, which worked to some extent. The
problem was that the optional id parameter was totally ignored, and instead of
inserting a set of paragraph tags, it inserted the following (without an id):
<div>
<br>
</div>
With no id, it would be very difficult to use innerHTML to set the contents of
the newly created block.
This was a last resort, because what I really wanted was an inline insertion,
not a block-level one. But it would have solved my immediate needs at least.
I consider this a very serious bug inasmuch as it all but disallows editable
HTML of any kind of sophistication. Oddly enough I was able to paste in other
far less important elements (e.g., InsertUnorderedList) successfuly. It seems
to me that the whole area of scriptable DOM manipulation needs to be revisited,
particularly the editing functions. They are critical to any serious AJAX
application at the very least.
Also, it should be noted that the version number I specified in the report may
not be correct as I don't know which release Google used in Chrome, and it's
not on your pull-down list.
Thanks.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list