goog.dom.BrowserFeature
Properties
CAN_ADD_NAME_OR_TYPE_ATTRIBUTES → boolean
boolean
Whether attributes 'name' and 'type' can be added to an element after it's created. False in Internet Explorer prior to version 9.
CAN_USE_CHILDREN_ATTRIBUTE → boolean
boolean
Whether we can use element.children to access an element's Element children. Available since Gecko 1.9.1, IE 9. (IE<9 also includes comment nodes in the collection.)
CAN_USE_INNER_TEXT → boolean
boolean
Opera, Safari 3, and Internet Explorer 9 all support innerText but they include text nodes in script and style tags. Not document-mode-dependent.
CAN_USE_PARENT_ELEMENT_PROPERTY → boolean
boolean
MSIE, Opera, and Safari>=4 support element.parentElement to access an element's parent if it is an Element.
INNER_HTML_NEEDS_SCOPED_ELEMENT → boolean
boolean
Whether NoScope elements need a scoped element written before them in innerHTML. MSDN: http://msdn.microsoft.com/en-us/library/ms533897(VS.85).aspx#1
OFFSCREEN_CANVAS_2D → boolean
boolean
Whether the browser supports OffscreenCanvas 2D context.
Compiler Constants
goog.dom.BrowserFeature.ASSUME_NO_OFFSCREEN_CANVAS → boolean
boolean
Whether we know at compile time that the browser doesn't support OffscreenCanvas.
goog.dom.BrowserFeature.ASSUME_OFFSCREEN_CANVAS → boolean
boolean
Whether we know at compile time that the browser supports all OffscreenCanvas contexts.