Skip to content

Commit

Permalink
Bug 371250 - Accessibility of Orion editor/editing
Browse files Browse the repository at this point in the history
  • Loading branch information
Max Li committed Feb 14, 2012
1 parent 3e1f582 commit 02880e8
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3834,6 +3834,7 @@ define("orion/textview/textView", ['orion/textview/textModel', 'orion/textview/k
viewDiv.style.margin = "0px";
viewDiv.style.MozOutline = "none";
viewDiv.style.outline = "none";
viewDiv.setAttribute("role", "application");
body.appendChild(viewDiv);

var scrollDiv = frameDocument.createElement("DIV");
Expand Down Expand Up @@ -3898,6 +3899,8 @@ define("orion/textview/textView", ['orion/textview/textModel', 'orion/textview/k
if (!isPad) {
clientDiv.contentEditable = "true";
}
clientDiv.setAttribute("role", "textbox");
clientDiv.setAttribute("aria-multiline", "true");
var metrics = this._metrics = this._calculateMetrics();
if (isIE) {
body.style.lineHeight = (metrics.lineHeight - (metrics.lineTrim.top + metrics.lineTrim.bottom)) + "px";
Expand Down

0 comments on commit 02880e8

Please sign in to comment.