Bug 20128 - createEntityReference works, but entity not shown on screen when added to a p element
Summary: createEntityReference works, but entity not shown on screen when added to a p...
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Minor
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-22 03:00 PDT by François Lamboley
Modified: 2023-12-30 00:47 PST (History)
5 users (show)

See Also:


Attachments
test case (1.17 KB, application/xhtml+xml)
2008-07-22 03:01 PDT, François Lamboley
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description François Lamboley 2008-07-22 03:00:07 PDT
I created a p element in which I add a text node and an entity reference.
Then, I add the p element in a div already on the xhtml page.

The text node is drawn as expected, but the entity reference is not shown.
Comment 1 François Lamboley 2008-07-22 03:01:13 PDT
Created attachment 22424 [details]
test case
Comment 2 Lucas Forschler 2019-02-06 09:03:12 PST
Mass moving XML DOM bugs to the "DOM" Component.
Comment 3 Ahmad Saleem 2023-03-29 06:22:24 PDT
Chrome Canary 114 and Safari 16.4 does not change anything in the text while clicking 'blue' rectangle but Firefox Nightly 113 show this error:

XML Parsing Error: undefined entity
Location: https://bug-20128-attachments.webkit.org/attachment.cgi?id=22424
Line Number 36, Column 18:
			<p>wklsd hbfkq&sect;</p>
Comment 4 Ahmad Saleem 2023-03-29 06:23:12 PDT
(In reply to Ahmad Saleem from comment #3)
> Chrome Canary 114 and Safari 16.4 does not change anything in the text while
> clicking 'blue' rectangle but Firefox Nightly 113 show this error:
> 
> XML Parsing Error: undefined entity
> Location: https://bug-20128-attachments.webkit.org/attachment.cgi?id=22424
> Line Number 36, Column 18:
> 			<p>wklsd hbfkq&sect;</p>

Forgot to add - Safari show this in Console: TypeError: document.createEntityReference is not a function. (In 'document.createEntityReference('sect')', 'document.createEntityReference' is undefined)
Comment 5 Anne van Kesteren 2023-12-30 00:47:04 PST
This feature has been removed from the web.