- All Implemented Interfaces:
Serializable,Comparable<BrowserVersionFeatures>,Constable
Constants of various features of each
BrowserVersion.- Author:
- Ahmed Ashour, Marc Guillemot, Sudhan Moghe, Ronald Brill, Frank Danek, Carsten Steul, Anton Demydenko
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIgnore target whenhrefis a javascript snippet.Screen colorDepth is 32 instead of 24.Background image is 'initial'.Background image is 'rgba(0, 0, 0, 0)'.Is display style 'block'.The default value of the display property for the 'noscript' tag is 'inline' instead of the default one.The default value of the display property for the 'rp' tag is 'none'.The default value of the display property for the 'rt' tag is always 'ruby-text'.The context menu MouseEvent has a detail of 1.Triggers the onfocus event when focusing the body on load.Scroll events are of type 'UIEvent'.Supports event type 'MutationEvent'.Form elements are able to refer to the for by using the form attribute.Form submit includes the Cache-Control: max-age=0 header.HTML parser supports the 'layer' tag.Should org.htmlunit.javascript.host.html.HTMLBaseFontElement#isEndTagForbidden().HtmlCollection.namedItem searches by id first./**document.getElementsByNamereturns an empty list if called with the empty string.Removing the active element from the dom tree triggers the onblur event.Handle blank source like empty.Empty src attribute sets display to false.Is document.cretaeElement('image') an HTMLElement.Is document.cretaeElement('image') an HTMLUnknownElement.HTMLInputElement image type is not supported.HTMLInputElement month type is supported.HTMLInputElement week type is supported.For a stylesheet link report an error if the response type is not text/css.If the type is present for a link only use if type is text/css.Should org.htmlunit.javascript.host.html.HTMLTrackElement#isEndTagForbidden().Additionally support dates in format "d/M/yyyy".Dates format pattern 2.domain '.org' is handled as 'org'.Browser sends Sec-ch headers.Browser sends Priority headers.The anchor hostname setter ignores blank url's.The anchor pathname detects url's starting with one letter as file url's and replaces them with the file protocol.The anchor pathname prefixes file url's with '/'.The anchor protocol property converts drive letters to uppercase.An area element without a href attribute is focusable.Sorting an array using a user defined comperator accepts inconsistent iterators.AudioProcessingEvent ctor is callable.toDataURL for canvas returns the CHROME version of the PNG.ClientHeight for input is 17.ClientHeight for input is 18.ClientHeight for radio button and checkbox is 14.ClientHeight for rb is 17.ClientHeight for rt is 9.ClientHeight for ruby is 17.ClientWidth for text/password input is 157.ClientWidth for text/password input is 173.ClientWidth for radio button and checkbox is 14.item is enumerated before length property of CSSRuleList.Javascript document.evaluate() creates a new result object even if provided as param.The browser has selectionrangeCount.JavascriptError.stackTraceLimit.Javascript InputEvent reads the inputType property from data.Javascript KeyboardEvent reads the which property from data.form.dispatchEvent(e) submits the form if the event is of type 'submit'.Executes theonloadhandler, regardless of the element was already attached to the page.Getting the width and height of an image tag without a source returns 16x16; for invalid values returns 0.Getting the width and height of an image tag without a source returns 24x24; for invalid values returns 0x0.Indicates that innerText add a nl when reaching svg element.The value is ignored when the type of the week/month input is changed.FF accepts all chars.FF comma at end is not an integer.Indicates that Intl.v8BreakIterator is supported.For the 'about' protocol the location always returns an empty query.Reload sends a referrer header.Type property of menu returns the current (maybe invalid) value.Indicates if the String representation of a native function is without newline.Indicates if the String representation of a native function has a newline for empty parameter list.Navigator.doNotTrack returns unspecified if not set.Indicates that someObj.offsetParent returns null, it someObj has fixed style.element.outerHTML removes all children from detached node.Indicates that theObject.getOwnPropertyDescriptor.getcontains name.script tags created from js as child of templates is processed if added to the dom.Indicates that select.options.remove ignores the call if index is too large.Javascript selectorText property returns selectors in lower case.Whether to add to the storage even preserved words.window.getComputedStyle works with pseudo selectors without colon in front.Javascript InstallTrigger property set to null.Difference of window.outer/inner height is 138.Difference of window.outer/inner height is 147.Difference of window.outer/inner height is 94.Window.getSelection returns null, if the window is not visible.XSLTProcessor.transformToDocumentsupports output indent attribute.With special keys [in .type(int)], should we trigger onkeypress event or not.Indicates that the Browser handles async and sync network errors the same way.XMLHttpRequest triggers the load events also if the abort was signaled.If state unsent the response text is empty even if the response type is wrong.Indicates if the XMLHttpRequest.send() method will throw if aborted. -
Method Summary
Modifier and TypeMethodDescriptionstatic BrowserVersionFeaturesReturns the enum constant of this class with the specified name.static BrowserVersionFeatures[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ANCHOR_SEND_PING_REQUEST
Ignore target whenhrefis a javascript snippet. -
COLOR_DEPHT_32
Screen colorDepth is 32 instead of 24. -
CSS_BACKGROUND_INITIAL
Background image is 'initial'. -
CSS_BACKGROUND_RGBA
Background image is 'rgba(0, 0, 0, 0)'. -
CSS_DISPLAY_BLOCK
Is display style 'block'. -
CSS_NOSCRIPT_DISPLAY_INLINE
The default value of the display property for the 'noscript' tag is 'inline' instead of the default one. -
CSS_RP_DISPLAY_NONE
The default value of the display property for the 'rp' tag is 'none'. -
CSS_RT_DISPLAY_RUBY_TEXT_ALWAYS
The default value of the display property for the 'rt' tag is always 'ruby-text'. -
EVENT_CONTEXT_MENU_HAS_DETAIL_1
The context menu MouseEvent has a detail of 1. -
EVENT_FOCUS_ON_LOAD
Triggers the onfocus event when focusing the body on load. -
EVENT_SCROLL_UIEVENT
Scroll events are of type 'UIEvent'. -
EVENT_TYPE_MUTATIONEVENT
Supports event type 'MutationEvent'. -
FORM_IGNORE_REL_NOREFERRER
Form elements are able to refer to the for by using the form attribute. -
FORM_SUBMISSION_HEADER_CACHE_CONTROL_MAX_AGE
Form submit includes the Cache-Control: max-age=0 header. -
HTMLBASEFONT_END_TAG_FORBIDDEN
Should org.htmlunit.javascript.host.html.HTMLBaseFontElement#isEndTagForbidden(). -
HTMLCOLLECTION_NAMED_ITEM_ID_FIRST
HtmlCollection.namedItem searches by id first. -
HTMLDOCUMENT_ELEMENTS_BY_NAME_EMPTY
/**document.getElementsByNamereturns an empty list if called with the empty string. -
HTMLELEMENT_REMOVE_ACTIVE_TRIGGERS_BLUR_EVENT
Removing the active element from the dom tree triggers the onblur event. -
HTMLIMAGE_BLANK_SRC_AS_EMPTY
Handle blank source like empty. -
HTMLIMAGE_EMPTY_SRC_DISPLAY_FALSE
Empty src attribute sets display to false. -
HTMLIMAGE_HTMLELEMENT
Is document.cretaeElement('image') an HTMLElement. -
HTMLIMAGE_HTMLUNKNOWNELEMENT
Is document.cretaeElement('image') an HTMLUnknownElement. -
HTMLINPUT_TYPE_IMAGE_IGNORES_CUSTOM_VALIDITY
HTMLInputElement image type is not supported. -
HTMLINPUT_TYPE_MONTH_SUPPORTED
HTMLInputElement month type is supported. -
HTMLINPUT_TYPE_WEEK_SUPPORTED
HTMLInputElement week type is supported. -
HTMLLINK_CHECK_RESPONSE_TYPE_FOR_STYLESHEET
For a stylesheet link report an error if the response type is not text/css. -
HTMLLINK_CHECK_TYPE_FOR_STYLESHEET
If the type is present for a link only use if type is text/css. -
HTMLTRACK_END_TAG_FORBIDDEN
Should org.htmlunit.javascript.host.html.HTMLTrackElement#isEndTagForbidden(). -
HTML_LAYER_TAG
HTML parser supports the 'layer' tag. -
HTTP_COOKIE_EXTENDED_DATE_PATTERNS_1
Additionally support dates in format "d/M/yyyy". -
HTTP_COOKIE_EXTENDED_DATE_PATTERNS_2
Dates format pattern 2. -
HTTP_COOKIE_REMOVE_DOT_FROM_ROOT_DOMAINS
domain '.org' is handled as 'org'. -
HTTP_HEADER_CH_UA
Browser sends Sec-ch headers. -
HTTP_HEADER_PRIORITY
Browser sends Priority headers. -
JS_ANCHOR_HOSTNAME_IGNORE_BLANK
The anchor hostname setter ignores blank url's. -
JS_ANCHOR_PATHNAME_DETECT_WIN_DRIVES_URL_REPLACE
The anchor pathname detects url's starting with one letter as file url's and replaces them with the file protocol. -
JS_ANCHOR_PATHNAME_PREFIX_WIN_DRIVES_URL
The anchor pathname prefixes file url's with '/'. -
JS_ANCHOR_PROTOCOL_COLON_UPPER_CASE_DRIVE_LETTERS
The anchor protocol property converts drive letters to uppercase. -
JS_AREA_WITHOUT_HREF_FOCUSABLE
An area element without a href attribute is focusable. -
JS_ARRAY_SORT_ACCEPTS_INCONSISTENT_COMPERATOR
Sorting an array using a user defined comperator accepts inconsistent iterators. -
JS_AUDIO_PROCESSING_EVENT_CTOR
AudioProcessingEvent ctor is callable. -
JS_CANVAS_DATA_URL_CHROME_PNG
toDataURL for canvas returns the CHROME version of the PNG. -
JS_CLIENTHEIGHT_INPUT_17
ClientHeight for input is 17. -
JS_CLIENTHEIGHT_INPUT_18
ClientHeight for input is 18. -
JS_CLIENTHEIGHT_RADIO_CHECKBOX_14
ClientHeight for radio button and checkbox is 14. -
JS_CLIENTHEIGHT_RB_17
ClientHeight for rb is 17. -
JS_CLIENTHEIGHT_RT_9
ClientHeight for rt is 9. -
JS_CLIENTHEIGHT_RUBY_17
ClientHeight for ruby is 17. -
JS_CLIENTWIDTH_INPUT_TEXT_157
ClientWidth for text/password input is 157. -
JS_CLIENTWIDTH_INPUT_TEXT_173
ClientWidth for text/password input is 173. -
JS_CLIENTWIDTH_RADIO_CHECKBOX_14
ClientWidth for radio button and checkbox is 14. -
JS_CSSRULELIST_ENUM_ITEM_LENGTH
item is enumerated before length property of CSSRuleList. -
JS_DOCUMENT_EVALUATE_RECREATES_RESULT
Javascript document.evaluate() creates a new result object even if provided as param. -
JS_DOCUMENT_SELECTION_RANGE_COUNT
The browser has selectionrangeCount. -
JS_ERROR_STACK_TRACE_LIMIT
JavascriptError.stackTraceLimit. -
JS_EVENT_INPUT_CTOR_INPUTTYPE
Javascript InputEvent reads the inputType property from data. -
JS_EVENT_KEYBOARD_CTOR_WHICH
Javascript KeyboardEvent reads the which property from data. -
JS_FORM_DISPATCHEVENT_SUBMITS
form.dispatchEvent(e) submits the form if the event is of type 'submit'. -
JS_IFRAME_ALWAYS_EXECUTE_ONLOAD
Executes theonloadhandler, regardless of the element was already attached to the page. -
JS_IMAGE_WIDTH_HEIGHT_RETURNS_16x16_0x0
Getting the width and height of an image tag without a source returns 16x16; for invalid values returns 0. -
JS_IMAGE_WIDTH_HEIGHT_RETURNS_24x24_0x0
Getting the width and height of an image tag without a source returns 24x24; for invalid values returns 0x0. -
JS_INNER_TEXT_SVG_NL
Indicates that innerText add a nl when reaching svg element. -
JS_INPUT_CHANGE_TYPE_DROPS_VALUE_WEEK_MONTH
The value is ignored when the type of the week/month input is changed. -
JS_INPUT_NUMBER_ACCEPT_ALL
FF accepts all chars. -
JS_INPUT_NUMBER_DOT_AT_END_IS_DOUBLE
FF comma at end is not an integer. -
JS_INTL_V8_BREAK_ITERATOR
Indicates that Intl.v8BreakIterator is supported. -
JS_LOCATION_IGNORE_QUERY_FOR_ABOUT_PROTOCOL
For the 'about' protocol the location always returns an empty query. -
JS_LOCATION_RELOAD_REFERRER
Reload sends a referrer header. -
JS_MENU_TYPE_PASS
Type property of menu returns the current (maybe invalid) value. -
JS_NATIVE_FUNCTION_TOSTRING_COMPACT
Indicates if the String representation of a native function is without newline. -
JS_NATIVE_FUNCTION_TOSTRING_NL
Indicates if the String representation of a native function has a newline for empty parameter list. -
JS_NAVIGATOR_DO_NOT_TRACK_UNSPECIFIED
Navigator.doNotTrack returns unspecified if not set. -
JS_OFFSET_PARENT_NULL_IF_FIXED
Indicates that someObj.offsetParent returns null, it someObj has fixed style. -
JS_OUTER_HTML_THROWS_FOR_DETACHED
element.outerHTML removes all children from detached node. -
JS_PROPERTY_DESCRIPTOR_NAME
Indicates that theObject.getOwnPropertyDescriptor.getcontains name. -
JS_SCRIPT_IN_TEMPLATE_EXECUTED_ON_ATTACH
script tags created from js as child of templates is processed if added to the dom. -
JS_SELECTOR_TEXT_LOWERCASE
Javascript selectorText property returns selectors in lower case. -
JS_SELECT_REMOVE_IGNORE_IF_INDEX_OUTSIDE
Indicates that select.options.remove ignores the call if index is too large. -
JS_STORAGE_PRESERVED_INCLUDED
Whether to add to the storage even preserved words. -
JS_WINDOW_COMPUTED_STYLE_PSEUDO_ACCEPT_WITHOUT_COLON
window.getComputedStyle works with pseudo selectors without colon in front. -
JS_WINDOW_INSTALL_TRIGGER_NULL
Javascript InstallTrigger property set to null. -
JS_WINDOW_OUTER_INNER_HEIGHT_DIFF_138
Difference of window.outer/inner height is 138. -
JS_WINDOW_OUTER_INNER_HEIGHT_DIFF_147
Difference of window.outer/inner height is 147. -
JS_WINDOW_OUTER_INNER_HEIGHT_DIFF_94
Difference of window.outer/inner height is 94. -
JS_WINDOW_SELECTION_NULL_IF_INVISIBLE
Window.getSelection returns null, if the window is not visible. -
JS_XSLT_TRANSFORM_INDENT
XSLTProcessor.transformToDocumentsupports output indent attribute. -
KEYBOARD_EVENT_SPECIAL_KEYPRESS
With special keys [in .type(int)], should we trigger onkeypress event or not. -
XHR_HANDLE_SYNC_NETWORK_ERRORS
Indicates that the Browser handles async and sync network errors the same way. -
XHR_LOAD_ALWAYS_AFTER_DONE
XMLHttpRequest triggers the load events also if the abort was signaled. -
XHR_RESPONSE_TEXT_EMPTY_UNSENT
If state unsent the response text is empty even if the response type is wrong. -
XHR_SEND_NETWORK_ERROR_IF_ABORTED
Indicates if the XMLHttpRequest.send() method will throw if aborted.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-