Community
Participate
Working Groups
RAP currently does not write id attributes into the HTML document. The ARIA accessibility framework, for example, heavily relies on element IDs to express relationships between different widget roles. Enabling RAP to write widget IDs directly in the HTML document will help to support ARIA. There should be a way to enable or disable the rendering of element IDs manually. By default, this feature should be disabled.
Created attachment 208627 [details] introduces support for optional rendering of html ids for widgets. plus small refractoring of ProtocolTest.js
With this patch, setting the field qx.ui.core.Widget._renderHtmlIds to true results in all widgets ids to be written as id attributes to the DOM. We may think about a better client API... Applied patch to CVS HEAD.
@Tim: Should we rather use qxsettings or qxvariants instead of the field qx.ui.core.Widget._renderHtmlIds to decide if ids should be written?
A variant would be good if it would be set before the Widget.js is parsed, but since i cant see that happening, its ok the way it is.
Ok, then let's keep it as it is for now. This client-side mechanism is now also used when WidgetUtil.ENABLE_UI_TESTS is set as a system property. Currently it's rendered as an additional Display property "enableUiTests". Not quite happy with this though.