Last Comment Bug 445511 - Generally don't expose text attributes when they use the default value
: Generally don't expose text attributes when they use the default value
Status: NEW
: access
Product: Core
Classification: Components
Component: Disability Access APIs (show other bugs)
: unspecified
: All All
-- normal (vote)
: ---
Assigned To: alexander :surkov
: alexander :surkov
Depends on:
Blocks: textattra11y
  Show dependency treegraph
Reported: 2008-07-16 07:48 PDT by Aaron Leventhal
Modified: 2011-11-01 14:32 PDT (History)
3 users (show)
See Also:
Crash Signature:
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Description User image Aaron Leventhal 2008-07-16 07:48:37 PDT
Many attributes have a default value. After speaking with AT vendors I found that they preferred to get text attributes when they really signify something. Currently we will expose the same attribute over and over, even though it's equal to the normal value. For example, there is not really much sense in exposing "font-style: normal" on every single node.

I believe we currently do allow ourselves to repeat attributes on descendant accessibles where the value did not change. However, if the value is equal to the default for that attribute, we can skip it.
Comment 1 User image alexander :surkov 2008-07-22 07:03:11 PDT
Talking in terms of Gecko API then you mean getDefaultTextAttributes method, right? So, Aaron, what is default value?
Comment 2 User image Aaron Leventhal 2008-07-23 01:56:09 PDT
No. getDefaultTextAttributes() describes the attributes that apply to the entire node.

I'm talking about default attribute *values*. For many attributes in the tables at, there is a default value. We never need to expose a text attribute (or even the defaultTextAttributes) when the value is equal to the default value for that attribute.

In other words, we should never have to see font-style = normal or writing-mode = lr, etc. anywhere.
Comment 3 User image David Bolter [:davidb] 2011-11-01 14:29:36 PDT
Alexander is this likely to be a wont fix?
Comment 4 User image alexander :surkov 2011-11-01 14:32:03 PDT
(In reply to David Bolter [:davidb] from comment #3)
> Alexander is this likely to be a wont fix?

doesn't sound so, depends what AT and specs wants.

Note You need to log in before you can comment on or make changes to this bug.