Bug 207976
| Summary: | XMLSerializer should convert HTML entities to the correct code point | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Marcos Caceres <marcos> |
| Component: | DOM | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED CONFIGURATION CHANGED | ||
| Severity: | Normal | CC: | ahmad.saleem792, ap, bfulgham, cdumez, ddkilzer, rniwa, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari 13 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Marcos Caceres
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"> </p>
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/59619312>
Ahmad Saleem
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!