Ticket #275 (closed enhancement: fixed)
Formats HTML source in IE
| Reported by: | mharrisonline | Owned by: | gogo |
|---|---|---|---|
| Priority: | low | Milestone: | Version 1.0 |
| Component: | Xinha Core | Version: | |
| Severity: | normal | Keywords: | |
| Cc: |
Description (last modified by niko) (diff)
Currently when the source is viewed in IE there is no formatting. This modification is used in the Jones Standard implementation of Xinha and allows IE to format HTML to make it easier to read.
From on the nightly build for May 17, 2005:
Lines 4520 to 4533:
if (/^(_moz)?$/.test(value)) {
// Mozilla reports some special tags
// here; we don't need them.
continue;
}
html += " " + name + '="' + HTMLArea.htmlEncode(value) + '"';
}
if (html != "") {
html += closed ? " />" : ">";
}
}
for (i = root.firstChild; i; i = i.nextSibling) {
html += HTMLArea.getHTMLWrapper(i, true, editor);
}
Would change to:
if (/^(_moz)?$/.test(value)) {
// Mozilla reports some special tags
// here; we don't need them.
continue;
}
html += " " + name + '="' + HTMLArea.htmlEncode(value) + '"';
}
if (html != "") {
html += closed ? " />" : ">";
}
// htmlarea formats HTML in IE, formatting gets lost otherwise, code doesn't work in Mozilla though
if (!HTMLArea.is_ie) { html += "";} else {html += "\r";}
// end of modification
}
for (i = root.firstChild; i; i = i.nextSibling) {
html += HTMLArea.getHTMLWrapper(i, true, editor);
}
Change History
Note: See
TracTickets for help on using
tickets.
