Bug 207976 - XMLSerializer should convert HTML entities to the correct code point
Summary: XMLSerializer should convert HTML entities to the correct code point
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: Safari 13
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-02-19 17:10 PST by Marcos Caceres
Modified: 2022-08-11 14:36 PDT (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marcos Caceres 2020-02-19 17:10:30 PST
Steps to reproduce:

Open https://codepen.io/SaschaNaz/pen/zYGKvOQ

Expected:
Serializing   should result in the equivalent of nbsp code point in the output. See Chrome and Firefox, which replace the   for the correct code point (otherwise, exported XML becomes invalid). 

Actual:

The serializer spits out from Safari:

<p xmlns="http://www.w3.org/1999/xhtml" id="nbsp">&nbsp;</p>
Comment 1 Radar WebKit Bug Importer 2020-02-19 22:25:21 PST
<rdar://problem/59619312>
Comment 2 Ahmad Saleem 2022-08-11 14:36:21 PDT
Lates results from all browsers:

*** Safari 15.6 on macOS 12.5 ***

<p xmlns="http://www.w3.org/1999/xhtml" id="nbsp"> </p>

*** Firefox Nightly 150 *** 

<p xmlns="http://www.w3.org/1999/xhtml" id="nbsp"> </p>

*** Chrome Canary 106 ***

<p xmlns="http://www.w3.org/1999/xhtml" id="nbsp"> </p>

_______

All browsers are rendering same so it is something fixed along the way, I am going to mark this as "RESOLVED CONFIGURATION CHANGED". Thanks!

Please reopen, if it is not believed to be fixed. Thanks!