aria-label seems to copy the whole cell html() vs. the text() only?
aria-label seems to copy the whole cell html() vs. the text() only?
frequent
Posts: 23Questions: 0Answers: 0
I'm just sifting through my table code and noticed the following in all of my table header cells:
[code]
[/code]
Quite the aria-labels... :-) Not sure what's causing this, because I'm using a lot of Jquery Mobile in the table, but I have not touched on aria-label, so maybe this is a bug. Without looking at the dataTables source code, maybe it should be text() instead of html() to determine the aria-label?
[code]
[/code]
Quite the aria-labels... :-) Not sure what's causing this, because I'm using a lot of Jquery Mobile in the table, but I have not touched on aria-label, so maybe this is a bug. Without looking at the dataTables source code, maybe it should be text() instead of html() to determine the aria-label?
This discussion has been closed.
Replies
I've just put a simple test case up here: http://live.datatables.net/ujeziw/edit#preview and as you can see the and tags are being removed before being used in the ARIA attribute. Having said that, it is just a very basic regex replace on a string (rather than pulling it in from the DOM with text()/html() every time), so there could be something going wrong there.
Allan