Closed Bug 613591 Opened 15 years ago Closed 10 years ago

mochitest test strings with embedded characters for nsIAccessibleText

Categories

(Core :: Disability Access APIs, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: fherrera, Unassigned)

Details

(Whiteboard: [auto-closed:inactivity])

We should add test for text with embedded characters. Proposed tests: 1.- <p>hello<img>hello</p> 2.- <div id="content"> <p>hello this is p1</p> This is anon text<br/>new line <p>this is p2</p> </div> 3.- <div id="list"> This is a list: <ul><li>element 1</li><li>element 2</li>some random text inside the list<li>element 3</li></ul> that was a list </div> Anything else?
(In reply to comment #0) > 1.- > <p>hello<img>hello</p> good, inlines > > 2.- > <div id="content"> > <p>hello this is p1</p> > This is anon text<br/>new line > <p>this is p2</p> blocks and br and result depends on size of div what's cool and tricky. > <ul><li>element 1</li><li>element 2</li>some random text inside the > list<li>element 3</li></ul> > that was a list very good, bullets perhaps we should have test for CSS generated content i'm wondering how we're going to deal with absolute positioned content that placed inside of DOM of normal flow. Btw, how are you going to treat embedded character as the world or as part of the word. Does it depend on whether embedded object has block frame?
(In reply to comment #1) > > perhaps we should have test for CSS generated content Something like this: <head> <style type="text/css"> .change_block:after { content: "* block *"; display: block; text-align: center; } .change_inline:after { content: "* inline *"; display: inline; text-align: center; } </style> </head> <body> <div id="container" class="change_block">This is text inside the container</div> <div id="container" class="change_inline">This is text inside the container</div> however here I don't see the generated content at change_block div as a new block frame in the a11y hierarchy and I guess we should do it that way. > i'm wondering how we're going to deal with absolute positioned content that > placed inside of DOM of normal flow. Something like this?: <div id="container"> <div id="content1">Regular content</div> <div id="footer" style="position: absolute; bottom: 0;">Absoluted positioned content</div> <div id="content2">Regular content 2</div> </div> From the getText related functions, container element would see only 3 embedded chars. I don't see any way where text in the same element can be positioned in different placed. > Btw, how are you going to treat embedded character as the world or as part of > the word. I think they should be outside the word (being breaks). > Does it depend on whether embedded object has block frame? I don't understand it.
(In reply to comment #2) > (In reply to comment #1) > > > > > perhaps we should have test for CSS generated content > > Something like this: crazy but perhaps ok > however here I don't see the generated content at change_block div as a new > block frame in the a11y hierarchy and I guess we should do it that way. if you see it visually then file a bug please > > i'm wondering how we're going to deal with absolute positioned content that > > placed inside of DOM of normal flow. > > Something like this?: yep. > From the getText related functions, container element would see only 3 embedded > chars. I don't see any way where text in the same element can be positioned in > different placed. actually I wondered if we should return them from getText because they should be out of navigation block for normal flow. But perhaps this is ok since I don't see a way how to expose them otherwise. > > Btw, how are you going to treat embedded character as the world or as part of > > the word. > > I think they should be outside the word (being breaks). Could you check it with AT vendors please? > > Does it depend on whether embedded object has block frame? > > I don't understand it. I meant perhaps embedded obj treatment should depend on their visuals like <div>text<a>link</a>text</div> - embedded object for inline a <div>text<p>paragraph</p>text</div> - embedded object for block p but if we're going to treat all of them as breaks then it's ok (though we should keep in mind these cases for line boundaries).
AUTO-CLOSED. This bug untouched for over 2000 days. Please reopen if you can confirm the bug and help it progress.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → INCOMPLETE
Whiteboard: [auto-closed:inactivity]
You need to log in before you can comment on or make changes to this bug.