Skip to content

Commit

Permalink
HTMLElement -> Node for AccessibilityUtil, see phetsims/john-travolta…
Browse files Browse the repository at this point in the history
  • Loading branch information
jessegreenberg committed Mar 30, 2017
1 parent 3869ecb commit 2ee1b69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/accessibility/AccessibilityUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ define( function( require ) {
var linearDOM = [];
for ( var i = 0; i < children.length; i++ ) {

// searching for the HTML elemetn nodes
if ( children[ i ].nodeType === HTMLElement.ELEMENT_NODE ) {
// searching for the HTML element nodes (NOT Scenery nodes)
if ( children[ i ].nodeType === Node.ELEMENT_NODE ) {
linearDOM[ i ] = ( children[ i ] );
}
}
Expand Down

0 comments on commit 2ee1b69

Please sign in to comment.