Does phonegap and cordova supports ARIA roles?

319 views Asked by At

I want use ARIA roles on phonegap build, I tested and the code below didn't worked (the code is an example).

<div class="form-group">
    <label for="email">Email</label>
    <input type="text" role="textbox" id="email" class="form-control input-lg" placeholder="E-mail" />
</div>

<div class="form-group">
    <label for="phone">Phone</label>
    <input type="tel" role="textbox" id="phone" class="form-control input-lg" placeholder="Phone" />
</div>

<div class="form-group">
    <label for="address">Address</label>
    <input type="text" role="textbox" id="address" class="form-control input-lg" placeholder="Address" />
</div>
1

There are 1 answers

2
Dawson Loudon On BEST ANSWER

Phonegap does not control this. This question is, does the native webview version for the platform(s) your app supports have control for this?

You can check here: http://caniuse.com/#feat=wai-aria

Phonegap makes use of native platform webviews for applications so functionality is limited to the supports of the native webviews versions you will support for your app. Because webviews are part of an SDK they are usually not the most current version and regularly do not match the support of the browser loaded on the device.