Opened 15 years ago
Closed 11 years ago
#14224 closed defect (bug) (worksforme)
Use NCR instead of HTML entity in feed autodiscovery links
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.0 |
Component: | Feeds | Keywords: | has-patch 2nd-opinion |
Focuses: | template | Cc: |
Description
Currently, » is used as the separator. This will break sites served with the internet media type "application/xhtml+xml". The equivalent numeric character reference » should be used instead.
Attachments (2)
Change History (11)
#3
@
15 years ago
In general we don't code for serving as application/xhtml+xml but rather as text/html
As far as entities are concerned the named entities are fine in XML as long as the parser used can cope with them:
#4
@
15 years ago
@westi:
The XHTML 1.x specification did adopt all entities from HTML 4 and place them in the DTDs. However, browsers and most XML processors currently do not load DTD (at least by default) and therefore the entity references cannot be loaded properly and fatal error occurs.
In addition, HTML 5 does not provide a DTD nor require browsers to load a DTD. The HTML/XHTML Compatibility Authoring Guidelines stated that no entity reference is used.
@nacin:
A XHTML document should be served as application/xhtml+xml. By doing so, SVG and MathML can be embedded to the XHTML document inline. Internet Explorer 9 has support to application/xhtml+xml.
Why does this break the page when serving as XHTML?
AFAIK XHTML supports the same named entities as HTML4 which would inclide
»'
.http://www.w3.org/TR/html401/sgml/entities.html
Changing this makes it less clear what it being done.