For those of you on the bleeding edge, namely on the Firefox 3.1a1pre nightly builds, the Friday’s nightly build will include one big new feature in accessibility for 3.1: Text attributes and spell checking support!

This means that assistive technologies now have access to the attributes of any text run on a page via the IAccessibleHyperText::getAttributes or ATK/AT-SPI equivalent API calls.

For example, running today’s nightly build of Firefox 3.1a1pre on Windows, visiting my blog’s main page, bringing up Accessibility Probe, and navigating to the link below the Heading Level 1 that says “Marco’s Accessibility blog”, a call to IAccessibleHyperText::GetAttributes on the link accessible will get you this result:


getAttributes(1) = NULL

Not very fancy, huh?

Tomorrow’s build, however, will yield a completely different result:


getAttributes(1) = org.eclipse.actf.accservice.core.win32.ia2.IA2TextSegment[text=font-style:normal;language:en-US;text-align:center;font-size:40px;background-color:transparent;font-weight:bold;text-indent:0px;color:rgb(255, 255, 255);font-family:'Trebuchet MS','Lucida Grande',Verdana,Arial,Sans-Serif;text-underline-style:underlinesolid;,start=0,end=26]

So, not only do you get information about the font-family, style, color and backgroundcolor, you also get the language this text is in, the underline style, the font-weight etc.

Also when editing, and you misspell something, as soon as you hit spacebar and the red underline appears, the attributes of that word will change and will include “invalid:misspelling;”, indicating that this word is invalid in that it is misspelled. Of course, an according IA2/ATK event will be fired accordingly! Note that the denotation of this may change if the IAccessible2 and ATK groups decide on a different notation for misspellings. Right now, it follows the aria-invalid convention, and we hope that this will be accepted by the groups.

Over the next few weeks, we’ll fine-tune this feature to be a bit more performant and also iron out any last details that might come up.

But if you’re an assistive technology vendor and you’ve been waiting for us to finally expose these text attributes, now is the time to try them out and provide feedback.

Note that Thunderbird and other projects that will be moving to use the Gecko 1.9.1 platform will also get this feature. This means that inline spell checking notification can also be supported for those apps soon!

[Update]: This patch made it into Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1a1pre) Gecko/2008071803 Minefield/3.1a1pre just fine. So go take a peek!

Related Articles

15 thoughts on “Support for text attributes and spell checking is coming in Firefox 3.1!

  1. […] Parece que la versión 3.1 de Firefox no va a ser una actualización más. Además de cambiar la interfaz de pestañas, también permitirán que se puedan ver las propiedades de un texto simplemente dejando el cursor encima (fuente, tamaño, color, negrita, etc…) e incluso es capaz de decirnos el idioma en el que está escrito. Y relacionado con esto último, también nos ofrecerá la posibilidad de corregirnos los textos a medida que los vayamos escribiendo. Hay más información en el blog del creador. […]

  2. @Hermann, yes it has. We’re obviously tweaking it still. The 3.1a1 Shiretoko release doesn’t contain a proper background color calculation right now, for example, but the guts of it is there.

  3. […] Mozilla Firefox是一个自由的,开放源码的浏览器,适用于Windows, Linux å’Œ MacOS X平台,3.01已经发布. 它还有其它一些高级特征,如标签式浏览,可以禁止弹出式窗口.内置了钓鱼保护、改变标签浏览行为、能够重新打开以外关闭的标签、更好的支持网页订 阅的预览和订阅、拼写检查、支持JavaScript 1.7ç­‰. Firefox 3.1: Support for text attributes and spell checking Marco Zehe writes, “Friday’s nightly build will include one big new feature in accessibility for Firefox 3.1: Text attributes and spell checking support.” This means that assistive technologies will now be able to get information about the font-family, font-weight, underline style, style, color, and background color of text, and also the language that the text is in, among other things. Additionally, when editing, if a word is misspelled, that word will now include an “invalid:misspelling” attribute. These new features will be fine-tuned over the next few weeks, but the team is looking for feedback if you’re able to help. For more details, please see Marco’s weblog post. […]

  4. […] Firefox 3.1: Support for text attributes and spell checking Marco Zehe writes, “Friday’s nightly build will include one big new feature in accessibility for Firefox 3.1: Text attributes and spell checking support.” This means that assistive technologies will now be able to get information about the font-family, font-weight, underline style, style, color, and background color of text, and also the language that the text is in, among other things. Additionally, when editing, if a word is misspelled, that word will now include an “invalid:misspelling” attribute. These new features will be fine-tuned over the next few weeks, but the team is looking for feedback if you’re able to help. For more details, please see Marco’s weblog post. […]

  5. […] 火狐3.1 :支持文本属性和拼写检查 Marco Zehe写道, “周五每晚建设将包括一个大的新功能,可用于Firefox 3.1 :文字属性和拼写检查支持。 ”这就意味着,辅助技术将能够获取信息的font-family, font-weight, underline style,  color, 和字体背景色,也是语言文本的。此外,如果一个词是拼写错误,这个词现在将包括一个“无效:拼写错误”属性。这些新功能将在未来几个星期微调,希望 您能帮助反馈。如需详细资料,请参阅 Marco Zehe的博客。 […]

  6. […] Marco Zehe writes, “Friday’s nightly build will include one big new feature in accessibility for Firefox 3.1: Text attributes and spell checking support.” This means that assistive technologies will now be able to get information about the font-family, font-weight, underline style, style, color, and background color of text, and also the language that the text is in, among other things. Additionally, when editing, if a word is misspelled, that word will now include an “invalid:misspelling” attribute. These new features will be fine-tuned over the next few weeks, but the team is looking for feedback if you’re able to help. For more details, please see Marco’s weblog post. […]

Mentions

  • New accessibility features in Firefox 3.5 « The BAT Channel
  • New accessibility features in Firefox 3.5 « AccessTech News
  • New accessibility features in Firefox 3.5 « Marco’s accessibility blog
  • NVDA 0.6p3 released, quite some news for Mozilla users! « Marco’s accessibility blog
  • Mozilla Firefox 3.1 Beta 2 发布 | 丸子
  • Mozilla Firefox 3.1 Beta 2 发布 | 紧跟IT潮流
  • Mozilla Firefox 3.1 Beta 2 发布 | 丸子's blog
  • 拽拽资讯 » Mozilla Firefox 3.1 Beta 1 发布
  • Mozilla Firefox 3.1 Beta 1 | abrowser-浏览器在线
  • Mozilla Firefox 3.1 Beta 1 发布 » Web Annals 互联网资讯站
  • Rumah Tuhan Ki$isel Web $eysi » Better Accessibility Support in Firefox 3.1
  • No al IE6 » Blog Archive » Control ortográfico y atributos de texto en Firefox 3.1

Leave a Reply

Your email address will not be published. Required fields are marked *

To respond on your own website, enter the URL of your response which should contain a link to this post's permalink URL. Your response will then appear (possibly after moderation) on this page. Want to update or remove your response? Update or delete your post and re-enter your post's URL again. (Learn More)