[Webkit-unassigned] [Bug 19894] Document.createTextNode does not interpret HTML entities (eg, … )

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jul 4 19:55:30 PDT 2008


https://bugs.webkit.org/show_bug.cgi?id=19894


mrowe at apple.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID
            Summary|Html codes (eg …)    |Document.createTextNode does
                   |added with javascript not   |not interpret HTML entities
                   |interpreted                 |(eg, …)




------- Comment #2 from mrowe at apple.com  2008-07-04 19:55 PDT -------
createTextNode is not expected to interpret entities.  Entities are a function
of the HTML and XML serializations of the DOM, not of the DOM itself.  You can
insert non-ASCII characters by passing a string to createTextNode that contains
the required Unicode characters.  If you need to insert an entity reference
then the DOM way of doing that would be to use Document.createEntityReference.

Note that in my testing, WebKit behaves identically to Firefox 3 on this
matter.


-- 
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