[Webkit-unassigned] [Bug 25893] createElement should support passing markup instead of just element name, e.g. document.createElement("<select readonly>")

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Aug 5 10:06:07 PDT 2022


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

Ahmad Saleem <zlip.792 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |zlip.792 at gmail.com
         Resolution|---                         |CONFIGURATION CHANGED

--- Comment #10 from Ahmad Saleem <zlip.792 at gmail.com> ---
The test case from Mozilla Bug mentioned in Comment 07 behaves same across all browsers:

Link - http://software.hixie.ch/utilities/js/live-dom-viewer/?%3Cscript%3Ew%28document.createElement%28%22%3Cx%3E%22%29%29%3C%2Fscript%3E

** Safari 15.6 on macOS 12.5 **

error: InvalidCharacterError: The string contains invalid characters. on line 1
rendering mode: BackCompat
document has no title

** Firefox Nightly 105 **

error: InvalidCharacterError: String contains an invalid character on line 1

rendering mode: BackCompat

document has no title

** Chrome Canary 106 **

error: Uncaught InvalidCharacterError: Failed to execute 'createElement' on 'Document': The tag name provided ('<x>') is not a valid name. on line 1
rendering mode: BackCompat
document has no title

____

Since all browsers are now matching with each other, I am going to mark this as "RESOLVED CONFIGURATION CHANGED". Please reopen, if I have mark it as wrong. Thanks!

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220805/723e1161/attachment.htm>


More information about the webkit-unassigned mailing list