Skip to content

Commit

Permalink
add link to elements that need min width, see phetsims/john-travoltag…
Browse files Browse the repository at this point in the history
  • Loading branch information
jessegreenberg committed Mar 31, 2017
1 parent 2ee1b69 commit 6747c0f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/accessibility/Accessibility.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ define( function( require ) {
var OPTGROUP_TAG = 'OPTGROUP';
var DATALIST_TAG = 'DATALIST';
var OUTPUT_TAG = 'OUTPUT';
var A_TAG = 'A';

// these elements are typically associated with forms, and support certain attributes
var FORM_ELEMENTS = [ INPUT_TAG, BUTTON_TAG, TEXTAREA_TAG, SELECT_TAG, OPTGROUP_TAG, DATALIST_TAG, OUTPUT_TAG ];
Expand All @@ -86,7 +87,7 @@ define( function( require ) {
var ELEMENTS_WITHOUT_CLOSING_TAG = [ INPUT_TAG ];

// these elements require a minimum width to be visible in Safari
var ELEMENTS_REQUIRE_WIDTH = [ 'INPUT' ];
var ELEMENTS_REQUIRE_WIDTH = [ INPUT_TAG, A_TAG ];

// these custom attributes flag that the DOM element needs special handling during invalidation
var DATA_FLAG = 'data-';
Expand Down

0 comments on commit 6747c0f

Please sign in to comment.