[Webkit-unassigned] [Bug 25398] throw error on document.createElement("plaintext")

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Dec 28 07:38:44 PST 2009


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





--- Comment #3 from Elijah Grey (:sephr) <bugmail at eligrey.com>  2009-12-28 07:38:44 PST ---
(In reply to comment #2)

Well in an HTML (not XHTML) document, it should at least not have an ending tag
as there is no such thing as an ending tag for <plaintext/> as an ending tag
would just become part of the single text node that is inside <plaintext>
element. As you can see in the testcase, a plaintext element shows that the
ending tag is generated yet disregarded unless used directly or with innerHTML.
The act of inserting a plaintext element into a document should make any
elements after it only be inserted as text nodes of their outer HTML.

How about document.createElement("plaintext") doesn't throw an error but trying
to append it anywhere in the document throws a DOM hierarchy error?

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list