Ticket #1203 (closed defect: wontfix)
RE: Ticket #1196 - Ampersands in PRE tags - Improper assumption about HTML Rendering
| Reported by: | guest | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.96 |
| Component: | HTML Output | Version: | trunk |
| Severity: | normal | Keywords: | |
| Cc: |
Description
I am posting to encourage the developers to reconsider the entitization of ampersands contained within PRE tags. I posted a previous ticket (#1196) which was closed, but I believe this closure was based on improper assumptions. First of all, ampersands within PRE tags are directly rendered, meaning that any entitization will be shown printed on screen as it is written in the source, which will completely mess up any display of code snippets. It does not make sense to insist that entitization is correct in this case, as it undermines the purpose of the PRE tag, which instructs the browser to do its best to display special characters without using html entities.
This is not a behavior of Drupal when using Xinha as an embedded editor, as the transformation of ampersands can be seen in realtime as the Xinha javascript executes and draws the rich-text editor and modifies the pre-existing text area. This is observable also within the Xinha demo hosted on this (xinha.webfactional.com) website.
