The reason why I iterate in that way is that I want to support the vendor extension substrings automatically, instead of having to list the all possible prefixed combinations ("WEBGL_depth_texture" + "MOZ_WEBGL_depth_texture" and "WEBKIT_WEBGL_depth_texture" for example).