[Webkit-unassigned] [Bug 17403] WebKit Creates Invalid Xhtml Links with Ajax
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Mar 18 14:44:49 PDT 2008
http://bugs.webkit.org/show_bug.cgi?id=17403
------- Comment #9 from cfis at savagexi.com 2008-03-18 14:44 PDT -------
Alexey,
Unfortunately DOMParser does *not* work.
To flesh out your example:
var parser = new DOMParser()
var doc = parser.parseFromString(html.stripScripts(), 'application/xhtml+xml');
var node = document.importNode(doc.documentElement, true)
element.innerHTML = ' ' // the space is needed...WebKit bug
element.appendChild(node)
All these operations work. But what you end up with is inserted XHTML that
has:
* Broken images - the <img> tags are correct but no image shows up
* Broken links - Safari renders the links (they have a blue underline), but if
you mouse over them no links show up in the status bar and if you click on them
they do not work
After doing the appendChild, alert(element.innerHTML) shows the correct XHTML
is inserted. But the inserted XHTML simply doesn't work...
So this solution is a no-go (and seems to reveal a bunch more bugs).
--
Configure bugmail: http://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