Search completed in 1.90 seconds.
MerchantValidationEvent.validationURL - Web APIs
the merchant
validationevent property
validationurl is a read-only string value providing the url from which to fetch the payment handler-specific data needed to
validate the merchant.
... syntax
validationurl = merchant
validationevent.
validationurl; value a read-only usvstring giving the url from which to load payment handler specific data needed to complete the merchant verification process.
... see merchant
validation in payment processing concepts for more information on the merchant
validation process.
... specifications specification status comment payment request apithe definition of 'merchant
validationevent.
validationurl' in that specification.
Client-side form validation - Learn web development
this is called client-side form
validation, and helps ensure data submitted matches the requirements set forth in the various form controls.
... this article leads you through basic concepts and examples of client-side form
validation.
... objective: to understand what client-side form
validation is, why it's important, and how to apply various techniques to implement it.
...And 113 more matches
Constraint validation - Developer guides
while marking up the form itself is easy, checking whether each field has a
valid and coherent value is more difficult, and informing the user about the problem may become a headache.
... html5 introduced new mechanisms for forms: it added new semantic types for the <input> element and constraint
validation to ease the work of checking the form content on the client side.
... basic, usual constraints can be checked, without the need for javascript, by setting new attributes; more complex constraints can be tested using the constraint
validation api.
...And 37 more matches
Constraint validation API - Web APIs
the constraint
validation api enables checking values that users have entered into form controls, before submitting the values to the server.
... however, you may want to impose more complex constraints, or to provide clearer reporting of
validation failures than the defaults.
... this can be done using the constraint
validation api.
...And 32 more matches
ValidityState - Web APIs
the
validitystate interface represents the
validity states that an element can be in, with respect to constraint
validation.
... together, they help explain why an element's value fails to
validate, if it's not
valid.
... properties for each of these boolean properties, a value of true indicates that the specified reason
validation may have failed is true, with the exception of the
valid property, which is true if the element's value obeys all constraints.
...And 14 more matches
WebGL2RenderingContext.invalidateSubFramebuffer() - Web APIs
the webgl2renderingcontext.in
validatesubframebuffer() method of the webgl 2 api in
validates portions of the contents of attachments in a framebuffer.
... syntax void gl.in
validatesubframebuffer(target, attachments, x, y, width, height); parameters target a glenum specifying the binding point (target).
... attachments an array of glenum specifying the attachment points to in
validate.
...And 10 more matches
:valid - CSS: Cascading Style Sheets
the :
valid css pseudo-class represents any <input> or other <form> element whose contents
validate successfully.
... this allows to easily make
valid fields adopt an appearance that helps the user confirm that their data is formatted properly.
... /* selects any
valid <input> */ input:
valid { background-color: powderblue; } this pseudo-class is useful for highlighting correct fields for the user.
...And 10 more matches
Validators - Firefox Developer Tools
this document lists different resources for developers to
validate web pages.
...tune-up wizard links back to devedge if you're writing new code that isn't
validating immediately, see the available standards-compliant authoring and development tools.
... firefox extensions for
validation quick reference sidebar tabs install devedge toolbox sidebars for quick access to web development references.
...And 8 more matches
PaymentRequest: merchantvalidation event - Web APIs
merchant
validation events are delivered by the payment request api to a paymentrequest object when a payment handler requires that the merchant requesting the purchase
validate itself as permitted to use the payment handler.
... see merchant
validation in payment processing concepts for details on how the merchant
validation process works.
... bubbles no cancelable no interface merchant
validationevent event handler property onmerchant
validation examples in this example, an event handler is established for the merchant
validation event.
...And 8 more matches
ValidityState.typeMismatch - Web APIs
the read-only typemismatch property of a
validitystate object indicates if the value of an <input>, after having been edited by the user, does not conform to the constraints set by the element's type attribute.
... the email input type expects one or more
valid email addresses, depending on whether the multiple attribute is present.
... a
valid email address includes an email prefix and a domain, with or without a top level domain.
...And 8 more matches
:-moz-ui-invalid - CSS: Cascading Style Sheets
the :-moz-ui-in
valid css pseudo-class represents any
validated form element whose value isn't
valid based on their
validation constraints, in certain circumstances.
... this pseudo-class is applied according to the following rules: if the control does not have focus, and the value is in
valid, apply this pseudo-class.
... if the control has focus, and the value was
valid (including empty) when it gained focus, do not apply the pseudo-class.
...And 8 more matches
:invalid - CSS: Cascading Style Sheets
the :in
valid css pseudo-class represents any <input> or other <form> element whose contents fail to
validate.
... /* selects any in
valid <input> */ input:in
valid { background-color: pink; } this pseudo-class is useful for highlighting field errors for the user.
... syntax :in
valid examples this example presents a simple form that colors elements green when they
validate and red when they don't.
...And 8 more matches
Test your skills: Form validation - Learn web development
this aim of this skill test is to assess whether you've understood our client-side form
validation article.
... form
validation 1 in this task, we are providing you with a simple support query form, and we want you to add some
validation features to it: make all of the input fields mandatory to complete before the form can be submitted.
... change the type of the "email address" and "phone number" fields to make the browser apply some more specific
validation suitable for the data being asked for.
...And 7 more matches
Using the aria-invalid attribute - Accessibility
description this technique demonstrates how to use the aria-in
valid attribute.
... the aria-in
valid attribute is used to indicate that the value entered into an input field does not conform to the format expected by the application.this may include formats such as email addresses or telephone numbers.
... aria-in
valid can also be used to indicate that a required field has not been filled in.the attribute should be programmatically set as a result of a
validation process.
...And 7 more matches
HTMLInputElement: invalid event - Web APIs
the in
valid event fires when a submittable element has been checked for
validity and doesn't satisfy its constraints.
... bubbles no cancelable yes interface event event handler property globaleventhandlers.onin
valid this event can be useful for displaying a summary of the problems with a form on submission.
... when a form is submitted, in
valid events are fired at each form control that is in
valid.
...And 6 more matches
ValidityState.patternMismatch - Web APIs
the read-only patternmismatch property of a
validitystate object indicates if the value of an <input>, after having been edited by the user, does not conform to the constraints set by the element's pattern attribute.
... if the field supports the pattern attribute -- which means the <input> is of type text, tel, email, url, password, or search -- and the pattern value is set to a
valid regular expression, if the value don't doesn't conform to the constraints set by the pattern value, the patternmismatch property will be true.
...when true, the element matches the :in
valid css pseudo-classes.
...And 6 more matches
WebGL2RenderingContext.invalidateFramebuffer() - Web APIs
the webgl2renderingcontext.in
validateframebuffer() method of the webgl 2 api in
validates the contents of attachments in a framebuffer.
... syntax void gl.in
validateframebuffer(target, attachments); parameters target a glenum specifying the binding point (target).
... attachments an array of glenum specifying the attachment points to in
validate.
...And 6 more matches
MerchantValidationEvent.complete() - Web APIs
the merchant
validationevent method complete() takes merchant-specific information previously received from the
validationurl and uses it to
validate the merchant.
... all you have to do is call complete() from your handler for the merchant
validation event, passing in the data fetched from the
validationurl.
... syntax merchant
validationevent.complete(
validationdata); merchant
validationevent.complete(merchantsessionpromise); parameters
validationdata or merchantsessionpromise an object containing the data needed to complete the merchant
validation process, or a promise which resolves to the
validation data.
...And 5 more matches
MerchantValidationEvent - Web APIs
the merchant
validationevent interface of the the payment request api enables a merchant to verify themselves as allowed to use a particular payment handler.
... to learn more about merchant
validation, see merchant
validation in payment processing concepts.
... constructor merchant
validationevent() secure context creates a new merchant
validationevent object describing a merchant
validation event that will be sent to the payment handler to request that it
validate the merchant.
...And 5 more matches
WebAssembly.validate() - JavaScript
the webassembly.
validate() function
validates a given typed array of webassembly binary code, returning whether the bytes form a
valid wasm module (true) or not (false).
... syntax webassembly.
validate(buffersource); parameters buffersource a typed array or arraybuffer containing webassembly binary code to be
validated.
... return value a boolean that specifies whether buffersource is
valid wasm code (true) or not (false).
...And 5 more matches
NPN_InvalidateRect - Archive of obsolete content
« gecko plugin api reference « browser side plug-in api summary in
validates the specified portion of the plugin's drawing area, adding it to the region that needs to be redrawn when the plugin next repaints its contents.
... syntax #include <npapi.h> void npn_in
validaterect(npp instance, nprect *in
validrect); parameters the function has the following parameters: instance pointer to the plug-in instance to in
validate a portion of.
... in
validrect the area to in
validate, specified in a coordinate system that originates at the top left of the plug-in's content area.
...And 4 more matches
NPN_InvalidateRegion - Archive of obsolete content
« gecko plugin api reference « browser side plug-in api summary in
validates the specified drawing region prior to repainting or refreshing a windowless plug-in.
... syntax #include <npapi.h> void npn_in
validateregion(npp instance, npregion in
validregion); parameters the function has the following parameters: instance pointer to the current plug-in instance.
... in
validregion the area to in
validate, specified in a coordinate system that originates at the top left of the plug-in.
...And 4 more matches
GlobalEventHandlers.oninvalid - Web APIs
the onin
valid property of the globaleventhandlers mixin is an eventhandler that processes in
valid events.
... the in
valid event fires when a submittable element has been checked and doesn't satisfy its constraints.
... the
validity of submittable elements is checked before submitting their owner form, or after the check
validity() method of the element or its owner form is called.
...And 4 more matches
MerchantValidationEvent() - Web APIs
the merchant
validationevent() constructor creates a new merchant
validationevent object.
... you should not have to create these events yourself; instead, just handle the merchant
validation event.
... syntax merchant
validationevent = new merchant
validationevent(type, options); parameters type a domstring which must be merchant
validation, the only type of event which uses the merchant
validationevent interface.
...And 4 more matches
:-moz-ui-valid - CSS: Cascading Style Sheets
the :-moz-ui-
valid css pseudo-class represents any
validated form element whose value
validates correctly based on its
validation constraints.
... this pseudo-class is applied according to the following rules: if the control does not have focus, and the value is
valid, apply this pseudo-class.
... if the control has focus, and the value was
valid (including empty) when it gained focus, apply this pseudo-class.
...And 4 more matches
SyntaxError: invalid regular expression flag "x" - JavaScript
the javascript exception "in
valid regular expression flag" occurs when the flags, defined after the second slash in regular expression literal, are not one of g, i, m, s, u, or y.
... message syntaxerror: syntax error in regular expression (edge) syntaxerror: in
valid regular expression flag "x" (firefox) syntaxerror: in
valid regular expression flags (chrome) error type syntaxerror what went wrong?
... there are in
valid regular expression flags in the code.
...And 4 more matches
HTMLObjectElement.setCustomValidity - Web APIs
the setcustom
validity() method of the htmlobjectelement interface sets a custom
validity message for the element.
... syntax htmlobjectelement.setcustom
validity(message); parameters error the message to use for
validity errors.
...additionally you must call the report
validity method on the same element or nothing will happen.
...And 3 more matches
RangeError: invalid date - JavaScript
the javascript exception "in
valid date" occurs when a string leading to an in
valid date has been provided to date or date.parse().
... message rangeerror: in
valid date (edge) rangeerror: in
valid date (firefox) rangeerror: in
valid time value (chrome) rangeerror: provided date is not in
valid range (chrome) error type rangeerror what went wrong?
... a string leading to an in
valid date has been provided to date or date.parse().
...And 3 more matches
HTMLSelectElement.setCustomValidity() - Web APIs
the htmlselectelement.setcustom
validity() method sets the custom
validity message for the selection element to the specified message.
... use the empty string to indicate that the element does not have a custom
validity error.
... syntax selectelt.setcustom
validity(string); parameters string is the domstring containing the error message.
...And 2 more matches
PaymentRequest.onmerchantvalidation - Web APIs
the paymentrequest event handler onmerchant
validation is invoked when the merchant
validation is fired, indicating that the payment handler (e.g., apple pay) requires the merchant to
validate themselves.
... this is usually the first event to be fired, and the user won't be able to proceed with a payment until the merchant
validate themselves.
... syntax paymentrequest.onmerchant
validation = eventhandlerfunction; value an event handler function which is to be called whenever the merchant
validation event is fired at the paymentrequest, indicating that the payment handler requires the merchant to
validate themselves as allowed to use this payment handler.
...And 2 more matches
RTCPeerConnection.onidpvalidationerror - Web APIs
the rtcpeerconnection.onidp
validationerror event handler is a property containing the code to execute whent the idp
validationerror event, of type rtcidentityerrorevent, is received by this rtcpeerconnection.
... such an event is sent when the associated identity provider (idp) encounters an error while
validating an identity assertion.
...you should instead detect idp
validation errors by watching for the promise returned by rtcpeerconnection.peeridentity to be rejected.
...And 2 more matches
ValidityState.rangeOverflow - Web APIs
the read-only rangeoverflow property of a
validitystate object indicates if the value of an <input>, after having been edited by the user, does not conform to the constraints set by the element's max attribute.
...when true, the element matches the :in
valid and :out-of-range css pseudo-classes.
... specifications specification status comment html living standardthe definition of '
validitystate.rangeoverflow' in that specification.
...And 2 more matches
ValidityState.rangeUnderflow - Web APIs
the read-only rangeunderflow property of a
validitystate object indicates if the value of an <input>, after having been edited by the user, does not conform to the constraints set by the element's min attribute.
...when true, the element matches the :in
valid and :out-of-range css pseudo-classes.
... specifications specification status comment html living standardthe definition of '
validitystate.rangeunderflow' in that specification.
...And 2 more matches
ValidityState.stepMismatch - Web APIs
the read-only stepmismatch property of a
validitystate object indicates if the value of an <input>, after having been edited by the user, does not conform to the constraints set by the element's step attribute.
... if true, the element matches the :in
valid and :out-of-range css pseudo-classes.
... specifications specification status comment html living standardthe definition of '
validitystate.stepmismatch' in that specification.
...And 2 more matches
WebGLRenderingContext.validateProgram() - Web APIs
the webglrenderingcontext.
validateprogram() method of the webgl api
validates a webglprogram.
... syntax void gl.
validateprogram(program); parameters program a webglprogram to
validate.
... examples var program = gl.createprogram(); // attach pre-existing shaders gl.attachshader(program, vertexshader); gl.attachshader(program, fragmentshader); gl.linkprogram(program); gl.
validateprogram(program); if ( !gl.getprogramparameter( program, gl.link_status) ) { var info = gl.getprograminfolog(program); throw 'could not compile webgl program.
...And 2 more matches
XPathResult.invalidIteratorState - Web APIs
the read-only in
validiteratorstate property of the xpathresult interface signifies that the iterator has become in
valid.
... syntax var iteratorstate = result.in
validiteratorstate; return value a boolean value indicating whether the iterator has become in
valid.
... example the following example shows the use of the in
validiteratorstate property.
...And 2 more matches
TypeError: invalid assignment to const "x" - JavaScript
the javascript exception "in
valid assignment to const" occurs when it was attempted to alter a constant value.
... message typeerror: in
valid assignment to const "x" (firefox) typeerror: assignment to constant variable.
... examples in
valid redeclaration assigning a value to the same constant name in the same block-scope will throw.
...And 2 more matches
HTMLFormElement.reportValidity() - Web APIs
the htmlformelement.report
validity() method returns true if the element's child controls satisfy their
validation constraints.
... when false is returned, cancelable in
valid events are fired for each in
valid child and
validation problems are reported to the user.
... syntax htmlformelement.report
validity() return value boolean example document.forms['myform'].addeventlistener('submit', function() { document.forms['myform'].report
validity(); }, false); specifications specification status comment html living standardthe definition of 'htmlformelement.report
validity()' in that specification.
... living standard html 5.1the definition of 'htmlformelement.report
validity()' in that specification.
HTMLObjectElement.validationMessage - Web APIs
the
validationmessage read-only property of the htmlobjectelement interface returns a domstring representing a localized message that describes the
validation constraints that the control does not satisfy (if any).
... this is the empty string if the control is not a candidate for constraint
validation (will
validate is false), or it satisfies its constraints.
... syntax var string = htmlobjectelement.
validationmessage; value a domstring.
... specifications specification status comment html living standardthe definition of '
validationmessage' in that specification.
HTMLSelectElement.checkValidity() - Web APIs
the htmlselectelement.check
validity() method checks whether the element has any constraints and whether it satisfies them.
... if the element fails its constraints, the browser fires a cancelable in
valid event at the element, and then returns false.
... syntax var result = selectelt.check
validity(); specifications specification status comment html living standardthe definition of 'htmlselectelement.check
validity()' in that specification.
... html5the definition of 'htmlselectelement.check
validity()' in that specification.
MerchantValidationEvent.methodName - Web APIs
the merchant
validationevent property methodname is a read-only value which returns a string indicating the payment method identifier which represents the payment handler that requires merchant
validation.
... syntax methodid = merchant
validationevent.methodname; value a read-only domstring which uniquely identifies the payment handler which is requesting merchant
validation.
... see merchant
validation in payment processing concepts for more information on the process.
... specifications specification status comment payment request apithe definition of 'merchant
validationevent.methodname' in that specification.
PaymentValidationErrors - Web APIs
the payment
validationerrors dictionary represents objects providing information about any and all errors that occurred while processing a payment request.
... when
validation of the paymentresponse returned by the paymentrequest.show() or paymentresponse.retry() methods fails, your code creates a payment
validationerrors object to pass into retry() so that the user agent knows what needs to be fixed and what if any error messages to display to the user.
... payer optional a payererrors compliant object which provides appropriate error messages for any of the fields describing the payer which failed
validation.
... shippingaddress optional an addresserrors object which contains error messages for any of the fields in the shipping address that failed
validation.
RTCPeerConnection: idpvalidationerror event - Web APIs
an idp
validationerror event informs the target, a rtcpeerconnection object's onidp
validationerror event handler, that the identity provider (idp) encountered an error while
validating an identity assertion.
... an event handler for this event can be added using the rtcpeerconnection.onidp
validationerror property.
... bubbles no cancelable no interface rtcidentityerrorevent event handler property onidp
validationerror warning: this event is no longer used; instead, you can detect a
validation error by detecting when the promise returned by rtcpeerconnection.peeridentity is rejected.
... specifications specification status comment webrtc 1.0: real-time communication between browsersthe definition of 'idp
validationerror' in that specification.
RTCPeerConnection: idpvalidationerror event - Web APIs
an idp
validationerror event informs the target, a rtcpeerconnection object, that the identity provider (idp) encountered an error when trying to
validate an identity assertion.
... an event handler for this event can be added via the rtcpeerconnection.onidp
validationerror property.
... bubbles no cancelable no interface rtcidentityerrorevent event handler property onidp
validationerror important: this event is no longer used; it was removed from the specification long ago.
... specifications specification status comment webrtc 1.0: real-time communication between browsersthe definition of 'idp
validationerror' in that specification.
validityState.badInput - Web APIs
the read-only badinput property of a
validitystate object indicates if the user has provided input that the browser is unable to convert.
... example <input type="number" id="age"> var input = document.getelementbyid("age"); if (input.
validity.badinput) { console.log("bad input detected…"); } else { console.log("content of input ok."); } specifications specification status comment html living standardthe definition of '
validitystate.badinput' in that specification.
... living standard live standard html 5.1the definition of '
validitystate.badinput' in that specification.
... html5the definition of '
validitystate.badinput' in that specification.
validityState.tooLong - Web APIs
the read-only toolong property of a
validitystate object indicates if the value of an <input> or <textarea>, after having been edited by the user, exceeds the maximum code-unit length established by the element's maxlength attribute.
... specifications specification status comment html living standardthe definition of '
validitystate.toolong' in that specification.
... living standard html 5.1the definition of '
validitystate.toolong' in that specification.
... recommendation html5the definition of '
validitystate.toolong' in that specification.
validityState.tooShort - Web APIs
the read-only tooshort property of a
validitystate object indicates if the value of an <input>, <button>, <select>, <output>, <fieldset> or <textarea>, after having been edited by the user, is less than the minimum code-unit length established by the element's minlength attribute.
... specifications specification status comment html living standardthe definition of '
validitystate.tooshort' in that specification.
... living standard html 5.1the definition of '
validitystate.tooshort' in that specification.
... recommendation html5the definition of '
validitystate.tooshort' in that specification.
RangeError: invalid array length - JavaScript
the javascript exception "in
valid array length" occurs when creating an array or an arraybuffer which has a length which is either negative or larger or equal to 232, or when setting the array.length property to a value which is either negative or larger or equal to 232.
... message rangeerror: array length must be a finite positive integer (edge) rangeerror: in
valid array length (firefox) rangeerror: in
valid array length (chrome) rangeerror: in
valid array buffer length (chrome) error type rangeerror what went wrong?
... an in
valid array length might appear in these situations: when creating an array or an arraybuffer which has a length which is either negative or larger or equal to 232, or when setting the array.length property to a value which is either negative or larger or equal to 232.
... examples in
valid cases new array(math.pow(2, 40)) new array(-1) new arraybuffer(math.pow(2, 32)) new arraybuffer(-1) let a = []; a.length = a.length - 1; // set -1 to the length property let b = new array(math.pow(2, 32) - 1); b.length = b.length + 1; // set 2^32 to the length property
valid cases [ math.pow(2, 40) ] // [ 1099511627776 ] [ -1 ] ...
TypeError: invalid arguments - JavaScript
the javascript exception "in
valid arguments" occurs when typed array constructors are provided with a wrong argument.
... message typeerror: in
valid arguments (firefox) error type typeerror what went wrong?
...other constructor arguments will not create a
valid typed array.
... var ta = new uint8array("nope"); // typeerror: in
valid arguments different ways to create a
valid uint8array: // from a length var uint8 = new uint8array(2); uint8[0] = 42; console.log(uint8[0]); // 42 console.log(uint8.length); // 2 console.log(uint8.bytes_per_element); // 1 // from an array var arr = new uint8array([21,31]); console.log(arr[1]); // 31 // from another typedarray var x = new uint8array([21, 31]); var y = new uint8array(x); console.log(y[0]); // 21 // from an arraybuffer var buffer = new arraybuffer(8); var z = new uint8array(buffer, 1, 4); // from an iterable var iterable = function*(){ yield* [1,2,3]; }();...
Validator - MDN Web Docs Glossary: Definitions of Web-related terms
a
validator is a program that checks for syntax errors in code.
...
validators can be created for any format or language, but in our context we speak of tools that check html, css, and xml.
... learn more general knowledge
validator on wikipedia short list of
validators ...
HTMLObjectElement.checkValidity - Web APIs
the check
validity() method of the htmlobjectelement interface returns a boolean that always is true, because object objects are never candidates for constraint
validation.
... syntax const
valid = htmlobjectelement.check
validity(); parameters none.
... specifications specification status comment html living standardthe definition of 'check
validity' in that specification.
HTMLObjectElement.validity - Web APIs
the
validity read-only property of the htmlobjectelement interface returns a
validitystate with the
validity states that this element is in.
... syntax var
validitystate = htmlobjectelement.
validity; value a
validitystate object.
... specifications specification status comment html living standardthe definition of '
validity' in that specification.
HTMLObjectElement.willValidate - Web APIs
the will
validate read-only property of the htmlobjectelement interface returns a boolean that indicates whether the element is a candidate for constraint
validation.
... syntax var boolean = htmlobjectelement.will
validate; value a boolean.
... specifications specification status comment html living standardthe definition of 'will
validate' in that specification.
Reason: invalid token ‘xyz’ in CORS header ‘Access-Control-Allow-Headers’ - HTTP
reason reason: in
valid token ‘xyz’ in cors header ‘access-control-allow-headers’ what went wrong?
... the response to the cors request that was sent by the server includes an access-control-allow-headers header which includes at least one in
valid header name.
... this is a problem that most likely can only be fixed on the server side, by modifying the server's configuration to no longer send the in
valid or unknown header name with the access-control-allow-headers header.
Reason: invalid token ‘xyz’ in CORS header ‘Access-Control-Allow-Methods’ - HTTP
reason reason: in
valid token ‘xyz’ in cors header ‘access-control-allow-methods’ what went wrong?
... the response to the cors request that was sent by the server includes an access-control-allow-methods header which includes at least one in
valid method name.
... this is a problem that most likely can only be fixed on the server side, by modifying the server's configuration to no longer send the in
valid or unknown method name with the access-control-allow-methods header.
TypeError: invalid Array.prototype.sort argument - JavaScript
the javascript exception "in
valid array.prototype.sort argument" occurs when the argument of array.prototype.sort() isn't either undefined or a function which compares its operands.
... message typeerror: argument is not a function object (edge) typeerror: in
valid array.prototype.sort argument (firefox) error type typeerror what went wrong?
... examples in
valid cases [1, 3, 2].sort(5); // typeerror var cmp = { asc: (x, y) => x >= y, dsc: (x, y) => x <= y }; [1, 3, 2].sort(cmp[this.key] || 'asc'); // typeerror
valid cases [1, 3, 2].sort(); // [1, 2, 3] var cmp = { asc: (x, y) => x >= y, dsc: (x, y) => x <= y }; [1, 3, 2].sort(cmp[this.key || 'asc']); // [1, 2, 3] ...
ReferenceError: invalid assignment left-hand side - JavaScript
the javascript exception "in
valid assignment left-hand side" occurs when there was an unexpected assignment somewhere.
... message referenceerror: in
valid assignment left-hand side error type referenceerror.
... examples typical in
valid assignments if (math.pi = 3 || math.pi = 4) { console.log('no way!'); } // referenceerror: in
valid assignment left-hand side var str = 'hello, ' += 'is it me ' += 'you\'re looking for?'; // referenceerror: in
valid assignment left-hand side in the if statement, you want to use a comparison operator ("=="), and for the string concatenation, the plus ("+") operator is needed.
RangeError: argument is not a valid code point - JavaScript
the javascript exception "in
valid code point" occurs when nan values, negative integers (-1), non-integers (5.4), or values larger than 0x10ffff (1114111) are used with string.fromcodepoint().
... message rangeerror: {0} is not a
valid code point (firefox) rangeerror: in
valid code point {0} (chromium) error type rangeerror what went wrong?
... examples in
valid cases string.fromcodepoint('_'); // rangeerror string.fromcodepoint(infinity); // rangeerror string.fromcodepoint(-1); // rangeerror string.fromcodepoint(3.14); // rangeerror string.fromcodepoint(3e-2); // rangeerror string.fromcodepoint(nan); // rangeerror
valid cases string.fromcodepoint(42); // "*" string.fromcodepoint(65, 90); // "az" string.fromcodepoint(0x404); // "\u0404" string.fromcodepoint(0x2f804); // "\ud87e\udc04" string.fromcodepoint(194564); // "\ud87e\udc04" string.from...
TypeError: invalid 'instanceof' operand 'x' - JavaScript
the javascript exception "in
valid 'instanceof' operand" occurs when the right hand side operands of the instanceof operator isn't used with a constructor object, i.e.
... message typeerror: in
valid 'instanceof' operand "x" (firefox) typeerror: "x" is not a function (firefox) typeerror: right-hand side of 'instanceof' is not an object (chrome) typeerror: right-hand side of 'instanceof' is not callable (chrome) error type typeerror what went wrong?
... examples instanceof vs typeof "test" instanceof ""; // typeerror: in
valid 'instanceof' operand "" 42 instanceof 0; // typeerror: in
valid 'instanceof' operand 0 function foo() {} var f = foo(); // foo() is called and returns undefined var x = new foo(); x instanceof f; // typeerror: in
valid 'instanceof' operand f x instanceof x; // typeerror: x is not a function to fix these errors, you will either need to replace the instanceof operator with the typeof operator, or to make sure you use the function name, instead of the result of its evaluation.
:-moz-submit-invalid - CSS: Cascading Style Sheets
the :-moz-submit-in
valid css pseudo-class is a mozilla extension that represents any submit <button> on forms whose contents aren't
valid based on their
validation constraints.
...you can use this pseudo-class to customize the appearance of the submit button when there are in
valid form fields.
Index - Web APIs
29 addresserrors api, address, addresserrors, dictionary, errors, interface, payment address, payment request, payment request api, reference, payment, paymentaddress the addresserrors dictionary is used by the payment request api to to report
validation errors in a physical address (typically a billing address or a shipping address).
... 30 addresserrors.addressline api, addresserrors, error, payment request, payment request api, property, reference,
validation, addressline, payment an object based on addresserrors includes an addressline property when
validation of the address finds one or more errors in the array of strings in the address's addressline.
... 31 addresserrors.city api, address, addresserrors, error, payment request, payment request api, property, read-only, reference, city, payment an object based on addresserrors includes a city property when
validation of the address fails for the value given for the address's city property.
...And 104 more matches
<input>: The Input (Form Input) element - HTML: Hypertext Markup Language
looks like a text input, but has
validation parameters and relevant keyboard in supporting browsers and devices with dynamic keyboards.
...displays a spinner and adds default
validation when supported.
...looks like a text input, but has
validation parameters and relevant keyboard in supporting browsers and devices with dynamic keyboards.
...And 94 more matches
<input type="email"> - HTML: Hypertext Markup Language
the input value is automatically
validated to ensure that it's either empty or a properly-formatted e-mail address (or list of addresses) before the form can be submitted.
... the :
valid and :in
valid css pseudo-classes are automatically applied as appropriate to visually denote whether the current value of the field is a
valid e-mail address or not.
...g representing an e-mail address, or empty events change and input supported common attributes autocomplete, list, maxlength, minlength, multiple, name,pattern, placeholder, readonly, required, size, and type idl attributes list and value methods select() value the <input> element's value attribute contains a domstring which is automatically
validated as conforming to e-mail syntax.
...And 44 more matches
Index
for example: certificates were
valid at the time the signature was made, name in certificates matches the expected signer (check subject name, common name, email, based on application), the trust restrictions recorded inside the certificate (extensions) permit the use (e.g., encryption might be allowed, but not signing), and based on environment/application policy it might be required to perform a revocation check (ocsp or crl), tha...
...t asks the issuer(s) of the certificates whether there have been events that made it necessary to revoke the trust (revoke the
validity of the cert).
...if a self-signed certificate is marked as explicitly trusted, nss will skip checking the self-signature for
validity.
...And 43 more matches
<input type="url"> - HTML: Hypertext Markup Language
the input value is automatically
validated to ensure that it's either empty or a properly-formatted url before the form can be submitted.
... the :
valid and :in
valid css pseudo-classes are automatically applied as appropriate to visually denote whether the current value of the field is a
valid url or not.
... value the <input> element's value attribute contains a domstring which is automatically
validated as conforming to url syntax.
...And 37 more matches
sslerr.html
ssl_error_unsupported_version -12279 "peer using unsupported version of security protocol." on a client socket, this means the remote server has attempted to negotiate the use of a version of ssl that is not supported by the nss library, probably an in
valid version number.
...ssl_error_session_not_found -12198 "client's ssl session id not found in server's session cache." ssl_error_server_cache_not_configured -12185 "ssl server cache not configured and not disabled for this socket." ssl_error_renegotiation_not_allowed -12176 "renegotiation is not allowed on this ssl socket." received a malformed (too long or short or in
valid content) ssl handshake: all the error codes in the following block indicate that the local socket received an improperly formatted ssl3 handshake message from the remote peer.
...ryption_failed_alert -12197 "peer was unable to decrypt an ssl record it received." ssl_error_record_overflow_alert -12196 "peer received an ssl record that was longer than is permitted." ssl_error_unknown_ca_alert -12195 "peer does not recognize and trust the ca that issued your certificate." ssl_error_access_denied_alert -12194 "peer received a
valid certificate, but access was denied." ssl_error_decode_error_alert -12193 "peer could not decode an ssl handshake message." ssl_error_decrypt_error_alert -12192 "peer reports failure of signature verification or key exchange." ssl_error_export_restriction_alert -12191 "peer reports negotiation not in compliance with export regulations." ssl_err...
...And 31 more matches
AddressErrors - Web APIs
the addresserrors dictionary is used by the payment request api to to report
validation errors in a physical address (typically a billing address or a shipping address).
... any members which is present indicates that a
validation error occurred for the member of the same name in an address described using paymentaddress.
... addresserrors is the type of the object returned by shippingaddresserrors in the paymentdetailsupdate passed into paymentrequestupdateevent.updatewith() by the shippingaddresschange event handler if a change to the address resulted in a
validation error occurring.
...And 31 more matches
<input type="number"> - HTML: Hypertext Markup Language
they include built-in
validation to reject non-numerical entries.
...ons max the maximum value to accept for this input min the minimum value to accept for this input placeholder an example value to display inside the field when it's empty readonly a boolean attribute indicating whether the value is read-only step a stepping interval to use when using up and down arrows to adjust the value, as well as for
validation list the values of the list attribute is the id of a <datalist> element located in the same document.
...if the value entered into the element exceeds this, the element fails constraint
validation.
...And 30 more matches
IAccessibleText
return value e_in
validarg if bad [in] passed.
... return value e_in
validarg if bad [in] passed, [out] values are 0s and null respectively.
...the
valid range is 0..length.
...And 28 more matches
UI pseudo-classes - Learn web development
:
valid and :in
valid, and :in-range and :out-of-range: target form controls that are
valid/in
valid according to form
validation constraints set on them, or in-range/out-of-range.
... note: a number of the pseudo-classes discussed here are concerned with styling form controls based on their
validation state (is their data
valid, or not?) you'll learn much more about setting and controlling
validation constraints in our next article — client-side form
validation — but for now we'll keep things simple with regards to form
validation, so it doesn't confuse things.
... styling inputs based on whether they are required or not one of the most basic concepts with regards to client-side form
validation is whether a form input is required (it has to be filled in before the form can be submitted) or optional.
...And 26 more matches
NSS tools : certutil
-v check the
validity of a certificate and its attributes.
... -b
validity-time specify a time at which a certificate is required to be
valid.
... use when checking certificate
validity with the -v option.
...And 26 more matches
certutil
-v check the
validity of a certificate and its attributes.
... -b
validity-time specify a time at which a certificate is required to be
valid.
... use when checking certificate
validity with the -v option.
...And 25 more matches
attr() - CSS: Cascading Style Sheets
if the use of <type-or-unit> as a value for the given attribute is in
valid, the attr() expression will be in
valid too.
...the list of
valid values are: keyword associated type comment default value string <string> the attribute value is treated as a css <string>.
...it must be a
valid css <string> value.
...And 25 more matches
<input type="tel"> - HTML: Hypertext Markup Language
unlike <input type="email"> and <input type="url"> , the input value is not automatically
validated to a particular format before the form can be submitted, because formats for telephone numbers vary so much around the world.
...using a specific input type for telephone numbers also makes adding custom
validation and handling of phone numbers more convenient.
...ditional attributes in addition to the attributes that operate on all <input> elements regardless of their type, telephone number inputs support the following attributes: attribute description list the id of the <datalist> element that contains the optional pre-defined autocomplete options maxlength the maximum length, in utf-16 characters, to accept as a
valid input minlength the minimum length that is considered
valid for the field's contents pattern a regular expression the entered value must match to pass constraint
validation placeholder an example value to display inside the field when it has no value readonly a boolean attribute which, if present, indicates that the field's contents should not be us...
...And 25 more matches
HTML documentation index - HTML: Hypertext Markup Language
38 html attribute: capture api, attribute, attributes, capture, constraint
validation, html the capture attribute specifies that, optionally, a new file should be captured, and which device should be used to capture that new media of a type defined by the accept attribute.
... 39 html attribute: crossorigin advanced, attribute, cors, html, needscontent, reference, security the crossorigin attribute,
valid on the <audio>, <img>, <link>, <script>, and <video> elements, provides support for cors, defining how the element handles crossorigin requests, thereby enabling the configuration of the cors requests for the element's fetched data.
... 40 html attribute: max attribute, attributes, constraint
validation, html, reference the max attribute defines the maximum value that is acceptable and
valid for the input containing the attribute.
...And 24 more matches
Introduction to SSL - Archive of obsolete content
ssl-enabled client software can use standard techniques of public-key cryptography to check that a server's certificate and public id are
valid and have been issued by a certificate authority (ca) listed in the client's list of trusted cas.
...using the same techniques as those used for server authentication, ssl-enabled server software can check that a client's certificate and public id are
valid and have been issued by a certificate authority (ca) listed in the server's list of trusted cas.
...the client and the server use the session keys to encrypt and decrypt the data they send to each other and to
validate its integrity.
...And 22 more matches
NSS Tools certutil
-v check the
validity of a certificate and its attributes.
... -b
validity-time specify a time at which a certificate is required to be
valid.
... use when checking certificate
validity with the -v option.
...And 22 more matches
HTTP Index - HTTP
22 reason: cors disabled authentication, authentication article, cors, cross-origin, disabled, errors, http, https, messages, resource, same origin, same-origin, security, sharing,
validation, secure, troubleshooting a request that needs to use cors was attempted, but cors is disabled in the user's browser.
... 34 reason: in
valid token ‘xyz’ in cors header ‘access-control-allow-headers’ cors, corsin
validallowheader, cross-origin, error, http, https, messages, reasons, security, console, troubleshooting the response to the cors request that was sent by the server includes an access-control-allow-headers header which includes at least one in
valid header name.
... 35 reason: in
valid token ‘xyz’ in cors header ‘access-control-allow-methods’ cors, corsin
validallowmethod, cross-origin, error, http, https, messages, reasons, security, console, troubleshooting the response to the cors request that was sent by the server includes an access-control-allow-methods header which includes at least one in
valid method name.
...And 22 more matches
Error codes returned by Mozilla APIs
ns_error_illegal_value (0x80070057) an argument supplied to a method was not
valid, for instance a null value was supplied as an argument which does not allow null values, or a value was out of range.
... ns_error_factory_not_loaded (0x800401f8) ns_error_factory_exists (0xc1f30100) ns_error_factory_no_signature_support (0xc1f30101) ns_error_proxy_in
valid_in_parameter (0x80010010) ns_error_proxy_in
valid_out_parameter (0x80010011) ns_error_cannot_convert_data (0x80460001) ns_error_object_is_immutable (0x80460002) ns_error_loss_of_significant_data (0x80460003) ns_error_illegal_during_shutdown (0x8046001e) many operations cannot be performed once the application is being shutdown.
... ns_error_file_unrecognized_path (0x80520001) this error occurs when an attempt is made to set a path that isn't
valid for the platform.
...And 21 more matches
<input type="text"> - HTML: Hypertext Markup Language
let thetext = mytextinput.value; if no
validation constraints are in place for the input (see
validation for more details), the value may be an empty string ("").
...egardless of their type, text inputs support the following attributes: attribute description list the id of the <datalist> element that contains the optional pre-defined autocomplete options maxlength the maximum number of characters the input should accept minlength the minimum number of characters long the input can be and still be considered
valid pattern a regular expression the input's contents must match in order to be
valid placeholder an exemplar value to display in the input field whenever it is empty readonly a boolean attribute indicating whether or not the contents of the input should be read-only size a number indicating how many characters wide the input field should be sp...
...if no maxlength is specified, or an in
valid value is specified, the text input has no maximum length.
...And 21 more matches
<input type="time"> - HTML: Hypertext Markup Language
you can set a default value for the input by including a
valid time in the value attribute when creating the <input> element, like so: <label for="appt-time">choose an appointment time: </label> <input id="appt-time" type="time" name="appt-time" value="13:30"> you can also get and set the date value in javascript using the htmlinputelement.value property, for example: var timecontrol = document.queryselector('input[type="time"]'); timecontrol.value = '...
...tes in addition to the attributes common to all <input> elements, time inputs offer the following attributes: attribute description list the id of the <datalist> element that contains the optional pre-defined autocomplete options max the latest time to accept, in the syntax described under time value format min the earliest time to accept as a
valid input readonly a boolean attribute which, if present, indicates that the contents of the time input should not be user-editable step the stepping interval to use both for user interfaces purposes and during constraint
validation unlike many data types, time values have a periodic domain, meaning that the values reach the highest possible value, then wrap back around...
...if the specified string isn't a
valid time, no maximum value is set.
...And 21 more matches
Enc Dec MAC Using Key Wrap CertReq PKCS10 CSR
"%-30s - certificate signing request \n\n", "-r <csr>"); fprintf(stderr, "%-30s - generate a self-signed cert [optional]\n\n", "-x"); fprintf(stderr, "%-30s - to enable ascii [optional]\n\n", "-a"); fprintf(stderr, "%-30s - to save certificate to header file as sig verification [optional]\n\n", "-v"); exit(-1); } /* *
validate the options used for generate csr command */ static void
validategeneratecsrcommand(const char *progname, const char *dbdir, certname *subject, const char *subjectstr, const char *certreqfilename) { prbool
validationfailed = pr_false; if (!subject) { pr_fpri...
...ntf(pr_stderr, "%s -g -d %s -s: improperly formatted name: \"%s\"\n", progname, dbdir, subjectstr);
validationfailed = pr_true; } if (!certreqfilename) { pr_fprintf(pr_stderr, "%s -g -d %s -s %s -r: certificate request file name not found\n", progname, dbdir, subjectstr);
validationfailed = pr_true; } if (
validationfailed) { fprintf(stderr, "\nusage: %s %s \n\n", progname, "-g -d <dbdirpath> -s <subject> -r <csr> \n"); exit(-1); } } /* *
validate the options used for add cert to db command */ static void
validateaddcerttodbcommand(const char *progname, const char *dbdir, const char *nicknamestr, ...
... const char *truststr, const char *certfilename, const char *certreqfilename, const char *issuernamestr, const char *serialnumberstr, prbool selfsign) { prbool
validationfailed = pr_false; if (!nicknamestr) { pr_fprintf(pr_stderr, "%s -a -d %s -n : nick name is missing\n", progname, dbdir);
validationfailed = pr_true; } if (!truststr) { pr_fprintf(pr_stderr, "%s -a -d %s -n %s -t: trust flag is missing\n", progname, dbdir, nicknamestr);
validationfailed = pr_true; } if (!certfilename) { pr_fprintf(pr_stderr, "%s -a -d %s ...
...And 20 more matches
<input type="search"> - HTML: Hypertext Markup Language
searchterms = mysearch.value; if no
validation constraints are in place for the input (see
validation for more details), the value can be any text string or an empty string ("").
...s of their type, search field inputs support the following attributes: attribute description list the id of the <datalist> element that contains the optional pre-defined autocomplete options maxlength the maximum number of characters the input should accept minlength the minimum number of characters long the input can be and still be considered
valid pattern a regular expression the input's contents must match in order to be
valid placeholder an exemplar value to display in the input field whenever it is empty readonly a boolean attribute indicating whether or not the contents of the input should be read-only size a number indicating how many characters wide the input field should be sp...
...if no maxlength is specified, or an in
valid value is specified, the search field has no maximum length.
...And 20 more matches
<input type="datetime-local"> - HTML: Hypertext Markup Language
in other words, an implementation should allow any
valid combination of year, month, day, hour, and minute - even if such a combination is in
valid in the user's local time zone (such as times within a daylight saving time spring-forward transition gap).
... some browsers may resort to a text-only input element that
validates that the results are legitimate date/time values before letting them be delivered to the server, as well, but you shouldn't rely on this behavior since you can't easily predict it.
...nal attributes in addition to the attributes common to all <input> elements, datetime-local inputs offer the following attributes: attribute description max the latest date and time to accept min the earliest date and time to accept step the stepping interval to use for this input, such as when clicking arrows on spinner controls or performing
validation max the latest date and time to accept.
...And 19 more matches
<input type="month"> - HTML: Hypertext Markup Language
in browsers that don't support month inputs, the control degrades gracefully to a simple <input type="text">, although there may be automatic
validation of the entered text to ensure it's formatted as expected.
...the format of the month string used by this input type is described in format of a
valid local month string in date and time formats used in html.
...elector('input[type="month"]'); monthcontrol.value = '1978-06'; additional attributes in addition to the attributes common to <input> elements, month inputs offer the following attributes: attribute description list the id of the <datalist> element that contains the optional pre-defined autocomplete options max the latest year and month to accept as a
valid input min the earliest year and month to accept as a
valid input readonly a boolean which, if present, indicates that the input's value can't be edited step a stepping interval to use when incrementing and decrementing the value of the input field list the values of the list attribute is the id of a <datalist> element located in the same document.
...And 19 more matches
HTTP conditional requests - HTTP
http has a concept of conditional requests, where the result, and even the success of a request, can be changed by comparing the affected resources with the value of a
validator.
... such requests can be useful to
validate the content of a cache, and sparing a useless control, to verify the integrity of a document, like when resuming a download, or when preventing to lose updates when uploading or modifying a document on the server.
...
validators all conditional headers try to check if the resource stored on the server matches a specific version.
...And 19 more matches
HTMLInputElement - Web APIs
formno
validate boolean: returns / sets the element's formno
validate attribute, indicating that the form is not to be
validated when it is submitted.
... this overrides the no
validate attribute of the parent form.
...
validity read only
validitystate object: returns the element's current
validity state.
...And 18 more matches
Introduction to Public-Key Cryptography - Archive of obsolete content
certificate authorities (cas) are entities that
validate identities and issue certificates.
...the methods used to
validate an identity vary depending on the policies of a given ca-just as the methods to
validate other forms of identification vary depending on who is issuing the id and the purpose for which it will be used.
...the server uses techniques of public-key cryptography to
validate the signature and confirm the
validity of the certificate.
...And 17 more matches
sample2
30s - certificate issuer nickname\n\n", "-u <issuernickname>"); fprintf(stderr, "%-30s - certificate signing request \n\n", "-r <csr>"); fprintf(stderr, "%-30s - generate a self-signed cert [optional]\n\n", "-x"); fprintf(stderr, "%-30s - to enable ascii [optional]\n\n", "-a"); fprintf(stderr, "%-30s - to save certificate to header file as sig verification [optional]\n\n", "-v"); exit(-1); } /* *
validate the options used for generate csr command */ static void
validategeneratecsrcommand(const char *progname, const char *dbdir, certname *subject, const char *subjectstr, const char *certreqfilename) { prbool
validationfailed = pr_false; if (!subject) { pr_fprintf(pr_stderr, "%s -g -d %s -s: improperly formatted name: \"%s\"\n", progname, dbdir, subjectstr);
validationfailed = pr_true; } if (!cer...
...treqfilename) { pr_fprintf(pr_stderr, "%s -g -d %s -s %s -r: certificate request file name not found\n", progname, dbdir, subjectstr);
validationfailed = pr_true; } if (
validationfailed) { fprintf(stderr, "\nusage: %s %s \n\n", progname, "-g -d <dbdirpath> -s <subject> -r <csr> \n"); exit(-1); } } /* *
validate the options used for add cert to db command */ static void
validateaddcerttodbcommand(const char *progname, const char *dbdir, const char *nicknamestr, const char *truststr, const char *certfilename, const char *certreqfilename, const char *issuernamestr, const char *serialnumberstr, prbool selfsign) { prbool
validationfailed = pr_false; if (!nicknamestr) { pr_fprintf(pr_stderr, "%s -a -d %s -n : nick name is missing\n", progname, dbdir);
validationfailed = pr_true; } if (!truststr) { pr...
..._fprintf(pr_stderr, "%s -a -d %s -n %s -t: trust flag is missing\n", progname, dbdir, nicknamestr);
validationfailed = pr_true; } if (!certfilename) { pr_fprintf(pr_stderr, "%s -a -d %s -n %s -t %s -c: certificate file name not found\n", progname, dbdir, nicknamestr, truststr, serialnumberstr, certreqfilename);
validationfailed = pr_true; } if (pr_access(certfilename, pr_access_exists) == pr_failure) { if (!certreqfilename) { pr_fprintf(pr_stderr, "%s -a -d %s -n %s -t %s -c %s -r: certificate file or certificate request file is not found\n", progname, dbdir, nicknamestr, truststr, certfilename);
validationfailed = pr_true; } if (!selfsign && !issuernamestr) { pr_fprintf(pr_stderr, "%s -a -d %s -n %s -t %s -c %s -r %s -u : issuer name is missing\n", progname, dbdir, nicknamestr, truststr, certf...
...And 17 more matches
IAccessibleEditableText
the
valid range is 0..length.
...the
valid range is 0..length.
... return value e_in
validarg if bad [in] passed.
...And 17 more matches
IAccessibleTable
the range of
valid coordinates for this interface are implementation dependent.
...accessible if both row and column index are
valid then the corresponding accessible object is returned that represents the requested cell regardless of whether the cell is currently visible (on the screen).
... return value e_in
validarg if bad [in] passed, [out] value is null.
...And 17 more matches
<input type="week"> - HTML: Hypertext Markup Language
the format of the date and time value used by this input type is described in format of a
valid week string in date and time formats used in html.
... set the value in javascript using the input element's value property, for example: var weekcontrol = document.queryselector('input[type="week"]'); weekcontrol.value = '2017-w45'; additional attributes in addition to the attributes common to <input> elements, week inputs offer the following attributes: attribute description max the latest year and week to accept as
valid input min the earliest year and week to accept as
valid input readonly a boolean which, if present, indicates that the user cannot edit the field's contents step the stepping interval (the distance between allowed values) to use for both user interface and constraint
validation max the latest (time-wise) year and week number, in the string format discus...
...if the value entered into the element exceeds this, the element fails constraint
validation.
...And 17 more matches
TypeScript support in Svelte - Learn web development
best of all, javascript code is
valid typescript code; typescript is a superset of javascript.
...for example, if you start adding an ms property to the alert component call, typescript will infer from the default value that the ms property should be a number: and if you pass something that is not a number it will complain about it: the application template has a
validate script configured that runs svelte-check against your code.
...just run npm run
validate to check for unused css, and return a11y hints and typescript compile errors.
...And 16 more matches
SubtleCrypto.verify() - Web APIs
it returns a promise which will be fulfilled with a boolean value indicating whether the signature is
valid.
... return value result is a promise that fulfills with a boolean: true if the signature is
valid, false otherwise.
... exceptions the promise is rejected when the following exception is encountered: in
validaccesserror raised when the encryption key is not a key for the requested verifying algorithm or when trying to use an algorithm that is either unknown or isn't suitable for a verify operation.
...And 16 more matches
<input type="date"> - HTML: Hypertext Markup Language
<input> elements of type="date" create input fields that let the user enter a date, either with a textbox that
validates the input or a special date picker interface.
...the date is formatted according to iso8601, described in format of a
valid date string in date and time formats used in html.
... additional attributes along with the attributes common to all <input> elements, date inputs have the following attributes: attribute description max the latest acceptable date min the earliest acceptable date step the stepping interval, when clicking up and down spinner buttons and
validating the date max the latest date to accept.
...And 15 more matches
<input type="password"> - HTML: Hypertext Markup Language
if the required property is specified, then the password edit box must contain a value other than an empty string to be
valid.
... if the pattern attribute is specified, the content of a password control is only considered
valid if the value passes
validation; see
validation for more information.
... additional attributes in addition to the attributes that operate on all <input> elements regardless of their type, password field inputs support the following attributes: attribute description maxlength the maximum length the value may be, in utf-16 characters minlength the minimum length in characters that will be considered
valid pattern a regular expression the value must match in order to be
valid placeholder an example value to display in the field when the field is empty readonly a boolean attribute which, if present, indicates that the field's contents should not be editable size the number of characters wide the input field should be maxlength the maximum numbe...
...And 14 more matches
Gecko Compatibility Handbook - Archive of obsolete content
upgrade the browser detection javascript to detect "gecko." (related article) content differs in gecko browsers and internet explorer use of proprietary or in
valid markup (such as is generated by some microsoft office applications).
... use the w3 html and css
validator tools to
validate the web page.
... do not use internet explorer's in
valid implementation of css.
...And 13 more matches
Content-Security-Policy - HTTP
child-src defines the
valid sources for web workers and nested browsing contexts loaded using elements such as <frame> and <iframe>.
... font-src specifies
valid sources for fonts loaded using @font-face.
... frame-src specifies
valid sources for nested browsing contexts loading using elements such as <frame> and <iframe>.
...And 13 more matches
HTTP Cache
this can only be engaged for resumable responses that (bug 960902) don't need re
validation.
... the consumer then indicates the cache entry needs to be re
validated by returning entry_needs_re
validation from oncacheentrycheck.
... other parallel consumers, if any, are blocked until the writer calls set
valid on the cache entry.
...And 12 more matches
A Web PKI x509 certificate primer
in general, x509 certificates bind a signature to a
validity period, a public key, a subject, an issuer, and a set of extensions.
...in order for a certificate to be
valid these three requirements must be met: there is a verification path from the site certificate to a trusted certificate of the user agent (ie if you follow the issuer path you will end on a self-signed certificate that is considered trusted by the browser).
... the attributes of the certificates in the verification path have
valid parameters for that verification (for example the
validity period of all the certificates are
valid for the time the verification is being done) revocation checks are considered ok for that particular
validation.
...And 12 more matches
HTMLTextAreaElement - Web APIs
valid values are: none, off, characters, words, sentences.
...
validationmessage read only string: returns a localized message that describes the
validation constraints that the control does not satisfy (if any).
... this is the empty string if the control is not a candidate for constraint
validation (will
validate is false), or it satisfies its constraints.
...And 12 more matches
Alerts - Accessibility
examples of common problems include e-mail addresses which are not
valid, or a name field which does not contain at least a first name or a surname.
...bel> <input name="website" id="website"/> </fieldset> <label for="message">please enter your message (required):</label> <br /> <textarea name="message" id="message" rows="5" cols="80" aria-required="true"></textarea> <br /> <input type="submit" name="submit" value="send message"/> <input type="reset" name="reset" value="reset form"/> </form> checking for
validity and notifying the user form
validations consists of several steps: checking if the e-mail address or entered name are
valid.
... each field has a set of criteria which must be met in order to pass
validation.
...And 12 more matches
Using CSS custom properties (variables) - CSS: Cascading Style Sheets
basic usage declaring a custom property is done using a custom property name that begins with a double hyphen (--), and a property value that can be any
valid css value.
...with the following css: .two { --test: 10px; } .three { --test: 2em; } in this case, the results of var(--test) are: for the class="two" element: 10px for the class="three" element: 2em for the class="four" element: 10px (inherited from its parent) for the class="one" element: in
valid value, which is the default value of any custom property keep in mind that these are custom properties, not actual variables like you might find in other programming languages.
...it's just a backup for the browser which supports css custom properties to choose a different value if the given variable isn't defined or has an in
valid value.
...And 12 more matches
HTTP caching - HTTP
cache-control: no-store cache but re
validate a cache will send the request to the origin server for
validation before releasing a cached copy.
... cache-control: max-age=31536000
validation when using the "must-re
validate" directive, the cache must verify the status of the stale resources before using it and expired ones should not be used.
... for more details, see the
validation section below.
...And 12 more matches
Examples - Archive of obsolete content
application/xhtml+xml; charset=utf-8" /> <style type="text/css"> <!-- body {background-color: blue; color: yellow; } --> </style> <script type="text/javascript"> <!-- var i = 0; var sum = 0; for (i = 0; i < 10; ++i) { sum += i; } alert('sum = ' + sum); // --> </script> </head> <body> <h1>problem 2 - comments in xhtml</h1> <p> this document is
valid xhtml 1.0 strict served as <code>application/xhtml+xml</code>.
... </p> <dl> <dt>mozilla 1.1+/opera 7</dt> <dd>do not apply css or execute the javascript.</dd> <dt>netscape 7.0x/mozilla 1.0.x</dt> <dd>do not apply css but does execute the javascript.</dd> <dt>internet explorer 5.5+</dt> <dd>can not display the document.</dd> </dl> <p> <a href="http://
validator.w3.org/check/referer"><img src="https://udn.realityripple.com/samples/8a/9e64asf935.png" alt="
valid xhtml 1.0!" height="31" width="88" /></a> </p> </body> </html> back to the article problem 3 <!-- this file should have a .xhtml extension and will generate an error when parsed.
...mple 1 - xhtml 1.0 strict as text/html</title> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> <style type="text/css"> <!-- body { padding-top: 8em; } html { color: #fff; background: #000 no-repeat fixed;} p {width: 30em; font-weight: bold;} --> </style> </head> <body> <h1>example 1 - xhtml 1.0 strict as text/html</h1> <p> this document is
valid xhtml 1.0 strict served as <code>text/html</code>.
...And 11 more matches
NSS_3.12_release_notes.html
tes 17 june 2008 newsgroup: mozilla.dev.tech.crypto contents introduction distribution information new in nss 3.12 bugs fixed documentation compatibility feedback introduction network security services (nss) 3.12 is a minor release with the following new features: sqlite-based shareable certificate and key databases libpkix: an rfc 3280 compliant certificate path
validation library camellia cipher support tls session ticket extension (rfc 5077) nss 3.12 is tri-licensed under the mpl 1.1/gpl 2.0/lgpl 2.1.
...tdb/cert.h) cert_encodeusernotice (see cert.h) cert_findcrlentryreasonexten (see cert.h) cert_findcrlnumberexten (see cert.h) cert_findnameconstraintsexten (see cert.h) cert_getclassicocspdisabledpolicy (see cert.h) cert_getclassicocspenabledhardfailurepolicy (see cert.h) cert_getclassicocspenabledsoftfailurepolicy (see cert.h) cert_getpkixverifynistrevocationpolicy (see cert.h) cert_getusepkixfor
validation (see cert.h) cert_get
validdnspatternsfromcert (see cert.h) cert_newtempcertificate (see cert.h) cert_setocsptimeout (see certhigh/ocsp.h) cert_setusepkixfor
validation (see cert.h) cert_pkixverifycert (see cert.h) hash_gettype (see sechash.h) nss_initwithmerge (see nss.h) pk11_createmergelog (see pk11pub.h) pk11_creategenericobject (see pk11pub.h) pk11_createpbev2algorithmid (see pk11pub.h) p...
...224 ckm_sha224_hmac ckm_sha224_hmac_general ckm_sha224_key_derivation ckm_camellia_key_gen ckm_camellia_ecb ckm_camellia_cbc ckm_camellia_mac ckm_camellia_mac_general ckm_camellia_cbc_pad ckm_camellia_ecb_encrypt_data ckm_camellia_cbc_encrypt_data ckg: mfgs ckg_mgf1_sha224 new error codes (see secerr.h): sec_error_not_initialized sec_error_token_not_logged_in sec_error_ocsp_responder_cert_in
valid sec_error_ocsp_bad_signature sec_error_out_of_search_limits sec_error_in
valid_policy_mapping sec_error_policy_
validation_failed sec_error_unknown_aia_location_type sec_error_bad_http_response sec_error_bad_ldap_response sec_error_failed_to_encode_data sec_error_bad_info_access_location sec_error_libpkix_internal new mechanism flags (see secmod.h) public_mech_aes_flag public_mech_sha256_flag pu...
...And 11 more matches
Drawing and Event Handling - Plugins
npn_in
validaterect: in
validate an area in a windowless plug-in before repainting or refreshing.
... npn_in
validateregion: in
validate a region in a windowless plug-in before repainting or refreshing.
...this window is
valid for the life of the instance, or until npp_setwindow is called again with a different value.
...And 11 more matches
HTMLButtonElement - Web APIs
htmlbuttonelement.formno
validate is a boolean indicating that the form is not to be
validated when it is submitted.
... if specified, this attribute overrides the no
validate attribute of the <form> element that owns this element.
...this is the default value if the attribute is not specified, html5 or if it is dynamically changed to an empty or in
valid value.
...And 11 more matches
HTMLSelectElement - Web APIs
htmlselectelement.
validationmessageread only a domstring representing a localized message that describes the
validation constraints that the control does not satisfy (if any).
... this attribute is the empty string if the control is not a candidate for constraint
validation (will
validate is false), or it satisfies its constraints.
... htmlselectelement.
validityread only a
validitystate reflecting the
validity state that this control is in.
...And 11 more matches
Payment processing concepts - Web APIs
some payment handlers use merchant
validation, which is the process of
validating the identity of a merchant in some way, usually using some form of cryptographic response such as a public key.
...
validated merchants are allowed to interface with a payment handler.
... if merchant
validation is supported by the payment handler, respond to merchant
validation requests from the user agent.
...And 11 more matches
HTML attribute: min - HTML: Hypertext Markup Language
the min attribute defines the minimum value that is acceptable and
valid for the input containing the attribute.
... if the value of the element is less than this, the element fails constraint
validation.
...if a value is specified for min that isn't a
valid number, the input has no minimum value.
...And 11 more matches
The HTML5 input types - Learn web development
e-mail address field this type of field is set using the value email for the type attribute: <input type="email" id="email" name="email"> when this type is used, the user is required to type a
valid email address into the field.
... client-side
validation as you can see above, email, along with other newer input types, provides built-in client-side error
validation — performed by the browser before the data gets sent to the server.
...your apps should always perform security checks on any form-submitted data on the server-side as well as the client-side, because client-side
validation is too easy to turn off, so malicious users can still easily send bad data through to your server.
...And 10 more matches
Cache-Control - HTTP
header type general header forbidden header name no cors-safelisted response header yes syntax caching directives have the following rules to be
valid: case-insensitive, but lowercase is recommended.
... cache-control: must-re
validate cache-control: no-cache cache-control: no-store cache-control: no-transform cache-control: public cache-control: private cache-control: proxy-re
validate cache-control: max-age=<seconds> cache-control: s-maxage=<seconds> extension cache-control directives extension cache-control directives are not part of the core http caching standards document.
... cache-control: immutable cache-control: stale-while-re
validate=<seconds> cache-control: stale-if-error=<seconds> directives cacheability a response is normally cached by the browser if: it has a status code of 301, 302, 307, 308, or 410 and cache-control does not have no-store, or if proxy, does not have private and authorization is unset either has a status code of 301, 302, 307, 308, or 410 or has public, max-age or s-maxage in cache-control or has expires set public the response may be stored by any cache, even if the response is normally non-cacheable.
...And 10 more matches
Index - Archive of obsolete content
64 url add-on sdk construct,
validate, and parse urls.
...on october 11, 2002, wired launched a brand-new site design that uses
validating xhtml for its structure and a small collection of css files for its layout.
... 601 plug-n-hack get involved security, plugnhack while this project has been started by the mozilla security team and has been
validated with firefox and owasp zap, this is an open project and we welcome involvement from anyone, especially people working on other browsers and security tools.
...And 9 more matches
CSS and JavaScript accessibility best practices - Learn web development
good example uses of unobtrusive javascript include: providing client-side form
validation, which alerts users to problems with their form entries quickly, without having to wait for the server to check the data.
... if it isn't available, the form will still work, but
validation might be slower.
... as an example, we've written a quick and dirty client-side form
validation example — see form-
validation.html (also see the demo live).
...And 9 more matches
IAccessibleTable2
cell if both row and column index are
valid then the corresponding accessible object is returned that represents the requested cell regardless of whether the cell is currently visible (on the screen).
... return value e_in
validarg if bad [in] passed, [out] value is null.
... return value e_in
validarg if bad [in] passed, [out] value is null.
...And 9 more matches
Using CSS transitions - CSS: Cascading Style Sheets
erty: width height background-color font-size left top transform -webkit-transformv color; transition-duration: 0.5s; transition-timing-function: ease-in-out; } function updatetransition() { var el = document.queryselector("div.box"); if (el) { el.classname = "box1"; } else { el = document.queryselector("div.box1"); el.classname = "box"; } return el; } var inter
valid = window.setinterval(updatetransition, 7000); transition-duration: 1s <div class="parent"> <div class="box">lorem</div> </div> .parent { width: 250px; height:125px;} .box { width: 100px; height: 100px; background-color: red; font-size: 20px; left: 0px; top: 0px; position: absolute; -webkit-transition-property: width height background-color f...
...roperty: width height background-color font-size left top transform -webkit-transform color; transition-duration: 1s; transition-timing-function: ease-in-out; } function updatetransition() { var el = document.queryselector("div.box"); if (el) { el.classname = "box1"; } else { el = document.queryselector("div.box1"); el.classname = "box"; } return el; } var inter
valid = window.setinterval(updatetransition, 7000); transition-duration: 2s <div class="parent"> <div class="box">lorem</div> </div> .parent { width: 250px; height:125px;} .box { width: 100px; height: 100px; background-color: red; font-size: 20px; left: 0px; top: 0px; position: absolute; -webkit-transition-property: width height background-color f...
...roperty: width height background-color font-size left top transform -webkit-transform color; transition-duration: 2s; transition-timing-function: ease-in-out; } function updatetransition() { var el = document.queryselector("div.box"); if (el) { el.classname = "box1"; } else { el = document.queryselector("div.box1"); el.classname = "box"; } return el; } var inter
valid = window.setinterval(updatetransition, 7000); transition-duration: 4s <div class="parent"> <div class="box">lorem</div> </div> .parent { width: 250px; height:125px;} .box { width: 100px; height: 100px; background-color: red; font-size: 20px; left: 0px; top: 0px; position: absolute; -webkit-transition-property: width height background-color f...
...And 9 more matches
Index - HTTP
31 csp: child-src csp, directive, http, reference, security the deprecated http content-security-policy (csp) child-src directive defines the
valid sources for web workers and nested browsing contexts loaded using elements such as <frame> and <iframe>.
...for each of the following directives that are absent, the user agent will look for the default-src directive and will use this value for it: 34 csp: font-src csp, directive, http, reference, security the http content-security-policy (csp) font-src directive specifies
valid sources for fonts loaded using @font-face.
... 36 csp: frame-ancestors csp, directive, http, security the http content-security-policy (csp) frame-ancestors directive specifies
valid parents that may embed a page using <frame>, <iframe>, <object>, <embed>, or <applet>.
...And 9 more matches
Creating reftest-based unit tests
i have seen a case where the html file in the bug had a problem, but the checked-in version was "cleaned up" and not
valid for testing.
... testing in
validation testing that a document displays correctly once it has loaded is only one part of testing rendering.
... another part is testing in
validation - testing that when a document is changed after it has finished loading and displaying, that the browser correctly "in
validates" the parts of the screen that should change so that the screen displays the correct output the next time it is repainted.
...And 8 more matches
sslfnc.html
if you use ssl_optionset to turn one of these on when the other one is already turned on for a particular socket, the function returns with the error code set to sec_error_in
valid_args.
...these values are currently
valid: kt_rsa kt_dh kt_fortezza returns the function returns one of these values: if successful, secsuccess.
... checksig pr_true means signatures are to be checked and the certificate chain is to be
validated.
...And 8 more matches
Index
the range of
valid coordinates for this interface are implementation dependent.
...unique tag among all
valid jsdicontext objects, useful as a hash key.
...this attribute is only
valid for contexts which implement nsiscriptcontext.
...And 8 more matches
HTML attribute: pattern - HTML: Hypertext Markup Language
if a non-null value doesn't conform to the constraints set by the pattern value, the
validitystate object's read-only patternmismatch property will be true.
... the pattern attribute, when specified, is a regular expression which the input's value must match in order for the value to pass constraint
validation.
... it must be a
valid javascript regular expression, as used by the regexp type, and as documented in our guide on regular expressions; the 'u' flag is specified when compiling the regular expression, so that the pattern is treated as a sequence of unicode code points, instead of as ascii.
...And 8 more matches
HTML attribute: step - HTML: Hypertext Markup Language
valid for the numeric input types, including the date, month, week, time, datetime-local, number and range types, the step attribute is a number that specifies the granularity that the value must adhere to or the keyword any.
... the step sets the stepping interval when clicking up and down spinner buttons, moving a slider left and right on a range, and
validating the different date types.
...ype="week" min="2019-w23" step="2"> time 60 (seconds) <input type="time" min="09:00" step="900"> datetime-local 1 (day) <input type="datetime-local" min="019-12-25t19:30" step="7"> number 1 <input type="number" min="0" step="0.1" max="10"> range 1 <input type="range" min="0" step="2" max="10"> if any is not explicity set,
valid values for the number, date/time input types, and range input types are equal to the basis for stepping - the min value and increments of the step value, up to the max value, if specified.
...And 8 more matches
Date and time formats used in HTML - HTML: Hypertext Markup Language
a
valid week string consists of a
valid year number, followed by a hyphen character ("-", or u+002d), then the capital letter "w" (u+0057), followed by a two-digit week of the year value.
... examples of
valid week strings week string week and year (date range) 2001-w37 week 37, 2001 (september 10-16, 2001) 1953-w01 week 1, 1953 (december 29, 1952-january 4, 1953) 1948-w53 week 53, 1948 (december 27, 1948-january 2, 1949) 1949-w01 week 1, 1949 (january 3-9, 1949) 0531-w16 week 16, 531 (april 13-19, 531) 0042-w04 week...
...that is, rather than representing simply "january," an html month string represents a month and year paired, like "january 1972." a
valid month string consists of a
valid year number (a string of at least four digits), followed by a hyphen character ("-", or u+002d), followed by a two-digit numeric month number, where 01 represents january and 12 represents december.
...And 8 more matches
NSS 3.12.4 release notes
major changes in nss 3.12.4 nss 3.12.4 is the version that we submitted to nist for fips 140-2
validation.
... currently nss 3.12.4 is in the "review pending" state in the fips 140-2 pre-
validation list at http://csrc.nist.gov/groups/stm/cmvp/documents/140-1/140inprocess.pdf added crl distribution point support (see cert.h).
... cert_decodecrlissuingdistributionpoint cert_findcrlissuingdistpointexten the old documentation of the expression matching syntax rules was incorrect, and the new corrected documentation is as follows for public nssutil functions (see portreq.h): port_regexp
valid port_regexpsearch port_regexpcasesearch these functions will match a string with a shell expression.
...And 7 more matches
PKCS #11 Module Specs
valid names inside nss_params are: flags - comma separated list of flag values, parsed case-insensitive.
...
valid flag values are: internal - this library is actually the netscape internal library fips - this library is the netscape internal fips library.
...
valid slotparams values are: slotflags - comma separated list of cipher groups which this slot is expected to be the default implementation for (case-insensitive).
...And 7 more matches
DOMException - Web APIs
(legacy code value: 4 and legacy constant name: wrong_document_err) in
validcharactererror the string contains in
valid characters.
... (legacy code value: 5 and legacy constant name: in
valid_character_err) nomodificationallowederror the object cannot be modified.
...(legacy code value: 9 and legacy constant name: not_supported_err) in
validstateerror the object is in an in
valid state.
...And 7 more matches
HTMLFieldSetElement - Web APIs
htmlfieldsetelement.
validationmessage a domstring representing a localized message that describes the
validation constraints that the element does not satisfy (if any).
... this is the empty string if the element is not a candidate for constraint
validation (will
validate is false), or it satisfies its constraints.
... htmlfieldsetelement.
validity a
validitystate representing the
validity states that this element is in.
...And 7 more matches
Event reference
dragenter a dragged element or text selection enters a
valid drop target.
... dragleave a dragged element or text selection leaves a
valid drop target.
... dragover an element or text selection is being dragged over a
valid drop target (fired continuously every 350ms).
...And 7 more matches
NSPR Error Handling
pr_bad_descriptor_error the file descriptor used as an argument in the preceding function is in
valid.
... pr_access_fault_error one of the arguments of the preceding function specified an in
valid memory address.
... pr_in
valid_method_error the preceding function is in
valid for the type of file descriptor used.
...And 6 more matches
nsIAccessibleTreeCache
last changed in gecko 1.9.1 (firefox 3.5 / thunderbird 3.0 / seamonkey 2.0) inherits from: nsisupports method overview nsiaccessible getcachedtreeitemaccessible(in long arow, in nsitreecolumn acolumn); void in
validatecache(in long arow, in long acount); void treeviewchanged(); void treeviewin
validated(in long astartrow, in long aendrow, in long astartcol, in long aendcol); methods getcachedtreeitemaccessible() returns the tree item from the cache for the cell in the specified row and column; the nsiaccessible is created if it doesn't already exist in the cache.
...in
validatecache() in
validates the number of cached treeitem accessibles.
... void in
validatecache( in long arow, in long acount ); parameters arow row index the in
validation starts from.
...And 6 more matches
nsIAnnotationService
this is only
valid for page annotations.
... do not use characters that are not
valid in urls such as spaces, ":", commas, or most other symbols.
... do not use characters that are not
valid in urls such as spaces, ":", commas, or most other symbols.
...And 6 more matches
HTMLObjectElement - Web APIs
htmlobjectelement.
validationmessage read only returns a domstring representing a localized message that describes the
validation constraints that the control does not satisfy (if any).
... this is the empty string if the control is not a candidate for constraint
validation (will
validate is false), or it satisfies its constraints.
... htmlobjectelement.
validity read only returns a
validitystate with the
validity states that this element is in.
...And 6 more matches
HTMLOutputElement - Web APIs
htmloutputelement.
validationmessageread only a domstring representing a localized message that describes the
validation constraints that the control does not satisfy (if any).
... this is the empty string if the control is not a candidate for constraint
validation (will
validate is false), or it satisfies its constraints.
... htmloutputelement.
validityread only a
validitystate representing the
validity states that this element is in.
...And 6 more matches
MediaConfiguration - Web APIs
properties a
valid configuration includes a
valid encoding configuration type or decoding configuration type and a
valid audio configuration or video configuration.
... if the media is an audio file, the audio configuration must include a
valid audio mime type as contenttype, the number of channels, the bitrate, and the sample rate.
... video configurations mush include a
valid video mime type as contenttype, the bitrate, and framerate, along with the width and the height of the video file.
...And 6 more matches
PaymentResponse.retry() - Web APIs
this lets your app gracefully deal with situations such as in
valid shipping addresses or declined credit cards.
... syntax retrypromise = paymentrequest.retry(errorfields); parameters errorfields a payment
validationerrors object, with the following properties: error optional a general description of a payment error from which the user may attempt to recover by retrying the payment, possibly after correcting mistakes in the payment information.
... payer optional a payererrors compliant object which provides appropriate error messages for any of the fields describing the payer which failed
validation.
...And 6 more matches
Web Authentication API - Web APIs
browser calls authenticatormakecredential() on authenticator - internally, the browser will
validate the parameters and fill in any defaults, which become the authenticatorresponse.clientdatajson.
...the public key will become part of the attestation, which the authenticator will sign over with a private key that was burned into the authenticator during its manufacturing process and that has a certificate chain that can be
validated back to a root of trust.
... server
validates and finalizes registration - finally, the server is required to perform a series of checks to ensure that the registration was complete and not tampered with.
...And 6 more matches
<easing-function> - CSS: Cascading Style Sheets
with p0 and p3 fixed as defined by css, a cubic bézier curve is a function, and is therefore
valid, if and only if the abscissas of p1 and p2 are both in the [0, 1] range.
... when you specify an in
valid cubic-bezier curve, css ignores the whole property.
...x1 and x2 must be in the range [0, 1] or the value is in
valid.
...And 6 more matches
HTML attribute: minlength - HTML: Hypertext Markup Language
if no minlength is specified, or an in
valid value is specified, the input has no minimum length.
... this value must be less than or equal to the value of maxlength, otherwise the value will never be
valid, as it is impossible to meet both criteria.
... the input will fail constraint
validation if the length of the text value of the field is less than minlength utf-16 code units long, with
validitystate.tooshort returning true.
...And 6 more matches
<input type="file"> - HTML: Hypertext Markup Language
each unique file type specifier may take one of the following forms: a
valid case-insensitive filename extension, starting with a period (".") character.
... a
valid mime type string, with no extensions.
... the accept attribute doesn't
validate the types of the selected files; it simply provides hints for browsers to guide users towards selecting the correct file types.
...And 6 more matches
url - Archive of obsolete content
experimental construct,
validate, and parse urls.
... globals constructors url(source, base) the url constructor creates an object that represents a url, verifying that the provided string is a
valid url in the process.
...if source is not a
valid uri, this constructor will throw an exception.
...And 5 more matches
Back to the Server: Server-Side JavaScript On The Rise - Archive of obsolete content
regardless of how the back-ends of your web applications are implemented, client side you're using javascript for everything from same form
validations to full ajax applications.
... listing 6 - creating the user interface <link href="/jaxer_examples/js/ext-2.1/resources/css/ext-all.css" type="text/css" rel="stylesheet"/> <script src="/jaxer_examples/js/ext-2.1/adapter/ext/ext-base.js"/> <script src="/jaxer_examples/js/ext-2.1/ext-all.js"/> <link href="/jaxer_examples/css/main.css" type="text/css" rel="stylesheet"/> <script runat="both" src="/jaxer_examples/js/
validatecomments.js"/> <script> var txt_name; var txt_email; var txt_message; var btn_comments; var form_comments; ext.onready( function() { // create the name text field txt_name = new ext.form.textfield({ name: "name", fieldlabel: "name", width: 200 }); // create the e-mail text field txt_email = new ext.form.textfield({ name: "email", fieldlabel: "e-mail", width: 200 }); // cr...
...next a script named
validatecomments.js is hooked in with the runat attribute set to both.
...And 5 more matches
WAI-ARIA basics - Learn web development
as an example, aria-required="true" specifies that a form input needs to be filled in to be
valid, whereas aria-labelledby="label" allows you to put an id on an element, then reference it as being the label for anything else on the page, including multiple elements, which is not possible using <label for="input">.
...once that is done, we start up a setinterval() loop that loads a new random quote into the quote box every 10 seconds: let inter
valid = window.setinterval(showquote, 10000); this works ok, but it is not good for accessibility — the content update is not detected by screenreaders, so their users would not know what is going on.
... form
validation and error alerts first of all, let's revisit the form example we first looked at in our css and javascript accessibility article (read keeping it unobtrusive for a full recap).
...And 5 more matches
Debugging HTML - Learn web development
let's look at an example: </strong> </li> html
validation so you can see from the above example that you really want to make sure your html is well-formed!
... the best strategy is to start by running your html page through the markup
validation service — created and maintained by the w3c, the organization that looks after the specifications that define html, css, and other web technologies.
... to specify the html to
validate, you can provide a web address, upload an html file, or directly input some html code.
...And 5 more matches
Python binding for NSS
sslchannelinfo.expiration_time_utc sslchannelinfo.compression_method sslchannelinfo.compression_method_name sslchannelinfo.session_id the following files were added: doc/examples/cert_trust.py doc/examples/ssl_version_range.py the following constants were added: nss.certdb_terminal_record nss.certdb_
valid_peer nss.certdb_trusted nss.certdb_send_warn nss.certdb_
valid_ca nss.certdb_trusted_ca nss.certdb_ns_trusted_ca nss.certdb_user nss.certdb_trusted_client_ca nss.certdb_govt_approved_ca ssl.srtp_aes128_cm_hmac_sha1_32 ssl.srtp_aes128_cm_hmac_sha1_80 ssl.srtp_null_hmac_sha1_32 ssl.srtp_null_hmac_sha1_80 ssl.s...
... release 0.14.0 release date 2013-05-10 scm tag pynss_release_0_14_0 source download https://ftp.mozilla.org/pub/mozilla.org/security/python-nss/releases/pynss_release_0_14_0/src/ change log the primary enhancements in this version is support of certifcate
validation, ocsp support, and support for the certificate "authority information access" extension.
... enhanced certifcate
validation including ca certs can be done via certificate.verify() or certificate.is_ca_cert().
...And 5 more matches
nsICache
access granted - you can read the descriptor to determine if it's
valid, you may write if it needs updating.
...if a cache entry is waiting to be
validated by another cache descriptor (so no new cache descriptors for that key can be created), opencacheentry() will return ns_error_cache_wait_for_
validation in non-blocking mode.
... if the cache entry is
validated, then a descriptor for that entry will be created and returned.
...And 5 more matches
nsIFaviconService
no
validity checking is done.
... if you pass an icon uri that we've never seen, you'll get back a uri that references an in
valid icon.
... the moz-anno protocol handler's special case for "favicon" annotations will resolve in
valid icons to the default icon, although without caching.
...And 5 more matches
nsIRequest
load_from_cache 1 << 10 load from the cache, bypassing protocol specific
validation logic.
... the following flags control the frequency of cached content
validation when neither load_bypass_cache or load_from_cache are set.
... by default, cached content is automatically
validated if necessary before reuse.
...And 5 more matches
system - CSS: Cascading Style Sheets
at least one symbol must be specified in the symbols descriptor, or the counter style is not
valid.
...at least one symbol must be specified in the symbols descriptor or the counter style is not
valid.
...at least one symbol must be specified in the symbols descriptor or the counter style is not
valid.
...And 5 more matches
HTML attribute: max - HTML: Hypertext Markup Language
the max attribute defines the maximum value that is acceptable and
valid for the input containing the attribute.
... if the value of the element is greater than this, the element fails constraint
validation.
...if the max attribute is present by is not specified or is in
valid, no max value is applied.
...And 5 more matches
HTML attribute reference - HTML: Hypertext Markup Language
formno
validate <button>, <input> if the button/input is a submit button (type="submit"), this boolean attribute specifies that the form is not to be
validated when it is submitted.
... if this attribute is specified, it overrides the no
validate attribute of the button's form owner.
... no
validate <form> this attribute indicates that the form shouldn't be
validated when submitted.
...And 5 more matches
<input type="range"> - HTML: Hypertext Markup Language
events change and input supported common attributes autocomplete, list, max, min, and step idl attributes list, value, and valueasnumber methods stepdown() and stepup()
validation there is no pattern
validation available; however, the following forms of automatic
validation are performed: if the value is set to something which can't be converted into a
valid floating-point number,
validation fails because the input is suffering from a bad input.
...in addition to the attributes shared by all <input> elements, range inputs offer the following attributes: attribute description list the id of the <datalist> element that contains optional pre-defined options max the maximum permitted value min the minimum permitted value step the stepping interval, used both for user interface and
validation purposes list the values of the list attribute is the id of a <datalist> element located in the same document.
...if the value entered into the element exceeds this, the element fails constraint
validation.
...And 5 more matches
begin - SVG: Scalable Vector Graphics
negative values are
valid.
... a
valid syncbase-value consists of an id reference to another animation element followed by a dot and either begin or end to identify whether to synchronize with the beginning or active end of the referenced animation element.
... a
valid event-value consists of an element id followed by a dot and one of the supported events for that element.
...And 5 more matches
Index - MDN Web Docs Glossary: Definitions of Web-related terms
162 fuzz testing firefox, fuzzing, mozilla, qa, security, testing fuzzing is a technique for testing software using automated tools to provide in
valid or unexpected input to a program or function in a program, then checking the results to see if the program crashes or otherwise acts inappropriately.
... 292 null codingscripting, glossary in computer science, a null value represents a reference that points, generally intentionally, to a nonexistent or in
valid object or address.
... 393 sql injection glossary, security, sql, sql injection, webapp sql injection takes advantage of web apps that fail to
validate user input.
...And 4 more matches
Working with JSON - Learn web development
the reason we said "mostly right" is that an array is also
valid json, for example: [ { "name": "molecule man", "age": 29, "secretidentity": "dan jukes", "powers": [ "radiation resistance", "turning tiny", "radiation blast" ] }, { "name": "madame uppercut", "age": 39, "secretidentity": "jane wilson", "powers": [ "million tonne punch", "damage resistance", "superhuman reflexes" ]...
... } ] the above is perfectly
valid json.
...single quotes are not
valid.
...And 4 more matches
NSS functions
er ssl_getclientauthdatahook mxr 3.2 and later ssl_getmaxservercachelocks mxr 3.4 and later ssl_getsessionid mxr 3.2 and later ssl_getstatistics mxr 3.2 and later ssl_handshakecallback mxr 3.2 and later ssl_importfd mxr 3.2 and later ssl_inheritmpserversidcache mxr 3.2 and later ssl_in
validatesession mxr 3.2 and later ssl_localcertificate mxr 3.4 and later ssl_optionget mxr 3.2 and later ssl_optiongetdefault mxr 3.2 and later ssl_optionset mxr 3.2 and later ssl_optionsetdefault mxr 3.2 and later ssl_peercertificate mxr 3.2 and later ssl_preencryptedfiletostream mxr 3.2 and ...
... and later cert_addokdomainname mxr 3.4 and later cert_addrdn mxr 3.2.1 and later cert_asciitoname mxr 3.2 and later cert_cachecrl mxr 3.10 and later cert_clearocspcache mxr 3.11.7 and later cert_certchainfromcert mxr 3.2 and later cert_certlistfromcert mxr 3.2 and later cert_certtimes
valid mxr 3.2 and later cert_changecerttrust mxr 3.2 and later cert_checkcert
validtimes mxr 3.2 and later cert_checknamespace mxr 3.12 and later cert_checkcertusage mxr 3.3 and later cert_comparename mxr 3.2 and later cert_compare
validitytimes mxr 3.11 and later cert_completecrldecodeentries mxr ...
...rt_createcertificate mxr 3.5 and later cert_createcertificaterequest mxr 3.2 and later cert_createname mxr 3.2.1 and later cert_createocspcertid mxr 3.6 and later cert_createocsprequest mxr 3.6 and later cert_createrdn mxr 3.2.1 and later cert_createsubjectcertlist mxr 3.4 and later cert_create
validity mxr 3.5 and later cert_crlcacherefreshissuer mxr 3.7 and later cert_decodealtnameextension mxr 3.10 and later cert_decodeauthinfoaccessextension mxr 3.10 and later cert_decodeauthkeyid mxr 3.10 and later cert_decodeavavalue mxr 3.4 and later cert_decodebasicconstraintvalue mxr 3.2 and later ...
...And 4 more matches
Property cache
the entry is
valid only for subsequent lookups that occur at the same instruction, for several reasons: the script, not the property cache entry, contains the id of the property being accessed.
... a property cache entry could be
valid for a getprop but not a setprop, e.g.
... if a property with the same name is ever added to an object anywhere along the search path, then this cache entry becomes in
valid: the property described by this property cache entry has been shadowed.
...And 4 more matches
Mozilla internal string guide
note that iterators become in
valid after changing the length of a string: /** * replace every tab character in `data` with four spaces.
...calling restartbulkwrite() in
validates previously-obtained span, raw pointer or length.
... a 8-bit string can be in one of many character encodings while a 16-bit string is always in potentially-in
valid utf-16.
...And 4 more matches
IAccessibleAction
if it lies outside the
valid range an empty string is returned.
... return value e_in
validarg if bad [in] passed, [out] value is null.
...if it lies outside the
valid range no action is performed.
...And 4 more matches
IAccessibleHyperlink
method overview [propget] hresult anchor([in] long index, [out] variant anchor ); [propget] hresult anchortarget([in] long index, [out] variant anchortarget ); [propget] hresult endindex([out] long index ); [propget] hresult startindex([out] long index ); [propget] hresult
valid([out] boolean
valid ); methods anchor() returns an object that represents the link anchor, as appropriate for the link at the specified index.
...the
valid maximal index is indicated by iaccessibleaction.nactions().
... return value e_in
validarg if bad [in] passed, [out] value is null.
...And 4 more matches
nsILivemarkService
return value a nsiuri representing the uri of the feed; if the livemark container doesn't have a
valid feed uri, null will be returned or the nsiuri object returned will be the empty string.
... exceptions thrown ns_error_in
valid_arg if the folder id isn't known or identifies a folder that isn't a livemark container.
... return value a nsiuri representing the uri of the website; if the livemark container doesn't have a
valid site uri, null will be returned.
...And 4 more matches
Constants - Plugins
nperr_in
valid_instance_error 2 in
valid instance passed to the plug-in.
... nperr_in
valid_functable_error 3 function table in
valid.
... nperr_in
valid_plugin_error 6 plug-in missing or in
valid.
...And 4 more matches
FileSystemEntrySync - Web APIs
in
valid_state_err the filesystemsync is no longer
valid for some reason besides being deleted.
... exceptions this method can raise a fileexception with the following codes: exception description encoding_err the name supplied is in
valid, because at least one of the characters is reserved or illegal.
... in
valid_modification_err you tried one of the following disallowed operations: moving an entry into its parent without changing its name moving a parent directory into one of its child directories.
...And 4 more matches
HTMLFormElement - Web APIs
htmlformelement.no
validate a boolean reflecting the value of the form's no
validate html attribute, indicating whether the form should not be
validated.
... check
validity() returns true if the element's child controls are subject to constraint
validation and satisfy those contraints; returns false if some controls do not satisfy their constraints.
... fires an event named in
valid at any control that does not satisfy its constraints; such controls are considered in
valid if the event is not canceled.
...And 4 more matches
HTMLKeygenElement - Web APIs
validationmessage read only is a domstring representing a localized message that describes the
validation constraints that the control does not satisfy (if any).
... this is the empty string if the control is not a candidate for constraint
validation (will
validate is false), or it satisfies its constraints.
...
validity read only is a
validitystate representing the
validity states that this element is in.
...And 4 more matches
Drag Operations - Web APIs
valid values for dropeffect are none, copy, move, or link.
... specifying drop targets a listener for the dragenter and dragover events are used to indicate
valid drop targets, that is, places where dragged items may be dropped.
... most areas of a web page or application are not
valid places to drop data.
...And 4 more matches
PayerErrors - Web APIs
the payererrors dictionary is used by the payment request api to indicate the presence of—and to explain how to correct—
validation errors in the payer details.
... for each field in the payment information that fails
validation, the payererrors object contains a string explaining the error.
... properties email optional if present, this domstring is a string describing the
validation error from which the payer's email address—as given by paymentresponse.payeremail—currently suffers.
...And 4 more matches
PaymentRequest.show() - Web APIs
most examples on mdn and elsewhere use async/await to wait asynchronously while results are
validated and so forth.
... in
validstateerror the promise rejects with an in
validstateerror if the same payment has already been shown for this request (its state is interactive because it is being shown already).
...the code to handle payments particularly cleanly: async function processpayment() { try { const payrequest = new paymentrequest(methoddata, details, options); payrequest.onshippingaddresschange = ev => ev.updatewith(checkaddress(payrequest)); payrequest.onshippingoptionchange = ev => ev.updatewith(checkshipping(payrequest)); const repsonse = await payrequest.show(); await
validateresponse(response); } catch(err) { /* handle the error; aborterror usually means a user cancellation */ } } in this code, the methods checkaddress() and checkshipping(), respectively, check the shipping address and the shipping option changes and supply in response either a paymentdetailsupdate object or a promise to return one; this object contains the fields in the paymentresponse w...
...And 4 more matches
WebGL2RenderingContext - Web APIs
webgl2renderingcontext.in
validateframebuffer() in
validates the contents of attachments in a framebuffer.
... webgl2renderingcontext.in
validatesubframebuffer() in
validates portions of the contents of attachments in a framebuffer webgl2renderingcontext.readbuffer() selects a color buffer as the source for pixels.
... webgl2renderingcontext.isquery() returns true if a given object is a
valid webglquery object.
...And 4 more matches
WebGLRenderingContext - Web APIs
webglrenderingcontext.isbuffer() returns a boolean indicating if the passed buffer is
valid.
... webglrenderingcontext.isframebuffer() returns a boolean indicating if the passed webglframebuffer object is
valid.
... webglrenderingcontext.isrenderbuffer() returns a boolean indicating if the passed webglrenderingbuffer is
valid.
...And 4 more matches
WebGL best practices - Web APIs
avoid in
validating fbo attachment bindings almost any change to an fbo's attachment bindings will in
validate its framebuffer completeness.
... in firefox, setting the pref webgl.perf.max-warnings to -1 in about:config will enable performance warnings that include warnings about fb completeness in
validations.
...for unchanged vaos, browsers can cache the fetch limits, whereas when vaos change, browsers must re
validate and recalculate limits.
...And 4 more matches
Syntax - CSS: Cascading Style Sheets
each property has a set of
valid values, defined by a formal grammar, as well as a semantic meaning, implemented by the browser engine.
...not all pairs of properties and values are allowed and each property defines what are the
valid values.
... when a value is not
valid for a given property, the declaration is deemed in
valid and is wholly ignored by the css engine.
...And 4 more matches
HTML attribute: rel - HTML: Hypertext Markup Language
valid on <link>, <a>, <area>, and <form>, the supported values depend on the element on which the attribute is found.
...
valid for link, a, and area, the meaning depends on the values of the other attributes.
... canonical
valid for <link>, it defines the preferred url for the current document, which is useful for search engines.
...And 4 more matches
end - SVG: Scalable Vector Graphics
negative values are
valid.
... a
valid syncbase-value consists of an id reference to another animation element followed by a dot and either begin or end to identify whether to synchronize with the beginning or active end of the referenced animation element.
... a
valid event-value consists of an element id followed by a dot and one of the supported events for that element.
...And 4 more matches
Jetpack Processes - Archive of obsolete content
to prevent such memory leaks, a process can either in
validate a handle, immediately preventing it from being passed as a message argument, or it can unroot the handle, allowing it to be passed as a message argument until all references to it are removed, at which point it is garbage collected.
... handles have the following native methods and properties: in
validate() in
validates the handle.
... either process may in
validate a handle when it is no longer useful.
...And 3 more matches
Space Manager Detailed Design - Archive of obsolete content
you specify whether the width change applies to the left or right edge * * returns ns_ok if successful, ns_error_in
valid_arg if there is no region * tagged with aframe */ enum affectededge {leftedge, rightedge}; nsresult resizerectregion(nsiframe* aframe, nscoord adeltawidth, nscoord adeltaheight, affectededge aedge = rightedge); /** * offset the region associated with aframe by the specified amount.
... * * returns ns_ok if successful, ns_error_in
valid_arg if there is no region * tagged with aframe */ nsresult offsetregion(nsiframe* aframe, nscoord dx, nscoord dy); /** * remove the region associated with afrane.
... * * returns ns_ok if successful and ns_error_in
valid_arg if there is no region * tagged with aframe */ nsresult removeregion(nsiframe* aframe); /** * clears the list of regions representing the unavailable space.
...And 3 more matches
Using Visual Studio as your XUL IDE - Archive of obsolete content
compared to a simple text-editor, visual studio gives you some special features when writing xul: intellisense / autocompletion for elements and attributes
validation syntax coloring (okay, more sophisticated editors like notepad++ provide this as well) before you can use all of this, you have to adjust visual studio a little.
...using xml schemas for
validation and intellisense visual studio needs the xml schema for xul files.
...to combine both, you can also add your own xbl elements to the xul schema to get autocompletion-support and
validation for those in your xul files.
...And 3 more matches
Implementation Status - Archive of obsolete content
ported 3.2.2 linking attributes supported 3.2.3 single-node binding attributes supported 3.2.4 node-set binding attributes supported 3.2.5 model item property attributes partial in some cases a loop error can occur on
valid bindings 302168; 3.3.1 model supported 3.3.2 instance partial instance element with two child element does not trigger exception 337302; 3.3.3 submission partial no support for @indent and complex schema
validation 278761; 278762; 3.3.4 bind ...
...processing model (events) section title status notes bugs 4 processing model (events) partial the xforms-recalculate, xforms-re
validate, and xforms-refresh events are not as separated as they should be.
...-model-construct-done supported 4.2.3 xforms-ready supported 4.2.4 xforms-model-destruct supported 4.3.1 xforms-rebuild supported 4.3.2 xforms-recalculate supported 4.3.3 xforms-re
validate supported 4.3.4 xforms-refresh supported 4.3.5 xforms-reset supported 4.3.6 xforms-next xforms-previous supported 4.3.7 xforms-focus supported 4.3.8 xforms-help xforms-hint ...
...And 3 more matches
Sending form data - Learn web development
previous overview: forms once the form data has been
validated on the client-side, it is okay to submit the form.
... and, since we covered
validation in the previous article, we're ready to submit!
...its value must be a
valid relative or absolute url.
...And 3 more matches
Index - Learn web development
233 debugging html beginner, codingscripting, debugging, error, guide, html,
validation,
validator so there we have it, an introduction to debugging html, which should give you some useful skills to count on when you start to debug css, javascript, and other types of code later on in your career.
...in the articles listed below, we'll cover all the essential aspects of web forms including marking up their html structure, styling form controls,
validating form data, and submitting data to the server.
... 312 client-side form
validation beginner, example, forms, guide, html, javascript, learn, web, regex client-side form
validation sometimes requires javascript if you want to customize styling and error messages, but it always requires you to think carefully about the user.
...And 3 more matches
Handling common HTML and CSS problems - Learn web development
validation for html,
validation involves making sure all your tags are properly closed and nested, you are using a doctype, and you are using tags for their correct purpose.
... a good strategy is to
validate your code regularly.
... one service that can do this is the w3c markup
validation service, which allows you to point to your code, and returns a list of errors: css has a similar story — you need to check that your property names are spelled correctly, property values are spelled correctly and are
valid for the properties they are used on, you are not missing any curly braces, and so on.
...And 3 more matches
Links and Resources
online accessibility
validators there are now a few available and excellent online accessibility
validators which check single webpages according to checkpoints of wcag guidelines and then reports errors or warnings.
... webxact™ from watchfire® corporation webxact™ is a free and complete online accessibility
validation service that can test single pages for quality, accessibility and privacy issues.
... cynthia says™ from hisoftware® company "cynthia says™" is a free online webpage accessibility
validation service that identifies accessibility errors in webpage related to section 508 standards and/or the wcag guidelines.
...And 3 more matches
An overview of NSS Internals
for example: certificates were
valid at the time the signature was made, name in certificates matches the expected signer (check subject name, common name, email, based on application), the trust restrictions recorded inside the certificate (extensions) permit the use (e.g., encryption might be allowed, but not signing), and based on environment/application policy it might be required to perform a revocation check (ocsp or crl), tha...
...t asks the issuer(s) of the certificates whether there have been events that made it necessary to revoke the trust (revoke the
validity of the cert).
...if a self-signed certificate is marked as explicitly trusted, nss will skip checking the self-signature for
validity.
...And 3 more matches
PKCS11 FAQ
is this an in
valid session handle?
... a session handle of 0 is indeed in
valid.
... in the past, nss uses the in
valid session handle to mark problems with acquiring or using a session.
...And 3 more matches
IAccessible2
return value s_false if no values are
valid.
... s_ok if at least one value is
valid.
...relation return value e_in
validarg if bad [in] passed, [out] value is null.
...And 3 more matches
nsIAccessibleHyperLink
inherits from: nsisupports last changed in gecko 1.9 (firefox 3) method overview nsiaccessible getanchor(in long index); note: renamed from getobject in gecko 1.9 nsiuri geturi(in long index); boolean isselected(); obsolete since gecko 1.9 boolean is
valid(); obsolete since gecko 1.9 attributes attribute type description anchorcount long the number of anchors within this hyperlink.
...
valid boolean determines whether the hyperlink is
valid, for example points to a
valid url.
... note: currently only used with aria links, and the author has to specify that the link is in
valid via the aria-in
valid='true' attribute.
...And 3 more matches
nsICachingChannel
this is
valid for as long as a reference to the cache token is held.
...depending on the value of nsirequest.loadflags(), the cache entry may be
validated, overwritten, or simply read.
...setting a null cache key is likewise
valid.
...And 3 more matches
nsICrashReporter
ns_error_in
valid_arg on set if a non-http(s) url is assigned.
... exceptions thrown ns_error_in
valid_arg if key or data contain in
valid characters.
... in
valid characters for key are '=' and '\n'.
...And 3 more matches
nsIHttpServer
* * @param path * the path which is to be mapped to the given file; must begin with "/" and * be a
valid uri path (i.e., no query string, hash reference, etc.) * @param file * the file to serve for the given path, or null to remove any mapping that * might exist; this file must exist for the lifetime of the server */ void registerfile(in string path, in nsifile file); /** * registers a custom path handler.
...anonicalized, since most browsers will do so * before sending otherwise-matching requests * @param handler * an object which will handle any requests for the given path, or null to * remove any existing handler; if while the server is running the handler * throws an exception while responding to a request, an http 500 response * will be returned * @throws ns_error_in
valid_arg * if path does not begin with a "/" */ void registerpathhandler(in string path, in nsihttprequesthandler handler); /** * registers a custom prefix handler.
... * @param handler * an object which will handle any requests for the given path, or null to * remove any existing handler; if while the server is running the handler * throws an exception while responding to a request, an http 500 response * will be returned * @throws ns_error_in
valid_arg * if path does not begin with a "/" or does not end with a "/" */ void registerprefixhandler(in string prefix, in nsihttprequesthandler handler); /** * registers a custom error page handler.
...And 3 more matches
nsITreeBoxObject
void ensurecellisvisible(in long row, in nsitreecolumn col); void scrolltorow(in long index); void scrollbylines(in long numlines); void scrollbypages(in long numpages); void scrolltocell(in long row, in nsitreecolumn col); void scrolltocolumn(in nsitreecolumn col); void scrolltohorizontalposition(in long horizontalposition); void in
validate(); void in
validatecolumn(in nsitreecolumn col); void in
validaterow(in long index); void in
validatecell(in long row, in nsitreecolumn col); void in
validaterange(in long startindex, in long endindex); void in
validatecolumnrange(in long startindex, in long endindex, in nsitreecolumn col); long getrowat(in long x, in long y); void getc...
... void scrolltohorizontalposition(in long horizontalposition); parameters horizontalposition the number of pixels to scroll in
validate() in
validatecolumn() in
validaterow() in
validatecell() in
validaterange() in
validatecolumnrange() in
validation methods for fine-grained painting control.
... void in
validate(); void in
validatecolumn(in nsitreecolumn col); void in
validaterow(in long index); void in
validatecell(in long row, in nsitreecolumn col); void in
validaterange(in long startindex, in long endindex); void in
validatecolumnrange(in long startindex, in long endindex, in nsitreecolumn col); getrowat() a hit test that can tell you what row the mouse is over.
...And 3 more matches
HTMLInputElement.stepDown() - Web APIs
valid on all numeric, date, and time input types that support the step attribute, includingdate, month, week, time, datetime-local, number, and range.
... if the value before invoking the stepdown() method is in
valid, for example, if it doesn't match the constraints set by the step attribute, invoking the stepdown() method will return a value that does match the form controls constraints.
... if the form control is non time, date, or numeric in nature, and therefore does not support the step attribute (see the list of supported input types in the the table above), or if the step value is set to any, an in
validstateerror exception is thrown.
...And 3 more matches
PaymentResponse: payerdetailchange event - Web APIs
the event handler for payerdetailchange should check each value in the form that has changed and ensure that the values are
valid.
... if any are in
valid, appropriate error messages should be configured and the retry() method should be called on the paymentresponse to ask the user to update the in
valid entries.
... bubbles no cancelable no interface paymentrequestupdateevent event handler property onpayerdetailchange examples in the example below, onpayerdetailchange is used to set up a listener for the payerdetailchange event in order to
validate the information entered by the user, requesting that any mistakes be corrected // options for paymentrequest(), indicating that shipping address, // payer email address, name, and phone number all be collected.
...And 3 more matches
WebGL constants - Web APIs
in
valid_enum 0x0500 returned from geterror.
... in
valid_value 0x0501 returned from geterror.
... in
valid_operation 0x0502 returned from geterror.
...And 3 more matches
WindowOrWorkerGlobalScope.setInterval() - Web APIs
syntax var inter
valid = scope.setinterval(func, [delay, arg1, arg2, ...]); var inter
valid = scope.setinterval(function[, delay]); var inter
valid = scope.setinterval(code, [delay]); parameters func a function to be executed every delay milliseconds.
... return value the returned inter
valid is a numeric, non-zero value which identifies the timer created by the call to setinterval(); this value can be passed to windoworworkerglobalscope.clearinterval() to cancel the timeout.
... var inter
valid = window.setinterval(mycallback, 500, 'parameter 1', 'parameter 2'); function mycallback(a, b) { // your code here // parameters are purely optional.
...And 3 more matches
Basic form hints - Accessibility
required and in
valid fields note: now that required is available to more than 97% of users globally, it is no longer recommended that you use both required and aria-required.
... web developers typically use presentational strategies to indicate required or in
valid fields.
...aria provides attributes for indicating that form controls are required or in
valid: the aria-required property can be applied to a form element, to indicate to an at that it is required to complete the form.
...And 3 more matches
Accessibility Information for Web Authors - Accessibility
automated checking & repair cynthia says™ from hisoftware® company "cynthia says™" is a free online webpage accessibility
validation service that is designed to identify errors in webpage related to section 508 standards and/or the wcag guidelines.
... wave 4.0 beta (web accessibility versatile evaluator) from webaim and sponsored by temple university institute on disabilities wave 4.0 beta is another powerful, free online webpage accessibility
validation service that identifies accessibility errors and reports accessibility warnings about webpage related to section 508 standards and/or the wcag guidelines.
... html advanced
validator (firefox extension) by marc gueury this html
validator (based on w3c tidy and on opensp for sgml
validation) is a powerful, versatile, extended html
validator.
...And 3 more matches
@font-feature-values - CSS: Cascading Style Sheets
a swash feature value definition allows only one value: ident1: 2 is
valid, but ident2: 2 4 isn't.
...an annotation feature value definition allows only one value: ident1: 2 is
valid, but ident2: 2 4 isn't.
...an ornaments feature value definition allows only one value: ident1: 2 is
valid, but ident2: 2 4 isn't.
...And 3 more matches
transition-duration - CSS: Cascading Style Sheets
in both case the css declaration stays
valid.
...a negative value for the time renders the declaration in
valid.
...operty: width height background-color font-size left top transform -webkit-transformv color; transition-duration:0.5s; transition-timing-function: ease-in-out; } function updatetransition() { var el = document.queryselector("div.box"); if (el) { el.classname = "box1"; } else { el = document.queryselector("div.box1"); el.classname = "box"; } return el; } var inter
valid = window.setinterval(updatetransition, 7000); transition-duration: 1s <div class="parent"> <div class="box">lorem</div> </div> .parent { width: 250px; height:125px;} .box { width: 100px; height: 100px; background-color: red; font-size: 20px; left: 0px; top: 0px; position:absolute; -webkit-transition-property: width height background-color font-size ...
...And 3 more matches
<input type="image"> - HTML: Hypertext Markup Language
supported common attributes alt, src, width, height, formaction, formenctype, formmethod, formno
validate, formtarget idl attributes none.
...ments, image button inputs support the following attributes: attribute description alt alternate string to display when the image can't be shown formaction the url to which to submit the data formenctype the encoding method to use when submitting the form data formmethod the http method to use when submitting the form formno
validate a boolean which, if present, indicates that the form shouldn't be
validated before submission formtarget a string indicating a browsing context from where to load the results of submitting the form height the height, in css pixels, at which to draw the image src the url from which to load the image width the width, in css pixels, at which to d...
... formno
validate a boolean attribute which, if present, specifies that the form should not be
validated before submission to the server.
...And 3 more matches
jpm - Archive of obsolete content
jpm sign --api-key ${jwt_issuer} --api-secret ${jwt_secret} this submits an xpi it to the addons.mozilla.org signing api, then downloads a signed xpi to the working directory if it passes
validation.
... here are some possible outcomes of running the sign command: your add-on passed
validation, was signed by mozilla, and a new signed xpi was downloaded to your working directory.
... your add-on failed
validation, was not signed, and you got a link to a detailed report.
...And 2 more matches
Template Logging - Archive of obsolete content
querytype attribute doesn't specify a
valid query processor this error indicates that the querytype attribute is set to an unrecognized value.
...unexpected <queryset> element a <queryset> element was placed in an in
valid location; they should be placed directly inside the <template> element with no other kinds of elements as siblings.
...xpath expression in query could not be parsed for xml datasources, a query attribute has an xpath expression that is not
valid.
...And 2 more matches
Adding HTML Elements - Archive of obsolete content
if you left out the html: part, the browser would think that the elements were xul elements and they would not display because img, input, table, and so on are not
valid xul tags.
...in
valid html elements <html:po>case 1</html:po> <div>case 2</div> <html:description value="case 3"/> all three of the cases above will not display, each for a different reason.
... case 1 po is not a
valid html tag and mozilla has no idea what to do with it.
...And 2 more matches
Standards-Compliant Authoring Tools - Archive of obsolete content
html-kit is a full-featured, low priced editor designed to help html, xhtml and xml authors to edit, format, lookup help,
validate, preview and publish web pages.
...
validation is done with html tidy, so you can verify standards compliance.
...some versions of microsoft word create in
valid html code that only works with internet explorer.
...And 2 more matches
The Business Benefits of Web Standards - Archive of obsolete content
most of this information uses in
valid html which happens to be displayed correctly in permissive older browsers.
... as the web evolves, web browsers may eventually become either less permissive, or behave differently when given in
valid markup (e.g.
... parse in
valid data and render it slightly differently).
...And 2 more matches
How CSS is structured - Learn web development
all the examples below are
valid selectors, or lists of selectors.
...write css rules that apply styling to different html elements: font-size width background-color color border important: if a property is unknown, or if a value is not
valid for a given property, the declaration is processed as in
valid.
... for example, these declarations are
valid css: margin: 0 auto; padding-left: 10px; but these declarations are in
valid: margin: 0auto; padding- left: 10px; do you see the spacing errors?
...And 2 more matches
Tips for authoring fast-loading HTML pages - Learn web development
tools such as html tidy can automatically strip leading whitespace and extra blank lines from
valid html source.
... use modern css and
valid markup use of modern css reduces the amount of markup, can reduce the need for (spacer) images, in terms of layout, and can very often replace images of stylized text -- that "cost" much more than the equivalent text-and-css.
... using
valid markup has other advantages.
...And 2 more matches
Mozilla accessibility architecture
to see what parts of the accessibility cache need to be in
validated.
...we need to listen to some attribute changes because they might signal the need to in
validate parts of our cache; for example, if the name or href attribute on an anchor element changes, or the usemap attribute of an img changes.
...for example, this allows the msaa client to in
validate parts of its own cache or data model based on dom mutation events.
...And 2 more matches
What to do and what not to do in Bugzilla
resolving bugs as in
valid you should resolve a bug as in
valid if the issue described in the bug is clearly not a mozilla bug or if the issue is intended behavior.
...bugs covered by this exception should not be in
validated by anyone other than the module owner or module peer; for bugs involving modules like layout or content, attach a test case to the bug and then cc one of the owners or peers.
... reports of problems with specific websites that result from bad coding practices already determined to be “tech evangelism” cases by the module owner or peer, or problems that result from the use of proprietary technology, should be be moved to the tech evangelism product rather than being resolved as in
valid.
...And 2 more matches
NetUtil.jsm
exceptions thrown this method throws an exception with the message "must have a non-null string spec or nsifile object" and result code ns_error_in
valid_arg if aspec is null.
... replacement a character with which to replace any in
valid byte sequences in the input stream.
... if you don't specify a replacement character, any in
valid sequences will result in ns_error_illegal_input being thrown.
...And 2 more matches
Certificate functions
and later cert_addokdomainname mxr 3.4 and later cert_addrdn mxr 3.2.1 and later cert_asciitoname mxr 3.2 and later cert_cachecrl mxr 3.10 and later cert_clearocspcache mxr 3.11.7 and later cert_certchainfromcert mxr 3.2 and later cert_certlistfromcert mxr 3.2 and later cert_certtimes
valid mxr 3.2 and later cert_changecerttrust mxr 3.2 and later cert_checkcert
validtimes mxr 3.2 and later cert_checknamespace mxr 3.12 and later cert_checkcertusage mxr 3.3 and later cert_comparename mxr 3.2 and later cert_compare
validitytimes mxr 3.11 and later cert_completecrldecodeentries mxr ...
...rt_createcertificate mxr 3.5 and later cert_createcertificaterequest mxr 3.2 and later cert_createname mxr 3.2.1 and later cert_createocspcertid mxr 3.6 and later cert_createocsprequest mxr 3.6 and later cert_createrdn mxr 3.2.1 and later cert_createsubjectcertlist mxr 3.4 and later cert_create
validity mxr 3.5 and later cert_crlcacherefreshissuer mxr 3.7 and later cert_decodealtnameextension mxr 3.10 and later cert_decodeauthinfoaccessextension mxr 3.10 and later cert_decodeauthkeyid mxr 3.10 and later cert_decodeavavalue mxr 3.4 and later cert_decodebasicconstraintvalue mxr 3.2 and later ...
...ert_destroycertlist mxr 3.2 and later cert_destroyname mxr 3.2 and later cert_destroyocspcertid mxr 3.6 and later cert_destroyocsprequest mxr 3.6 and later cert_destroyocspresponse mxr 3.7 and later cert_destroyoidsequence mxr 3.9 and later cert_destroyusernotice mxr 3.10 and later cert_destroy
validity mxr 3.5 and later cert_dupcertificate mxr 3.2 and later cert_dupcertlist mxr 3.2 and later cert_enableocspchecking mxr 3.2 and later cert_encodealtnameextension mxr 3.7 and later cert_encodeandaddbitstrextension mxr 3.5 and later cert_encodeauthkeyid mxr 3.5 and later cert_encodebasicconstr...
...And 2 more matches
nss tech note3
this message attempts to answer that question, and to document nss's approach to
validating certificates for certain purposes.
... when nss is asked to verify the
validity of a certificate chain, it verifies the
validity of that cert chain for a particular purpose, known as a seccertusage, as of a specific date and time.
... each cert has a "type" and a "key usage", each of which may contain one or more
valid values.
...And 2 more matches
sslcrt.html
validating certificates manipulating certificates getting certificate information comparing secitem objects
validating certificates cert_verifycertnow cert_verifycertname cert_checkcert
validtimes nss_cmpcertchainwcanames cert_verifycertnow checks that the current date is within the certificate's
validity period and that the ca signature on the certificate is
valid.
... cert_checkcert
validtimes checks whether a specified time is within a certificate's
validity period.
... syntax #include <cert.h> #include <certt.h> seccerttime
validity cert_checkcert
validtimes( certcertificate *cert, int64 t); parameters this function has the following parameters: cert a pointer to the certificate whose
validity period you want to check against.
...And 2 more matches
NSS_3.12.3_release_notes.html
bug 472319: vfychain
validates chain even if revoked certificate.
... bug 473357: ssltap incorrectly parses handshake messages that span record boundaries bug 473365: incompatible argument in pkix_
validate.c.
... bug 478931: object leak in pkix_list_mergelists function bug 478994: allow softoken's fork check to be disabled bug 479029: ocsp response signature cert found in
valid if issuer is trusted only for ssl bug 479601: wrong type (utf8 string) for email addresses in subject by cert_asciitoname bug 480142: use sizeof on the correct type of ckc_x509 in lib/ckfw bug 480257: ocsp fails when response > 1k byte bug 480280: the cka_ec_point pkcs#11 attribute is encoded in the wrong way: missing encapsulating octet string bug 480442: remove (empty) watcomfx.h from...
...And 2 more matches
Index
121 jsid_void jsapi reference, reference, référence(2), spidermonkey jsid_void does not occur in js scripts but may be used to indicate the absence of a
valid jsid.
... a void jsid is not a
valid id and only arises as an exceptional api return value, such as in js_nextproperty.
... 193 js_bufferiscompilableunit jsapi reference, spidermonkey given a buffer, return false if the buffer might become a
valid javascript statement with the addition of more lines.
...And 2 more matches
Shell global objects
isasmjsmodule(fn) returns whether the given value is a function containing "use asm" that has been
validated according to the asm.js spec.
...this function throws an error if fn is not a
validated asm.js module.
... isasmjsfunction(fn) returns whether the given value is a nested function in an asm.js module that has been both compile- and link-time
validated.
...And 2 more matches
Animated PNG graphics
it must appear before the first 'idat' chunk within a
valid png stream.
...0 is not a
valid value.
... 1 is a
valid value for a single-frame apng.
...And 2 more matches
Creating the Component Code
the last parameter is the out variable which will contain a
valid object if and only if the method succeeds[non-null-out].
... ns_imethodimp samplefactory::createinstance(nsisupports *aouter, const nsiid & iid, void * *result) { if (!result) return ns_error_in
valid_arg; sample* sample = new sample(); if (!sample) return ns_error_out_of_memory; nsresult rv = sample->queryinterface(iid, result); if (ns_failed(rv)) { *result = nsnull; delete sample; } return rv; } weblock1.cpp before any of the improvements and xpcom tools we describe in the following chapter are brought in, the source code for the weblock component that implemen...
...thodimp_(nsrefcnt) samplefactory::addref() { return ++mrefcnt; } ns_imethodimp_(nsrefcnt) samplefactory::release() { if (--mrefcnt == 0) { delete this; return 0; } return mrefcnt; } ns_imethodimp samplefactory::createinstance(nsisupports *aouter, const nsiid & iid, void * *result) { if (!result) return ns_error_in
valid_arg; sample* sample = new sample(); if (!sample) return ns_error_out_of_memory; nsresult rv = sample->queryinterface(iid, result); if (ns_failed(rv)) { *result = nsnull; delete sample; } return rv; } ns_imethodimp samplefactory::lockfactory(prbool lock) { return ns_error_not_implemented; } // module implementation class samplemodule : public nsimodule { pub...
...And 2 more matches
IAccessibleHypertext
hyperlink if the given index is
valid, that is it lies in the interval from 0 to the number of links minus one, a reference to the specified hyperlink object is returned.
... if the index is in
valid then a null pointer is returned.
... return value e_in
validarg if bad [in] passed, [out] value is null.
...And 2 more matches
jsdIStackFrame
unique tag among all
valid jsdicontext objects, useful as a hash key.
...this attribute is only
valid for contexts which implement nsiscriptcontext.
...these are only
valid inside the jsdiexecutionhook which gave it to you.
...And 2 more matches
nsIEffectiveTLDService
exceptions thrown ns_error_in
valid_arg this exception is thrown if the hostname in auri is empty.
... exceptions thrown ns_error_in
valid_arg this exception is thrown if ahost is empty.
...that is no longer the case, since these are not
valid host names.
...And 2 more matches
nsIScriptableIO
exceptions thrown ns_error_in
valid_arg alocation was null.
...exceptions thrown ns_error_in
valid_arg afilepath was null.
...exceptions thrown ns_error_in
valid_arg auri was null.
...And 2 more matches
nsIWindowsRegKey
in that case, it is the responsibility of the consumer setting the hkey to ensure that it is a
valid hkey.
...note: on 32-bit windows, it is
valid to pass any hkey as the rootkey parameter of this function.
...void create( in unsigned long rootkey, in astring relpath, in unsigned long mode ); parameters rootkey a root key defined above or any
valid hkey on 32-bit windows.
...And 2 more matches
Debugger.Script - Firefox Developer Tools
for scripts created by eval or the function constructor, this may be a synthesized filename, starting with a
valid url and followed by information tracking how the code was introduced into the system; the entire string is not a
valid url.
...ifoffset is not a
valid offset in this script, throw an error.
...ifoffset is present, but not a
valid offset in this script, throw an error.
...And 2 more matches
Console messages - Firefox Developer Tools
synchronous and asynchronous reflows if a change is made that in
validates the current layout — for example, the browser window is resized or some javascript modifies an element's css — the layout is not recalculated immediately.
...in this way the browser can save up a collection of in
validating changes and recalculate their effect at once.
...ronous, reflow, when it calls window.getcomputedstyle(thing).height: var thing = document.getelementbyid("the-thing"); thing.style.display = "inline-block"; var thingheight = window.getcomputedstyle(thing).height; because of this, it's a good idea to avoid interleaving write and read calls to an element's styles when manipulating the dom, because every time you read back a style that has been in
validated by a previous write call, you force a synchronous reflow.
...And 2 more matches
Applying styles and colors - Web APIs
the
valid strings you can enter should, according to the specification, be css <color> values.
...the
valid range is again between 0.0 (fully transparent) and 1.0 (fully opaque).
... a miter limit equal to 1.0 is
valid but will disable all miters.
...And 2 more matches
DOMError - Web APIs
in
validcharactererror the string contains in
valid characters.
... notsupportederror the operation is not supported in
validstateerror the object is in an in
valid state.
... in
validmodificationerror the object can not be modified in this way.
...And 2 more matches
Document - Web APIs
globaleventhandlers.onin
valid is an eventhandler representing the code to be called when the in
valid event is raised.
... dragenter fired when a dragged element or text selection enters a
valid drop target.
... dragleave fired when a dragged element or text selection leaves a
valid drop target.
...And 2 more matches
IDBCursor.continuePrimaryKey() - Web APIs
calling this method more than once before new cursor data has been loaded - for example, calling continueprimarykey() twice from the same onsuccess handler - results in an in
validstateerror being thrown on the second call because the cursor’s got value flag has been unset.
... this method is only
valid for cursors coming from an index.
... dataerror the key parameter may have any of the following conditions: the key is not a
valid key.
...And 2 more matches
PayerErrors.email - Web APIs
the email property is included in a payererrors object if the paymentresponse.payeremail property failed
validation; in this case, the property should contain a string describing how to correct the problem.
... if the payer's email address passed
validation, this property is not included in the payererrors object.
... syntax payeremail = payererrors.email; value if
validation of the payer's email address (paymentresponse.payeremail) found problems, this property should be set to a domstring that explains the
validation problem and how to correct it.
...And 2 more matches
PayerErrors.name - Web APIs
the name property is included in a payererrors object if the payername returned in the response couldn't be
validated.
...if the payer's name
validated successfully, the name property is omitted from the payererrors object.
... syntax payername = payererrors.name; value if this property is present in the payererrors object, the payer's name couldn't be successfully
validated, and the name property's value is a domstring explaining the error.
...And 2 more matches
PayerErrors.phone - Web APIs
the phone property is found in a payererrors object if the payername returned in the response couldn't be
validated as a
valid phone number.
...if the payer's phone number
validated successfully, the phone property is omitted from the payererrors object.
... syntax payerphone = payererrors.phone; value if this property is present in the payererrors object, the payer's phone number couldn't be successfully
validated, and the phone property's value is a domstring explaining the error.
...And 2 more matches
PaymentCurrencyAmount.value - Web APIs
the contents of this string must be a
valid decimal number; that is, some number of digits between 0 and 9 with up to one optional decimal point.
...you must convert the entered text to this form or it will not be
valid.
...this must be a
valid decimal number, with an optional leading minus sign ("-"), then one or more decimal digits 0 through 9, optionally with a decimal point (".") with at least one digit following it to represent fractional units.
...And 2 more matches
Payment Request API - Web APIs
consistent error handling: the browser can check the
validity of card numbers, and can tell the user if a card has expired (or is about to expire).
... merchant
validationevent represents the browser requiring the merchant (website) to
validate themselves as allowed to use a particular payment handler (e.g., registered as allowed to use apple pay).
... basiccarderrors an object providing any error messages associated with the fields in the basiccardresponse object that are not
valid.
...And 2 more matches
RTCPeerConnection.setRemoteDescription() - Web APIs
exceptions the following exceptions are reported to the rejection handler for the promise returned by setremotedescription(): in
validaccesserror the content of the description is in
valid.
... in
validstateerror the rtcpeerconnection is closed, or it's in a state which isn't compatible with the specified description's type.
...this includes identity
validation errors.
...And 2 more matches
WebGLRenderingContext.getError() - Web APIs
gl.in
valid_enum an unacceptable value has been specified for an enumerated argument.
... gl.in
valid_value a numeric argument is out of range.
... gl.in
valid_operation the specified command is not allowed for the current state.
...And 2 more matches
How to check the security state of an XMLHTTPRequest over SSL - Web APIs
was the used ssl certificate
valid and what are its details (owner, expiration, certificate authority, etc.)?
... case 13: // sec_error_unknown_issuer, sec(13) case 20: // sec_error_untrusted_issuer, sec(20) case 21: // sec_error_untrusted_cert, sec(21) case 36: // sec_error_ca_cert_in
valid, sec(36) errname = 'securityuntrustedcertificateissuererror'; break; case 90: // sec_error_inadequate_key_usage, sec(90) errname = 'securityinadequatekeyusageerror'; break; case 176: // sec_error_cert_signature_algorithm_disabled, sec(176) errname = 'securitycertificatesignaturealgorithmdisablederror'; break; defa...
...ueryinterface(ci.nsisslstatusprovider) .sslstatus.queryinterface(ci.nsisslstatus).servercert; dump("\tcommon name (cn) = " + cert.commonname + "\n"); dump("\tissuer = " + cert.issuerorganization + "\n"); dump("\torganisation = " + cert.organization + "\n"); dump("\tsha1 fingerprint = " + cert.sha1fingerprint + "\n"); var
validity = cert.
validity.queryinterface(ci.nsix509cert
validity); dump("\t
valid from " +
validity.notbeforegmt + "\n"); dump("\t
valid until " +
validity.notaftergmt + "\n"); } } catch(err) { alert(err); } } function test(url) { var req = cc["@mozilla.org/xmlextras/xmlhttprequest;1"].createinstance(); req.open('get', url, true); req.addeventlistener("error", function(e)...
...And 2 more matches
Accessibility documentation index - Accessibility
examples of common problems include e-mail addresses which are not
valid, or a name field which does not contain at least a first name or a surname.
... 20 using the aria-in
valid attribute aria, accessibility, attribute, codingscripting, html, javascript, needscontent, role(2), agent, alert, user, useragent the aria-in
valid attribute is used to indicate that the value entered into an input field does not conform to the format expected by the application.this may include formats such as email addresses or telephone numbers.
... aria-in
valid can also be used to indicate that a required field has not been filled in.the attribute should be programmatically set as a result of a
validation process.
...And 2 more matches
Understandable - Accessibility
it is advisable to implement client-side error detection and handling, via html5 form
validation features, and/or javascript, whatever is best for your situation.
... note: server-side
validation should *always* be used alongside client-side
validation.
... client-side
validation is too easy to turn off or otherwise get around, so it can't be relied on alone.
...And 2 more matches
:is() (:matches(), :any()) - CSS: Cascading Style Sheets
main or footer element that is being hovered */ :is(header, main, footer) p:hover { color: red; cursor: pointer; } /* the above is equivalent to the following */ header p:hover, main p:hover, footer p:hover { color: red; cursor: pointer; } /* backwards-compatible version with :-*-any() and :matches() (it is not possible to group selectors into single rule, because presence of in
valid selector would in
validate whole rule.) */ :-webkit-any(header, main, footer) p:hover { color: red; cursor: pointer; } :-moz-any(header, main, footer) p:hover { color: red; cursor: pointer; } :matches(header, main, footer) p:hover { color: red; cursor: pointer; } syntax :is( <complex-selector-list> )where <complex-selector-list> = <complex-selector>#where <complex-selector> = <compo...
... easier: /* level 0 */ h1 { font-size: 30px; } /* level 1 */ :is(section, article, aside, nav) h1 { font-size: 25px; } /* level 2 */ :is(section, article, aside, nav) :is(section, article, aside, nav) h1 { font-size: 20px; } /* level 3 */ :is(section, article, aside, nav) :is(section, article, aside, nav) :is(section, article, aside, nav) h1 { font-size: 15px; } avoiding selector list in
validation unlike selector lists, the :is() pseudo-class doesn't get in
validated when one of the selectors passed to it isn't supported by the browser.
... :is(:
valid, :unsupported) { ...
...And 2 more matches
display - CSS: Cascading Style Sheets
valid <display-outside> values: block the element generates a block element box, generating line breaks both before and after the element when in the normal flow.
...
valid <display-inside> values: flow the element lays out its contents using flow layout (block-and-inline layout).
...
valid <display-internal> values: table-row-group these elements behave like <tbody> html elements.
...And 2 more matches
transition-delay - CSS: Cascading Style Sheets
in both cases, the css declaration remains
valid.
...sition-property: width height background-color font-size left top color; transition-duration:2s; transition-delay:0.5s; transition-timing-function: linear; } function updatetransition() { var el = document.queryselector("div.box"); if (el) { el.classname = "box1"; } else { el = document.queryselector("div.box1"); el.classname = "box"; } return el; } var inter
valid = window.setinterval(updatetransition, 7000); transition-delay: 1s <div class="parent"> <div class="box">lorem</div> </div> .parent { width: 250px; height:125px;} .box { width: 100px; height: 100px; background-color: red; font-size: 20px; left: 0px; top: 0px; position:absolute; -webkit-transition-property: width height background-color font-size le...
...ansition-property: width height background-color font-size left top color; transition-duration:2s; transition-delay:1s; transition-timing-function: linear; } function updatetransition() { var el = document.queryselector("div.box"); if (el) { el.classname = "box1"; } else { el = document.queryselector("div.box1"); el.classname = "box"; } return el; } var inter
valid = window.setinterval(updatetransition, 7000); transition-delay: 2s <div class="parent"> <div class="box">lorem</div> </div> .parent { width: 250px; height:125px;} .box { width: 100px; height: 100px; background-color: red; font-size: 20px; left: 0px; top: 0px; position:absolute; -webkit-transition-property: width height background-color font-size lef...
...And 2 more matches
HTML attribute: maxlength - HTML: Hypertext Markup Language
if no maxlength is specified, or an in
valid value is specified, the input or textarea has no maximum length.
... any maxlength value must be greater than or equal to the value of minlength, if present and
valid.
... the input will fail constraint
validation if the length of the text value of the field is greater than maxlength utf-16 code units long.
...And 2 more matches
<input type="color"> - HTML: Hypertext Markup Language
the element's presentation may vary substantially from one browser and/or platform to another—it might be a simple textual input that automatically
validates to ensure that the color information is entered in the proper format, or a platform-standard color picker, or some kind of custom color picker window.
... note: setting the value to anything that isn't a
valid, fully-opaque, rgb color in hexadecimal notation will result in the value being set to #000000.
... colorwell.select(); appearance variations as previously mentioned, when a browser doesn't support a color picker interface, its implementation of color inputs will be a text box that
validates the contents automatically to ensure that the value is in the correct format.
...And 2 more matches
<textarea> - HTML: Hypertext Markup Language
this is controlled by the resize css property — resizing is enabled by default, but you can explicitly disable it using a resize value of none: textarea { resize: none; } styling
valid and in
valid values
valid and in
valid values of a <textarea> element (e.g.
... those within, and outside the bounds set by minlength, maxlength, or required) can be highlighted using the :
valid and :in
valid pseudo-classes.
... for example, to give your textarea a different border depending on whether it is
valid or in
valid: textarea:in
valid { border: 2px dashed red; } textarea:
valid { border: 2px solid lime; } examples basic example the following example show a very simple textarea, with a set numbers of rows and columns and some default content.
...And 2 more matches
Warning - HTTP
note: the warning header is soon to be deprecated; see warning (https://github.com/httpwg/http-core/issues/139) and warning: header & stale-while-re
validate (https://github.com/whatwg/fetch/issues/913) for more details.
...the first digit indicates whether the warning is required to be deleted from a stored response after
validation.
... 1xx warn-codes describe the freshness or
validation status of the response and will be deleted by a cache after deletion.
...And 2 more matches
A re-introduction to JavaScript (JS tutorial) - JavaScript
also, watch out for stuff like: 0.1 + 0.2 == 0.30000000000000004; in practice, integer values are treated as 32-bit ints, and some implementations even store it that way until they are asked to perform an instruction that's
valid on a number but not on a 32-bit integer.
...nan(nan); // true javascript also has the special values infinity and -infinity: 1 / 0; // infinity -1 / 0; // -infinity you can test for infinity, -infinity and nan values using the built-in isfinite() function: isfinite(1 / 0); // false isfinite(-infinity); // false isfinite(nan); // false the parseint() and parsefloat() functions parse a string until they reach a character that isn't
valid for the specified number format, then return the number parsed up to that point.
... however the "+" operator simply converts the string to nan if there is an in
valid character contained within it.
...And 2 more matches
Expressions and operators - JavaScript
it is thus the better alternative to provide defaults, when values like '' or 0 are
valid values for the first expression, too.
... expressions an expression is any
valid unit of code that resolves to a value.
... every syntactically
valid expression resolves to some value but conceptually, there are two types of expressions: with side effects (for example: those that assign value to a variable) and those that in some sense evaluate and therefore resolve to a value.
...And 2 more matches
MCD, Mission Control Desktop, AKA AutoConfig - Archive of obsolete content
.server2.name", "jehan.procaccia@int-evry.fr"); lockpref("mail.server.server2.type", "imap"); lockpref("mail.server.server2.username", env_user); //smtp lockpref("mail.identity.id1.smtpserver", "smtp1"); lockpref("mail.identity.id1.stationery_folder", "imap://" + env_user + "@imap-int.int-evry.fr/templates"); lockpref("mail.identity.id1.tmpl_folder_picker_mode", "0"); lockpref("mail.identity.id1.
valid", true); //smtp general lockpref("mail.smtp.defaultserver", "smtp1"); lockpref("mail.smtpserver.smtp1.auth_method", 0); lockpref("mail.smtpserver.smtp1.hostname", "smtp-int.int-evry.fr"); lockpref("mail.smtpserver.smtp1.port", 25); lockpref("mail.smtpserver.smtp1.try_ssl", 0); lockpref("mail.smtpserver.smtp1.username", ""); lockpref("mail.smtpservers", "smtp1"); lockpref("mail.startup.enabledmai...
...ail.identity.id1.drafts_folder_picker_mode", "0"); lockpref("mail.identity.id1.fcc_folder", "imap://" + env_user + "@imap-int.int-evry.fr/sent"); lockpref("mail.identity.id1.fcc_folder_picker_mode", "0"); lockpref("mail.identity.id1.stationery_folder", "imap://" + env_user + "@imap-int.int-evry.fr/templates"); lockpref("mail.identity.id1.tmpl_folder_picker_mode", "0"); lockpref("mail.identity.id1.
valid", true); lockpref("mail.identity.id1.overrideglobal_pref", true); lockpref("mail.server.server1.download_on_biff", true); lockpref("mail.server.server1.login_at_startup", true); lockpref("mail.server.server1.username", env_user); lockpref("mail.server.server1.delete_model", 0); //smtp lockpref("mail.identity.id1.smtpserver", "smtp1"); defaultpref("mail.smtpserver.smtp1.auth_method", 0); lockpref...
... versions tested this configuration was
validated on linux with mozilla 1.4, 1.6 and 1.7, and on windows with mozilla 1.4, 1.5, 1.7.
...ail.identity.id1.drafts_folder_picker_mode", "0"); lockpref("mail.identity.id1.fcc_folder", "imap://" + env_user + "@imap-int.int-evry.fr/sent"); lockpref("mail.identity.id1.fcc_folder_picker_mode", "0"); lockpref("mail.identity.id1.stationery_folder", "imap://" + env_user + "@imap-int.int-evry.fr/templates"); lockpref("mail.identity.id1.tmpl_folder_picker_mode", "0"); lockpref("mail.identity.id1.
valid", true); lockpref("mail.identity.id1.overrideglobal_pref", true); lockpref("mail.server.server1.download_on_biff", true); lockpref("mail.server.server1.login_at_startup", true); lockpref("mail.server.server1.username", env_user); lockpref("mail.server.server1.delete_model", 0); //smtp defaultpref("mail.identity.id1.smtpserver", "smtp1"); defaultpref("mail.smtpserver.smtp1.auth_method", 0); defau...
JavaScript crypto - Archive of obsolete content
, and checked against a pre-installed certificate copy in the local certificate database) the public keys, wrapped encryption private key, and text string from the script (possibly containing naming or enrollment info) are signed by the user signed blob is returned to the script script submits signed blob and any other necessary info to the ca/ra ca/ra verifies signature on signed blob ca/ra
validates identity of user ca/ra sends wrapped encryption private key to kra kra sends escrow verification back to ca ca creates and signs certificates ca sends certificates back to the user (importusercertificates) typical use the ca's enrollment page could look something like this: <!doctype html> <h2>request a cert</h2> <form name="reqform" method="post" action="http://your.ra.site.org"> <p>...
...hidden name=cert_request value=""> <p>name: <input type=text name=name value=""> <p>password: <input type=password name="password" value=""> <p><input type=submit name="send" value="submit"> </form> <script> /* the following values could be filled in by the server cgi */ var authenticator = "server_magic"; var keytransportcert = null; var crmfobject = null; var form = document.forms[0]; function
validate() { // generate keys for nsm.
... (typeof(crypto.version) != "undefined") { crmfobject = crypto.generatecrmfrequest( "cn=" + form.name.value, form.password.value, authenticator, keytransportcert, "setcrmfrequest();", 1024, null, "rsa-dual-use"); } return false; } function setcrmfrequest() { form.cert_request.value = crmfobject.request; form.submit(); } form.onsubmit =
validate; </script> on completion of the request, the ca may submit a page that looks something like this: <!doctype html> <h2>certificate request successful</h2> <p>hit 'load' to load your certificate</p> <form name="reqform"> <p><input type=submit name="load" value="submit"></p> </form> <script> /* the following values could be filled in by the server cgi */ var nickname= "mycertnickname"; var cer...
...s_err_other = -1 // errors other than the following js_err_user_cancel_action = -2 // user aborted an action js_err_incorrect_num_of_arguments = -3 // calling a method w/ incorrect # of // arguments js_err_add_module = -5 // error adding a module js_err_bad_module_name = -6 // the module name is in
valid js_err_add_module_duplicate = -10 // the module being installed has the // same name as one of the modules that // has already been installed miscellaneous domstring random(in long numbytes); unimplementedyou can use window.crypto.getrandomvalues instead.
New Security Model for Web Services - Archive of obsolete content
) return pr_true if access granted else pr_false void in
validatecache(in string atransporturi); in
validate cached entry for the given transport uri.
...an entry is created if and only if the declaration file is considered
valid (
validation based on the syntax described above); an in
valid document will result in access denial.
... denies script access in the event of an xml-wellformedness error, or
validation error, or if the declaration file does not grant access.
... reports errors (
validation, wellformedness, file not found, etc.) to the console via nsiconsoleservice.
Return Codes - Archive of obsolete content
no_matching_certificate -206 extracted file was not signed by the certificate used to sign the installation script cant_read_archive -207 xpi package cannot be read in
valid_arguments -208 bad parameters to a function illegal_relative_path -209 illegal relative path user_cancelled -210 user clicked cancel on install dialog install_not_started -211 a problem occurred with the parameters to initinstall, or initinstall was not called first silent_mode_denied ...
... in
valid_path_err -219 the path provided to getfolder was in
valid.
... -238 chrome_registry_error -239 malformed_install -240 key_access_denied -241 access to the registry key has been denied key_does_not_exist -242 registry key does not exist value_does_not_exist -243 registry value does not exist in
valid_signature -260 the signature used in the xpi is not
valid in
valid_hash -261 the hash used in the xpi is not
valid in
valid_hash_type -262 the has used in the xpi is not of a
valid type out_of_memory -299 insufficient memory for operation gestalt_unknown_error -5550 ...
... gestalt_in
valid_argument -5551 ...
Adding Properties to XBL-defined Elements - Archive of obsolete content
in this example, no content has been placed inside either the xul box or its definition in xbl, which is perfectly
valid.
...for example, the following field is given a default value equal to the current time: <field name="currenttime"> new date().gettime(); </field> properties sometimes you will want to
validate the data that is assigned to a property.
...this script should store the value somewhere, or
validate the value.
...use this to
validate it or store it.
More Wizards - Archive of obsolete content
however, you may want to do some
validation of each field on each page.
...if a field is in
valid, you might display an alert.
... in some cases, it would be more convenient to disable the next button until
valid input has been entered.
...you can change the property when in
valid or
valid data has been entered.
XML - Archive of obsolete content
all of the events and attributes -- even the javascript event listeners normally formatted in the javascript world with uppercase verbs (e.g., onclick, onload) -- must be lowercase or they are in
valid.
...in xul, elements must either be of the form <tag></tag> or <tag/> to be
valid.
... for example, <html:img src="box.gif" /> is
valid, but <html:img src="box.gif"> is not.
...so the example here is
valid memo according to our dtd; it's a memo that's been writtten in memoml.
commandset - Archive of obsolete content
for example, since the cut command is only
valid when something is selected, a command updater might be used when the select event occurs.
...if this attribute is not specified, or you set it to the value '*', all events are
valid.
...
valid events are listed below, or you can use your own events.
...if this attribute is not specified, or you set it to the value '*', all elements are
valid.
application/http-index-format specification - Archive of obsolete content
a
valid 200 line consists of one or more white space separated tokens that describe the name or purpose of the associated column of data.
...a
valid 201 line consists of one or more white space separated tokens that represent data described by a previous 200 line.
...a
valid path token must be url escaped.
...
valid 200 tokens note that all tokens are case insensitive.
NPClass - Archive of obsolete content
syntax struct npclass { uint32_t structversion; npallocatefunctionptr allocate; npdeallocatefunctionptr deallocate; npin
validatefunctionptr in
validate; nphasmethodfunctionptr hasmethod; npinvokefunctionptr invoke; npinvokedefaultfunctionptr invokedefault; nphaspropertyfunctionptr hasproperty; npgetpropertyfunctionptr getproperty; npsetpropertyfunctionptr setproperty; npremovepropertyfunctionptr removeproperty; npenumerationfunctionptr enumerate; npconstructfunctionptr construct; }; warning: don't call these routines directly.
... in
validate called on live objects that belong to a plugin instance that is being destroyed.
...any attempt to use an in
validated object will result in undefined behavior.
... function pointer syntax typedef npobject *(*npallocatefunctionptr)(npp npp, npclass *aclass); typedef void (*npdeallocatefunctionptr)(npobject *npobj); typedef void (*npin
validatefunctionptr)(npobject *npobj); typedef bool (*nphasmethodfunctionptr)(npobject *npobj, npidentifier name); typedef bool (*npinvokefunctionptr)(npobject *npobj, npidentifier name, const npvariant *args, uint32_t argcount, npvariant *result); typedef bool (*npinvokedefaultfunctionptr)(npobject *npobj, ...
Object.prototype.watch() - Archive of obsolete content
examples using watch and unwatch const o = { p: 1 }; o.watch('p', (id, oldval, newval) => { console.log('o.' + id + ' changed from ' + oldval + ' to ' + newval); return newval; }); o.p = 2; o.p = 3; delete o.p; o.p = 4; o.unwatch('p'); o.p = 5; this script displays the following: o.p changed from 1 to 2 o.p changed from 2 to 3 o.p changed from undefined to 4 using watch() to
validate an object's properties you can use watch to test any assignment to an object's properties.
... this example ensures that every person always has a
valid name and an age between 0 and 200.
... class person { constructor(name, age) { this.watch('age', this._is
validassignment.bind(this)); this.watch('name', this._is
validassignment.bind(this)); this.name = name; this.age = age; } tostring() { return this.name + ', ' + this.age; } _is
validassignment(id, oldval, newval) { if (id === 'name' && (!newval || newval.length > 30)) { throw new rangeerror('in
valid name for ' + this); } if (id === 'age' && (newval < 0 || newval > 200)) { throw new rangeerror('in
valid age for ' + this); } return newval; } } const will = new person('will', 29); console.log(will); // will, 29 try { will.name = ''; } catch (e) { console.log(e); } try { will.age = -4; } catch (e) { console.log(e); } this script displays the following: ...
...will, 29 rangeerror: in
valid name for will, 29 rangeerror: in
valid age for will, 29 specifications not part of any standard.
Building Mozilla XForms - Archive of obsolete content
getting started things to know first: the xforms extension has a dependency on the schema-
validation extension, so you need to build both (that's done automatically) mozilla switched from cvs to mercurial starting with firefox 3.5.
...the following table gives you an overview of which version you want to build: firefox version gecko/toolkit version source code notes status firefox 2.0 gecko 1.8.1 cvs, branch mozilla_1_8_branch not developed any more last release: 0.8.5ff2 firefox 3.0 gecko 1.9.0 cvs, branch head not developed any more last release: 0.8.5ff3 firefox 3.5 gecko 1.9.1 xforms/schema-
validation code does not build with firefox 3.5 any more not supported firefox 3.6 gecko 1.9.2 xforms/schema-
validation code does not build with firefox 3.6 any more not developed any more last release: 0.8.6 firefox 4 gecko 2.0 mercurial, repositories mozilla-central xforms schema-
validation mostly works upcoming 0.8.7 release if you have your first working firefox build, you can go on with ...
...starting with firefox 3.5, you need to do two more mercurial checkouts: cd extensions hg clone http://hg.mozilla.org/xforms hg clone http://hg.mozilla.org/schema-
validation that's it, you now have everything you need to get started.
...an old firefox 3.6 release) use this instead (see bug 601570 for details): ac_add_options --enable-extensions="default,xforms,schema-
validation" a complete .mozconfig file for a release build might look like that: .
Fixing Incorrectly Sized List Item Markers - Archive of obsolete content
since this rule is not
valid css, it will prevent the
validation of any stylesheet that contains it.
... one solution is to move the rule into its own stylesheet, and accept that the stylesheet in question will never
validate.
... this might also be a place to put any explorer-specific css-like rules (such as scrollbar styling rules), which also will not
validate.
... in situations where
validation is a priority, segregate the rule into a separate stylesheet so that the rule will not confuse css
validators run against the main stylesheet.
Debugging CSS - Learn web development
note: there are other useful features in the rules view too, for example declarations with in
valid values are crossed out.
... do you have
valid html and css?
...a good first step therefore is to run your html and css through a
validator, to pick up and fix any errors.
... css
validator html
validator is the property and value supported by the browser you are testing in?
Pseudo-classes and pseudo-elements - Learn web development
take a look at some other examples on mdn: :last-child :only-child :in
valid note: it is
valid to write pseudo-classes and elements without any element selector preceding them.
... a more
valid use of these pseudo-elements is to insert an icon, for example the little arrow added in the example below, which is a visual indicator that we wouldn't want read out by a screenreader: these pseudo-elements are also frequently used to insert an empty string, which can then be styled just like any element on the page.
... :in
valid matches an element, such as an <input>, in an in
valid state.
... :
valid matches an element such as an <input> element, in a
valid state.
CSS selectors - Learn web development
h1, .special { color: blue; } white space is
valid before or after the comma.
... when you group selectors in this way, if any selector is in
valid the whole rule will be ignored.
... in the following example, the in
valid class selector rule will be ignored, whereas the h1 would still be styled.
... h1 { color: blue; } ..special { color: blue; } when combined however, neither the h1 nor the class will be styled as the entire rule is deemed in
valid.
CSS values and units - Learn web development
previous overview: building blocks next every property used in css has a value or set of values that are allowed for that property, and taking a look at any property page on mdn will help you understand the values that are
valid for any particular property.
...when you see the value <color> as
valid for a particular property, that means you can use any
valid color as a value for that property, as listed on the <color> reference page.
...this means that if you see <color> as
valid you don't need to wonder which of the different types of color value can be used — keywords, hex values, rgb() functions, etc.
... images the <image> data type is used wherever an image is a
valid value.
CSS FAQ - Learn web development
why doesn't my css, which is
valid, render correctly?
... why doesn't my css, which is
valid, render at all?
...the id attribute assigns a name to the element it is applied to, and for
valid markup, there can be only one element with that name.
...for example: /* heading default color is black */ h1 { color: red; } h1 { color: black; } this has changed with css 2; the keyword initial is now a
valid value for a css property.
What is a Domain Name? - Learn web development
a, 97, and hello-strange-person-16-how-are-you are all examples of
valid labels.
...for instance, www.inf.ed.ac.uk is a
valid domain name.
...make sure you fill it properly, since in some countries registrars may be forced to close the domain if they cannot provide a
valid address.
...each dns server that knows about a given domain stores the information for some time before it is automatically in
validated and then refreshed (the dns server queries an authoritative server and fetches the updated information from it).
Your first form - Learn web development
form controls can also be programmed to enforce specific formats or values to be entered (form
validation), and paired with text labels that describe their purpose to both sighted and blind users.
...this turns a basic text field into a kind of "intelligent" field that will perform some
validation checks on the data typed by the user.
...you'll find out more about form
validation in the client-side form
validation article later on.
... overview: forms next in this module your first form how to structure a web form basic native form controls the html5 input types other form controls styling web forms advanced form styling ui pseudo-classes client-side form
validation sending form data advanced topics how to build custom form controls sending forms through javascript property compatibility table for form widgets ...
Web forms — Working with user data - Learn web development
in the articles listed below, we'll cover all the essential aspects of web forms including marking up their html structure, styling form controls,
validating form data, and submitting data to the server.
... mastering forms however requires more than just html knowledge — you also need to learn some specific techniques to style form controls, and some scripting knowledge is required to handle things like
validation and creating custom form controls.
...
validating and submitting form data client-side form
validation sending data is not enough — we also need to make sure that the data users enter into forms is in the correct format to process it successfully, and that it won't break our applications.
...form
validation helps us achieve these goals — this article tells you what you need to know.
Server-side web frameworks - Learn web development
basic
validation of data can be implemented within the framework.
...the model specifies the field types to be stored, which may provide field-level
validation on what information can be stored (e.g.
... an email field would only allow
valid email addresses).
... restful routes, plugins, commands, perl-ish templates, content negotiation, session management, form
validation, testing framework, static file server, cgi/psgi detection, and first-class unicode support.
Mozilla Web Developer FAQ
here’s the check list: does the html document
validate?
...serving
valid html as text/html ensures the widest browser and search engine support.
...despite common allegations to the contrary, the document is not checked for
validity.
...since non-
validating xml processors are not required to support externally defined character entities (other than the five pre-defined ones), the use of externally defined character entities (other than the five pre-defined ones) is inherently unsafe in xml documents intended for the web.
Threads
a thread is created by an explicit client request and remains a
valid, independent execution entity until it returns from its root function or the process abnormally terminates.
...nspr does not check for the
validity of the thread.
... it is the caller's responsibility to ensure that the thread is
valid.
... the effects of these functions on in
valid threads are undefined.
NSS 3.14.2 release notes
bug 816853 - when using libpkix for certificate
validation, applications may now supply additional application-defined trust anchors to be used in addition to those from loaded security tokens, rather than as an alternative to.
... bug 373108 - fixed a bug where, under certain circumstances, when applications supplied in
valid/out-of-bounds parameters for aes encryption, a double free may occur.
... bug 618418 - c_decrypt/c_decryptfinal now correctly
validate the pkcs #7 padding when present.
... bug 823336 - reject in
valid ldap aia uris sooner.
NSS 3.16.2.3 release notes
notable changes in nss 3.16.2.3 bug 1057161: check that an imported elliptic curve public key is
valid.
... previously nss would only
validate the peer's public key before performing ecdh key agreement.
... now ec public keys are
validated at import time.
... bugs fixed in nss 3.16.2.3 bug 1057161 - nss hangs with 100% cpu on in
valid ec key bug 1036735 - add support for draft-ietf-tls-downgrade-scsv to nss compatibility nss 3.16.2.3 shared libraries are backward compatible with all older nss 3.x shared libraries.
NSS tools : signtool
this script installs files from the jar archive in the local system after smartupdate has
validated the digital signature.
...if any of your certificates are expired or in
valid, the list will so specify.
...for information on using the -m option to verify fips-140-1
validated mode, see "netscape signing tool and fips-140-1".
...this includes checking that the certificate for the issuer of the object-signing certificate is listed in the certificate database, that the ca's digital signature on the object-signing certificate is
valid, that the relevant certificates have not expired, and so on.
TPS Bookmark Lists
bookmark objects
valid properties are: uri: the bookmark uri.
...e existing bookmark item, in the current folder, where this bookmark should be moved to (i.e., this bookmark would be inserted into the bookmark list at the position of the named bookmark, causing that bookmark to be positioned below the current one) example: { uri: "http://www.google.com", title: "google", loadinsidebar: false, tags: [ "google", "computers", "misc" ] } livemark objects
valid properties are: livemark: the livemark name.
...lder, where this livemark should be moved to (i.e., this livemark would be inserted into the bookmark list at the position of the named bookmark, causing that bookmark to be positioned below the current one) example: { livemark: "livemarkone", feeduri: "http://rss.wunderground.com/blog/jeffmasters/rss.xml", siteuri: "http://www.wunderground.com/blog/jeffmasters/show.html" } folder objects
valid properties are: folder: the folder's name.
...ting bookmark item, in the current folder, where this folder should be moved to (i.e., this folder would be inserted into the bookmark list at the position of the named bookmark, causing that bookmark to be positioned below this folder) example: { folder: "folderb", changes: { location: "menu/foldera", folder: "folder b", description: "folder description" } } separator objects
valid properties are: separator: true, always set for separators before: the title of the bookmark item expected to be found before this separator; used only in verify and modify actions.
XForms Accessibility
build it yourself if you would like to build firefox/seamonkey yourself then please ensure your .mozconfig file has the following option: ac_add_options --enable-extensions=default,xforms,schema-
validation how to test there are two approaches to test xforms accessibility.
... state it is formed as well from model item properties (mips) of instance node that xforms element is bound to as from
valid/in
valid or in-range/out-of-range states of instance node.
... instance node states are mapped to accessibility state constants declared in nsiaccessiblestates interface like it shown below: relevant - state_unavailable readonly - state_readonly required - state_required in
valid - state_in
valid out of range - state_in
valid attributes redefines datatype aria attribute.
... alert this message will be shown when the form control cannot properly bind to instance data or when the instance data value is in
valid or out of the specified range of selectable values (see the spec, the docs).
Frecency algorithm
the word "frecency" itself is a combination of the words "frequency" and "recency." the default frecency value for all
valid entries is -1.
... in
valid places have a frecency value of zero, and will not show up in autocomplete results.
... examples of in
valid places are "place:" queries, and unvisited livemark feed entries.
... the total visit count includes embedded, undefined, etc visits (does not exclude in
valid or embedded visits).
nsIAccessibleText
the
valid range is 0..length.
... return value offset - index of the character under the given point or -1 if the point is in
valid or there is no character under the point.
...the
valid range is 0..length.
...the
valid range is 0..length.
nsICacheEntryDescriptor
inherits from: nsicacheentryinfo last changed in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) method overview void close(); void doom(); void doomandfailpendingrequests(in nsresult status); string getmetadataelement(in string key); void mark
valid(); nsiinputstream openinputstream(in unsigned long offset); nsioutputstream openoutputstream(in unsigned long offset); void setdatasize(in unsigned long size); void setexpirationtime(in pruint32 expirationtime); void setmetadataelement(in string key, in string value); void visitmetadata(in nsicachemetadatavisitor visitor); attributes attribute type description accessgranted nscacheaccessmode get ...
...mark
valid() this method means that a writer must
validate this cache object before any readers are given a descriptor to the object.
... void mark
valid(); parameters none.
... setexpirationtime() this method sets the time at which the cache entry should be considered in
valid (in seconds since the epoch).
nsICacheSession
if false, expired entries will be returned (useful for offline mode and clients, such as http, that can update the
valid lifetime of cached content).
...nowait do not wait for the cache entry when it is in use and waits for
validation.
...if blockingmode is set to false, it will return ns_error_cache_wait_for_
validation rather than block when another descriptor has been given write access but hasn't
validated the entry yet.
...until the client calls mark
valid on its descriptor, other attempts to open the same cache entry will block.
nsIDOMMozNetworkStatsManager
exceptions thrown ns_error_in
valid_arg the filtering start date is greater than the end date.
... in
validnetwork the network must be in the return of getavailablenetworks.
... exceptions thrown in
validnetwork the network must be in the return of getavailablenetworks.
... exceptions thrown in
validnetwork the network must be in the return of getavailablenetworks.
nsILocalFile
exceptions thrown ns_error_file_unrecognized_path indicates that relativefilepath incorrectly begins with a path separator character or otherwise contains in
valid characters.
... exceptions thrown ns_error_file_unrecognized_path indicates that relativefilepath incorrectly begins with a path separator character or otherwise contains in
valid characters.
... exceptions thrown ns_error_file_unrecognized_path indicates that filepath is not an absolute file path or that it contains characters that are in
valid for the filesystem.
... exceptions thrown ns_error_file_unrecognized_path indicates that filepath is not an absolute file path or that it contains characters that are in
valid for the filesystem.
nsIMsgDatabase
last changed in gecko 1.9 (firefox 3) inherits from: nsidbchangeannouncer method overview void open(in nsilocalfile afoldername, in boolean acreate, in boolean aleavein
validdb); void forcefolderdbclosed(in nsimsgfolder afolder); void close(in boolean aforcecommit); void commit(in nsmsgdbcommit committype); void forceclosed(); void clearcachedhdrs; void resethdrcachesize(in unsigned long size); nsimsgdbhdr getmsghdrforkey(in nsmsgkey key); nsimsgdbhdr getmsghdrformessageid(in string messageid); boolean containskey(in nsmsgkey key); nsimsgdbhdr createnewhdr(in nsmsgkey key...
... defaultviewflags nsmsgviewflagstypevalue readonly: defaultsorttype nsmsgviewsorttypevalue readonly: defaultsortorder nsmsgviewsortordervalue readonly: msghdrcachesize unsigned long folderstream nsioutputstream summary
valid boolean methods open() opens a database folder.
... void open(in nsilocalfile afoldername, in boolean acreate, in boolean aleavein
validdb); parameters afoldername the name of the folder to create.
...aleavein
validdb set to true if you do not want the database to bedeleted if it is in
valid.
nsINavHistoryResultViewer
method overview void containerclosed(in nsinavhistorycontainerresultnode acontainernode); void containeropened(in nsinavhistorycontainerresultnode acontainernode); void in
validatecontainer(in nsinavhistorycontainerresultnode acontainernode); void nodeannotationchanged(in nsinavhistoryresultnode anode, in autf8string aannoname); void nodedateaddedchanged(in nsinavhistoryresultnode anode, in prtime anewvalue); void nodelastaddedchanged(in nsinavhistoryresultnode anode, in prtime anewvalue); void nodehistorydetailschanged(in nsinavhis...
... in
validatecontainer() called when something has happened that requires that the contents of a container be rebuilt.
... void in
validatecontainer( in nsinavhistorycontainerresultnode acontainernode ); parameters acontainernode the container that should be rebuilt.
...in
validateall() is called as well if the sorting changes, in order to cause the contents to update properly.
nsIWebBrowser
note: the implementation should not refcount the supplied chrome object; it should assume that a non nsnull value is always
valid.
...otherwise, the implementation should not refcount this interface; it should assume that a non null value is always
valid.
... ns_error_in
valid_arg one of the arguments was in
valid or the object did not implement the interface specified by the iid.
... ns_error_in
valid_arg one of the arguments was in
valid or the object did not implement the interface specified by the iid.
ANGLE_instanced_arrays.drawElementsInstancedANGLE() - Web APIs
must be a
valid multiple of the size of the given type.
... exceptions if mode is not one of the accepted values, a gl.in
valid_enum error is thrown.
... if offset is a in
valid multiple of the size of the given type, a gl.in
valid_operation error is thrown.
... if count or primcount are negative, a gl.in
valid_value error is thrown.
AddressErrors.languageCode - Web APIs
an object based on addresserrors includes a languagecode property when the address's languagecode property couldn't be
validated.
... syntax var languageerror = addresserrors.languagecode; value if the value specified in the paymentaddress object's languagecode property could not be
validated, this property contains a domstring offering a human-readable explanation of the
validation error and offers suggestions for correcting it.
... this
validation might be as simple as ensuring the text of the string is compliant with the syntax defined in bcp-47, or as detailed as actually verifying that the specified string matches a value from a database.
... if the languagecode value was
validated successfully, this property is not included in the addresserrors object.
Using the CSS properties and values API - Web APIs
second, unlike standard properties, registered properties aren't
validated when they're parsed.
... rather, they're
validated when they're computed.
... that means both that in
valid values won't appear as in
valid when inspecting the element's properties, and that including an in
valid property after a
valid one won't fall back to the
valid property.
... an in
valid property will, however, fall back to its registered default.
DragEvent - Web APIs
dragenter this event is fired when a dragged element or text selection enters a
valid drop target.
... dragleave this event is fired when a dragged element or text selection leaves a
valid drop target.
... dragover this event is fired continuously when an element or text selection is being dragged and the mouse pointer is over a
valid drop target (every 50 ms when mouse is not moving else much faster between 5 ms (slow movement) and 1ms (fast movement) approximately.
... drop this event is fired when an element or text selection is dropped on a
valid drop target.
Element.classList - Web APIs
string.prototype.trim polyfill if (!"".trim) string.prototype.trim = function(){ return this.replace(/^[\s]+|[\s]+$/g, ''); }; (function(window){"use strict"; // prevent global namespace pollution if(!window.domexception) (domexception = function(reason){this.message = reason}).prototype = new error; var wsre = /[\11\12\14\15\40]/, wsindex = 0, checkif
validclasslistentry = function(o, v) { if (v === "") throw new domexception( "failed to execute '" + o + "' on 'domtokenlist': the token provided must not be empty." ); if((wsindex=v.search(wsre))!==-1) throw new domexception("failed to execute '"+o+"' on 'domtokenlist': " + "the token provided ('"+v[wsindex]+"') contains html space characters, which are not
valid in tokens."); } // 2.
...stconstruction) throw typeerror("illegal constructor"); // internally let it through } domtokenlist.prototype.tostring = domtokenlist.prototype.tolocalestring = function(){return this.value}; domtokenlist.prototype.add = function(){ a: for(var v=0, arglen=arguments.length,val="",ele=this[" ucl"],proto=ele[" uclp"]; v!==arglen; ++v) { val = arguments[v] + "", checkif
validclasslistentry("add", val); for (var i=0, len=proto.length, resstr=val; i !== len; ++i) if (this[i] === val) continue a; else resstr += " " + this[i]; this[len] = val, proto.length += 1, proto.value = resstr; } skippropchange = 1, ele.classname = proto.value, skippropchange = 0; }; domtokenlist.prototype.remove = function(){ f...
...or (var v=0, arglen=arguments.length,val="",ele=this[" ucl"],proto=ele[" uclp"]; v !== arglen; ++v) { val = arguments[v] + "", checkif
validclasslistentry("remove", val); for (var i=0, len=proto.length, resstr="", is=0; i !== len; ++i) if(is){ this[i-1]=this[i] }else{ if(this[i] !== val){ resstr+=this[i]+" "; }else{ is=1; } } if (!is) continue; delete this[len], proto.length -= 1, proto.value = resstr; } skippropchange = 1, ele.classname = proto.value, skippropchange = 0; }; window.domtokenlist = domtokenlist; function whenpropchanges(){ var evt = window.event, prop = evt.propertyname; if ( !skippropchange && (prop==="classname" || (prop==="classlist" && !defineproperty)) ) { v...
..."add" : "remove"](val), !!arguments[1]); var oldvalue = this.value; return (this.remove(oldvalue), oldvalue === this.value && (this.add(val), true) /*|| false*/); }; if (!domtokenlistproto.replace || typeof testclass.replace("a", "b") !== "boolean") domtokenlistproto.replace = function(oldtoken, newtoken){ checkif
validclasslistentry("replace", oldtoken), checkif
validclasslistentry("replace", newtoken); var oldvalue = this.value; return (this.remove(oldtoken), this.value !== oldvalue && (this.add(newtoken), true)); }; if (!domtokenlistproto.contains) domtokenlistproto.contains = function(value){ for (var i=0,len=this.length; i !== len; ++i) if (this[i] === value) retur...
FileException - Web APIs
make sure that the url is complete and
valid.
... in
valid_modification_err 9 the modification requested is not allowed.
... examples of in
valid modifications include moving a directory into its own child or moving a file into its parent directory without changing its name.
... in
valid_state_err 7 the operation cannot be performed on the current state of the interface object.
HTMLInputElement.stepUp() - Web APIs
if the value before invoking the stepup() method is in
valid—for example, if it doesn't match the constraints set by the step attribute—invoking the stepup() method will return a value that does match the form controls constraints.
... if the form control is non time, date, or numeric in nature, and therefore does not support the step attribute (see the list of supported input types in the the table above), or if the step value is set to any, an in
validstateerror exception is thrown.
...try it with 0 */ input.stepup() } } css input:in
valid { border: red solid 3px; } result note if you don't pass a parameter to the stepup method, it defaults to 1.
... try setting the value to 4, which is not
valid.
HTML Drag and Drop API - Web APIs
dragend ondragend …a drag operation ends (such as releasing a mouse button or hitting the esc key; see finishing a drag.) dragenter ondragenter …a dragged item enters a
valid drop target.
... dragleave ondragleave …a dragged item leaves a
valid drop target.
... dragover ondragover …a dragged item is being dragged over a
valid drop target, every few hundred milliseconds.
...(see starting a drag operation.) drop ondrop …an item is dropped on a
valid drop target.
IDBDatabase.transaction() - Web APIs
valid values are: "default", "strict", and "relaxed".
... exceptions this method may raise a domexception of one of the following types: exception description in
validstateerror the close() method has previously been called on this idbdatabase instance.
... typeerror the value for the mode parameter is in
valid.
... in
validaccesserror the function was called with an empty list of store names.
IDBObjectStore.createIndex() - Web APIs
in
validaccesserror occurs if the provided key path is a sequence, and multientry is set to true in the objectparameters object.
... in
validstateerror occurs if either: the method was not called from a versionchange transaction mode callback, i.e.
... syntaxerror occurs if the provided keypath is not a
valid key path.
...has been deleted or removed.) in firefox previous to version 41, an in
validstateerror was raised in this case as well, which was misleading; this has now been fixed (see bug 1176165.) example in the following example you can see the idbopendbrequest.onupgradeneeded handler being used to update the database structure if a database with a higher version number is loaded.
IDBObjectStore.openCursor() - Web APIs
if a single
valid key is passed, this will default to a range containing only that key.
...
valid values are "next", "nextunique", "prev", and "prevunique".
... exceptions this method may raise a domexception of one of the following types: exception description in
validstateerror this idbobjectstore or idbindex has been deleted.
... dataerror the specified key or key range is in
valid.
IDBObjectStore.openKeyCursor() - Web APIs
if a single
valid key is passed, this will default to a range containing only that key.
...
valid values are "next", "nextunique", "prev", and "prevunique".
... exceptions this method may raise a domexception of one of the following types: exception description in
validstateerror this idbobjectstore or idbindex has been deleted.
... dataerror the specified key or key range is in
valid.
Using IndexedDB - Web APIs
you can pass an empty array if you want the transaction to span all object stores, but don't do it because the spec says an empty array should generate an in
validaccesserror.
... cursor.continue(); } }; please see "idbcursor constants" for the
valid direction arguments.
... var title = $('#pub-title').val(); var biblioid = $('#pub-biblioid').val(); if (!title || !biblioid) { displayactionfailure("required field(s) missing"); return; } var year = $('#pub-year').val(); if (year != '') { // better use number.isinteger if the engine has ecmascript 6 if (isnan(year)) { displayactionfailure("in
valid year"); return; } year = number(year); } else { year = null; } var file_input = $('#pub-file'); var selected_file = file_input.get(0).files[0]; console.log("selected_file:", selected_file); // keeping a reference on how to reset the file input in the ui once we // have its value, but instead of doing that we rather use a...
...ick(function(evt) { console.log("delete ..."); var biblioid = $('#pub-biblioid-to-delete').val(); var key = $('#key-to-delete').val(); if (biblioid != '') { deletepublicationfrombib(biblioid); } else if (key != '') { // better use number.isinteger if the engine has ecmascript 6 if (key == '' || isnan(key)) { displayactionfailure("in
valid key"); return; } key = number(key); deletepublication(key); } }); $('#clear-store-button').click(function(evt) { clearobjectstore(); }); var search_button = $('#search-list-button'); search_button.click(function(evt) { displaypublist(); }); } opendb(); addeventlisteners(); })(); // immediately-invoked function ...
Using the Media Capabilities API - Web APIs
a plain file or mediasource — and a videoconfiguration including values for the contenttype, width, height, bitrate, and framerate: the contenttype must be a string specifying a
valid video mime type.
... handling errors in our video decoding example, a typeerror would be raised if the media configuration passed to the decodinginfo() method was in
valid.
... there are a few reasons why an error might occur, including: the specified type isn't one of the two permtited values: file or media-source the contenttype given is the error can be due to the type not being one of the two possible values, the contenttype not being a
valid codec mime type, or in
valid or omitted definitions required in the videoconfiguration.
...and whether decoding will be smooth and power efficient:</p> <ul> <li> <label for="codec">select a codec</label> <select id="codec"> <option>video/webm; codecs=vp8</option> <option>video/webm; codecs=vp9</option> <option>video/mp4; codecs=avc1</option> <option>video/mp4; codecs=avc1.420034</option> <option>video/ogg; codecs=theora</option> <option>in
valid</option> </select> </li> <li> <label for="size">select a size</label> <select id="size"> <option>7680x4320</option> <option>3840x2160</option> <option>2560x1440</option> <option>1920x1080</option> <option>1280x720</option> <option selected>800x600</option> <option>640x480</option> <option>320x240</option> <option value=" x ">no...
PaymentResponse.onpayerdetailchange - Web APIs
examples in the example below, onpayerdetailchange is used to set up a listener for the payerdetailchange event in order to
validate the information entered by the user, requesting that any mistakes be corrected // options for paymentrequest(), indicating that shipping address, // payer email address, name, and phone number all be collected.
... response.onpayerdetailchange = async ev => { const promisesto
validate = []; const { payername, payeremail, payerphone } = response; //
validate each value which changed by calling a function // that
validates each type of data, returning a promise which // resolves if the data is
valid.
... if (oldpayername !== payername) { promisesto
validate.push(
validatename(payername)); oldpayername = payername; } if (oldpayeremail !== payeremail) { promisesto
validate.push(
validateemail(payeremail)); oldpayeremail = payeremail; } if (oldpayerphone !== payerphone) { promisesto
validate.push(
validatephone(payerphone)); oldpayerphone = payerphone; } // as each
validation promise resolves, add the results of the //
validation to the errors list const errors = await promise.all(promisesto
validate).then(results => results.reduce((errors, result), object.assign(errors, result)) ); // if we found any errors, wait for them to be corrected if (object.getownpropertynames(errors).length) { await response.retry(errors); } else { // we have a...
... good payment; send the data to the server await fetch("/pay-for-things/", { method: "post", body: response.json() }); response.complete("success"); } }; await response.retry({ payer: { email: "in
valid domain.", phone: "in
valid number.", }, }); specifications specification status comment payment request apithe definition of 'onpayerdetailchange' in that specification.
PublicKeyCredential.response - Web APIs
in order to
validate the creation of credentials, a relying party's server needs both: this response the extensions of the client (given by publickeycredential.getclientextensionresults()) to
validate the demand.
... note: when
validating the fetching of existing credentials, the whole publickeycredential object and the client extensions are necessary for the relying party's server.
... syntax response = publickeycredential.response value an authenticatorresponse object containing the data a relying party's script will receive and which should be sent to the relying party's server in order to
validate the demand for creation or fetching.
..., displayname: "john doe" }, pubkeycredparams: [ { type: "public-key", alg: -7 } ] }; navigator.credentials.create({ publickey: options }) .then(function (pubkeycredential) { var response = pubkeycredential.response; var clientextresults = pubkeycredential.getclientextensionresults(); // send response and client extensions to the server so that it can
validate // and create credentials }).catch(function (err) { // deal with any error }); specifications specification status comment web authentication: an api for accessing public key credentials level 1the definition of 'response' in that specification.
RTCPeerConnection.peerIdentity - Web APIs
if an error occcurs while attempting to
validate an incoming identity assertion (that is, the information describing a peer's identity), the promise is rejected.
... note: the promise returned by setremotedescription() cannot resolve until any target peer identity that's been set is
validated.
... if the identity hasn't been
validated yet, the promise returned by setremotedescription() will be rejected.
... if there's no target peer identity, setremotedescription() doesn't need to wait for
validation to occur before it resolves.
RTCPeerConnection.setConfiguration() - Web APIs
exceptions in
validaccesserror one or more of the urls specified in configuration.iceservers is a turn server, but complete login information is not provided (that is, either the rtciceserver.username or rtciceserver.credentials is missing).
... in
validmodificationerror the configuration includes changed identity information, but the connection already has identity information specified.
... in
validstateerror the rtcpeerconnection is closed.
... syntaxerror one or more of the urls provided in the configuration.iceservers list is in
valid.
RTCPeerConnection - Web APIs
such an event is sent when the associated identity provider (idp) encounters an error while generating an identity assertion.onidp
validationerror the rtcpeerconnection.onidp
validationerror event handler is a property containing the code to execute whent the idp
validationerror event, of type rtcidentityerrorevent, is received by this rtcpeerconnection.
... such an event is sent when the associated identity provider (idp) encounters an error while
validating an identity assertion.onnegotiationneeded the rtcpeerconnection interface's onnegotiationneeded property is an eventlistener which specifies a function which is called to handle the negotiationneeded event when it occurs on an rtcpeerconnection instance.
...such an event is sent when an identity assertion, received from a peer, has been successfully
validated.onremovestream the rtcpeerconnection.onremovestream event handler is a property containing the code to execute when the removestream event, of type mediastreamevent, is received by this rtcpeerconnection.
... idp
validationerror in old versions of the webrtc specification, this event was used to indicate that an error occurred while attempting to
validate an identity assertion.
WebGL2RenderingContext.drawElementsInstanced() - Web APIs
must be a
valid multiple of the size of the given type.
... exceptions if mode is not one of the accepted values, a gl.in
valid_enum error is thrown.
... if offset is a
valid multiple of the size of the given type, a gl.in
valid_operation error is thrown.
... if count or instancecount are negative, a gl.in
valid_value error is thrown.
WebGL2RenderingContext.drawRangeElements() - Web APIs
must be a
valid multiple of the size of the given type.
... exceptions if mode is not one of the accepted values, a gl.in
valid_enum error is thrown.
... if offset is a
valid multiple of the size of the given type, a gl.in
valid_operation error is thrown.
... if count is negative, a gl.in
valid_value error is thrown.
WebGLRenderingContext.drawElements() - Web APIs
must be a
valid multiple of the size of the given type.
... exceptions if mode is not one of the accepted values, a gl.in
valid_enum error is thrown.
... if offset is not a
valid multiple of the size of the given type, a gl.in
valid_operation error is thrown.
... if count is negative, a gl.in
valid_value error is thrown.
WebGLRenderingContext.vertexAttribPointer() - Web APIs
exceptions a gl.in
valid_value error is thrown if offset is negative.
... a gl.in
valid_operation error is thrown if stride and offset are not multiples of the size of the data type.
... a gl.in
valid_operation error is thrown if no webglbuffer is bound to the array_buffer target.
... when using a webgl 2 context, a gl.in
valid_operation error is thrown if this vertex attribute is defined as a integer in the vertex shader (e.g.
Web applications and ARIA FAQ - Accessibility
.tab-panel[aria-hidden="true"] { display: none; } .tab-panel[aria-hidden="false"] { display: block; } what about
validation?
...as a result, pages that include aria may not
validate using tools such as the w3c's markup
validator.
...your page will still be theoretically in
valid, but it will correctly pass all static
validation checks.
...the w3c's html5
validator will even find in
valid uses of aria in html5 pages for you.
:required - CSS: Cascading Style Sheets
/* selects any required <input> */ input:required { border: 1px dashed red; } this pseudo-class is useful for highlighting fields that must have
valid data before a form can be submitted.
... syntax :required examples see :in
valid for an example.
...this will ensure that people navigating with the aid of assistive technology such as a screen reader will be able to understand which inputs need
valid content to ensure a successful submission.
... recommendation defines the semantics of html and constraint
validation.
@supports - CSS: Cascading Style Sheets
the following example returns true if the browser's transform-origin property considers 5% 5%
valid: @supports (transform-origin: 5% 5%) {} function syntax the second basic supports condition is a supports function, the syntax for these is supported by all browsers, but the functions themselves are still being standardized.
...the following example returns true if the browser's transform-origin property doesn't consider 10em 10em 10em
valid: @supports not (transform-origin: 10em 10em 10em) {} as with any operator, the not operator can be applied to a declaration of any complexity.
... the following examples are both
valid: @supports not (not (transform-origin: 2px)) {} @supports (display: grid) and (not (display: inline-grid)) {} note: there is no need to enclose the not operator between two parentheses at the top level.
...otherwise, the condition is in
valid and the whole rule is ignored.
Cross-browser Flexbox mixins - CSS: Cascading Style Sheets
however, css pre-processors simply generate
valid css, so the techniques used below can be written in pure css instead, if preferred.
...negative numbers are in
valid.
...negative numbers are in
valid.
...negative lengths are in
valid.
Variable fonts guide - CSS: Cascading Style Sheets
these are still applied when dealing with non-variable or variable fonts, but with variable ones, any number from 1 to 1000 is now
valid.
...this is typically set in css using the font-stretch property, with values expressed as a percentage above or below ‘normal’ (100%), any number greater than 0 is technically
valid—though it is far more likely that the range would fall closer to the 100% mark, such as 75%-125%.
...however, any value from -90–90 degrees is
valid.
...font-weight or font-stretch), but will not block you from supplying an in
valid value via font-variation-settings, so use with care.
CSS reference - CSS: Cascading Style Sheets
be aware that any syntax error in a rule definition in
validates the entire rule.
... in
valid rules are ignored by the browser.
...templategrid-template-areasgrid-template-columnsgrid-template-rowshhzhanging-punctuationheightheight (@viewport)@historical-forms:hoverhsl()hsla()hue-rotate()hyphensi<ident><image>image()image-orientationimage-renderingimage-set()@importin:in-range:indeterminateinheritinitialinline-sizeinsetinset()inset-blockinset-block-endinset-block-startinset-inlineinset-inline-endinset-inline-start<integer>:in
validinvert()isolationjjustify-contentjustify-itemsjustify-selfkkhz@keyframesl:lang:last-child:last-of-typeleader():leftleft@left-bottom<length><length-percentage>letter-spacingline-breakline-heightlinear-gradient():linklist-stylelist-style-imagelist-style-positionlist-style-typelocal()mmarginmargin-blockmargin-block-endmargin-block-startmargin-bottommargin-inlinemargin-inline-endmargin-inline-startmar...
...xt-underline-position<time><time-percentage><timing-function>top@top-centertouch-actiontransformtransform-box<transform-function>transform-origintransform-styletransitiontransition-delaytransition-durationtransition-propertytransition-timing-functiontranslatetranslate()translate3d()translatex()translatey()translatez()turnuunicode-bidiunicode-range (@font-face)unset<url>url()user-zoom (@viewport)v:
validvar()vertical-alignvh@viewportviewport-fit (@viewport)visibility:visitedvmaxvminvwwwhite-spacewidowswidthwidth (@viewport)will-changeword-breakword-spacingword-wrapwriting-modexxzz-indexzoom (@viewport)others--* selectors the following are the various selectors, which allow styles to be conditional based on various features of elements within the dom.
WebKit CSS extensions - CSS: Cascading Style Sheets
note: if there is an in
valid pseudo-class within in a chain or group of selectors, the whole selector list is in
valid.
... pseudo-elements for web-compatibility reasons, blink, webkit, and gecko browsers treat all pseudo-elements starting with ::-webkit- as
valid.
...ebkit-meter-inner-element ::-webkit-meter-optimum-value ::-webkit-meter-suboptimum-value -webkit-media-text-track-container ::-webkit-outer-spin-button ::-webkit-progress-bar ::-webkit-progress-inner-element ::-webkit-progress-value ::-webkit-search-cancel-button ::-webkit-search-results-button ::-webkit-slider-runnable-track ::-webkit-slider-thumb note: generally, if there is an in
valid pseudo-element or pseudo-class within in a chain or group of selectors, the whole selector list is in
valid.
... if a pseudo-element (but not pseudo-class) has a -webkit- prefix, as of firefox 63, blink, webkit and gecko browsers assume it is
valid, not in
validating the selector list.
flex - CSS: Cascading Style Sheets
a
valid value for width: then it is interpreted as <flex-basis>.
... a
valid value for width for <flex-basis>.
...negative values are considered in
valid.
...negative values are considered in
valid.
<frequency> - CSS: Cascading Style Sheets
in other words, 0 is in
valid and does not represent 0hz or 0khz.
... examples
valid frequency values 12hz positive integer 4.3hz non-integer 14khz the unit is case-insensitive, though non-si capitalization is not recommended.
... +0hz zero, with a leading + and a unit -0khz zero, with a leading - and a unit in
valid frequency values 12.0 this is a <number>, not an <frequency>, because it is missing a unit.
...0 although unitless zero is an allowable <length>, it's an in
valid <frequency>.
Rich-Text Editing in Mozilla - Developer guides
dow').contentwindow.focus() } example: a simple but complete rich text editor <!doctype html> <html> <head> <title>rich text editor</title> <script type="text/javascript"> var odoc, sdeftxt; function initdoc() { odoc = document.getelementbyid("textbox"); sdeftxt = odoc.innerhtml; if (document.compform.switchmode.checked) { setdocmode(true); } } function formatdoc(scmd, svalue) { if (
validatemode()) { document.execcommand(scmd, false, svalue); odoc.focus(); } } function
validatemode() { if (!document.compform.switchmode.checked) { return true ; } alert("uncheck \"show html\"."); odoc.focus(); return false; } function setdocmode(btosource) { var ocontent; if (btosource) { ocontent = document.createtextnode(odoc.innerhtml); odoc.innerhtml = ""; var opre = do...
....contenteditable = true; opre.appendchild(ocontent); odoc.appendchild(opre); } else { if (document.all) { odoc.innerhtml = odoc.innertext; } else { ocontent = document.createrange(); ocontent.selectnodecontents(odoc.firstchild); odoc.innerhtml = ocontent.tostring(); } odoc.contenteditable = true; } odoc.focus(); } function printdoc() { if (!
validatemode()) { return; } var oprntwin = window.open("","_blank","width=450,height=470,left=400,top=100,menubar=yes,toolbar=no,location=no,scrollbars=yes"); oprntwin.document.open(); oprntwin.document.write("<!doctype html><html><head><title>print<\/title><\/head><body onload=\"print();\">" + odoc.innerhtml + "<\/body><\/html>"); oprntwin.document.close(); } </script> <style type="text/css"> ...
...r: 0; } #toolbar1 select { font-size:10px; } #textbox { width: 540px; height: 200px; border: 1px #000000 solid; padding: 12px; overflow: scroll; } #textbox #sourcetext { padding: 0; margin: 0; min-width: 498px; min-height: 200px; } #editmode label { cursor: pointer; } </style> </head> <body onload="initdoc();"> <form name="compform" method="post" action="sample.php" onsubmit="if(
validatemode()){this.mydoc.value=odoc.innerhtml;return true;}return false;"> <input type="hidden" name="mydoc"> <div id="toolbar1"> <select onchange="formatdoc('formatblock',this[this.selectedindex].value);this.selectedindex=0;"> <option selected>- formatting -</option> <option value="h1">title 1 <h1></option> <option value="h2">title 2 <h2></option> <option value="h3">title 3 <h3></o...
.../option> <option value="black">black</option> </select> <select onchange="formatdoc('backcolor',this[this.selectedindex].value);this.selectedindex=0;"> <option class="heading" selected>- background -</option> <option value="red">red</option> <option value="green">green</option> <option value="black">black</option> </select> </div> <div id="toolbar2"> <img class="intlink" title="clean" onclick="if(
validatemode()&&confirm('are you sure?')){odoc.innerhtml=sdeftxt};" src="data:image/gif;base64,r0lgodlhfgawaiqbad04ktrlyzfrjlldzl9vj1dusy14wyodhpwibbsvfy6o7ioxw5qbms+wubcztca0ccs4kddqjdtltmrl1o3yitha7opcsd/f4pfvrvdv8pv5xv///////////////////yh5baekab8alaaaaaawabyaaav84ceozgmeakqubmteyzk547qobcfwtm/jgshq4rhmloxfiehqqsawr+z4iayaj0kegtfolizlwre4ocqwrxototaihmcz0tvgmbqkzhayyfewev14eq8iflhnehmfdqkaiskqci2pdc...
Making content editable - Developer guides
clipboard.paste", "allaccess"); example: a simple but complete rich text editor <!doctype html> <html> <head> <title>rich text editor</title> <script type="text/javascript"> var odoc, sdeftxt; function initdoc() { odoc = document.getelementbyid("textbox"); sdeftxt = odoc.innerhtml; if (document.compform.switchmode.checked) { setdocmode(true); } } function formatdoc(scmd, svalue) { if (
validatemode()) { document.execcommand(scmd, false, svalue); odoc.focus(); } } function
validatemode() { if (!document.compform.switchmode.checked) { return true ; } alert("uncheck \"show html\"."); odoc.focus(); return false; } function setdocmode(btosource) { var ocontent; if (btosource) { ocontent = document.createtextnode(odoc.innerhtml); odoc.innerhtml = ""; var opre = do...
...endchild(opre); document.execcommand("defaultparagraphseparator", false, "div"); } else { if (document.all) { odoc.innerhtml = odoc.innertext; } else { ocontent = document.createrange(); ocontent.selectnodecontents(odoc.firstchild); odoc.innerhtml = ocontent.tostring(); } odoc.contenteditable = true; } odoc.focus(); } function printdoc() { if (!
validatemode()) { return; } var oprntwin = window.open("","_blank","width=450,height=470,left=400,top=100,menubar=yes,toolbar=no,location=no,scrollbars=yes"); oprntwin.document.open(); oprntwin.document.write("<!doctype html><html><head><title>print<\/title><\/head><body onload=\"print();\">" + odoc.innerhtml + "<\/body><\/html>"); oprntwin.document.close(); } </script> <style type="text/css"> ...
...r: 0; } #toolbar1 select { font-size:10px; } #textbox { width: 540px; height: 200px; border: 1px #000000 solid; padding: 12px; overflow: scroll; } #textbox #sourcetext { padding: 0; margin: 0; min-width: 498px; min-height: 200px; } #editmode label { cursor: pointer; } </style> </head> <body onload="initdoc();"> <form name="compform" method="post" action="sample.php" onsubmit="if(
validatemode()){this.mydoc.value=odoc.innerhtml;return true;}return false;"> <input type="hidden" name="mydoc"> <div id="toolbar1"> <select onchange="formatdoc('formatblock',this[this.selectedindex].value);this.selectedindex=0;"> <option selected>- formatting -</option> <option value="h1">title 1 <h1></option> <option value="h2">title 2 <h2></option> <option value="h3">title 3 <h3></o...
.../option> <option value="black">black</option> </select> <select onchange="formatdoc('backcolor',this[this.selectedindex].value);this.selectedindex=0;"> <option class="heading" selected>- background -</option> <option value="red">red</option> <option value="green">green</option> <option value="black">black</option> </select> </div> <div id="toolbar2"> <img class="intlink" title="clean" onclick="if(
validatemode()&&confirm('are you sure?')){odoc.innerhtml=sdeftxt};" src="data:image/gif;base64,r0lgodlhfgawaiqbad04ktrlyzfrjlldzl9vj1dusy14wyodhpwibbsvfy6o7ioxw5qbms+wubcztca0ccs4kddqjdtltmrl1o3yitha7opcsd/f4pfvrvdv8pv5xv///////////////////yh5baekab8alaaaaaawabyaaav84ceozgmeakqubmteyzk547qobcfwtm/jgshq4rhmloxfiehqqsawr+z4iayaj0kegtfolizlwre4ocqwrxototaihmcz0tvgmbqkzhayyfewev14eq8iflhnehmfdqkaiskqci2pdc...
HTML attribute: accept - HTML: Hypertext Markup Language
accept=".doc,.docx,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document"> whereas if you're accepting a media file, you may want to be include any format of that media type: <input type="file" id="soundfile" accept="audio/*"> <input type="file" id="videofile" accept="video/*"> <input type="file" id="imagefile" accept="image/*"> the accept attribute doesn't
validate the types of the selected files; it simply provides hints for browsers to guide users towards selecting the correct file types.
... because of this, you should make sure that expected requirement is
validated server-side.
...each unique file type specifier may take one of the following forms: a
valid case-insensitive filename extension, starting with a period (".") character.
... a
valid mime type string, with no extensions.
<img>: The Image Embed element - HTML: Hypertext Markup Language
there are a number of situations in which a browser might not display images, such as: non-visual browsers (such as those used by people with visual impairments) the user chooses not to display images (saving bandwidth, privacy reasons) the image is in
valid or an unsupported type in these cases, the browser may replace the image with the text in the element's alt attribute.
... if the attribute has an in
valid value, browsers handle it as if the anonymous value was used.
... note: this attribute is allowed only if the <img> element is a descendant of an <a> element with a
valid href attribute.
...duplicate descriptors (for instance, two sources in the same srcset which are both described with 2x) are also in
valid.
<input type="submit"> - HTML: Hypertext Markup Language
formno
validate a boolean which, if present, means the form's fields will not be subjected to constraint
validation before submitting the data to the server formtarget the browsing context into which to load the response returned by the server after submitting the form formaction a string indicating the url to which to submit the data.
... formno
validate a boolean attribute which, if present, specifies that the form should not be
validated before submission to the server.
... this overrides the value of the no
validate attribute on the element's owning form.
...
validation submit buttons don't participate in constraint
validation; they have no real value to be constrained.
MIME types (IANA media types) - HTTP
specifically if they download a text/plain file from a <link> element declaring a css file, they will not recognize it as a
valid css file if presented with text/plain.
...no other values are considered
valid, and using any of those may result in scripts that do not load or run.
... for historical reasons, the mime sniffing standard (the definition of how browsers should interpret media types and figure out what to do with content that doesn't have a
valid one) allows javascript to be served using any mime type that essentially matches any of the following: application/javascript application/ecmascript application/x-ecmascript application/x-javascript text/javascript text/ecmascript text/javascript1.0 text/javascript1.1 text/javascript1.2 text/javascript1.3 text/javascript1.4 text/javascript1.5 text/jscript text/livescript text/x-ecmascript text/x-javascript note: even though any given user agent may support any or all of these, you should only use text/javascript.
...this is not
valid, and in most cases will result in a script not being loaded.
HTTP Public Key Pinning (HPKP) - HTTP
firefox and chrome disable pin
validation for pinned hosts whose
validated certificate chain terminates at a user-defined trust anchor (rather than a built-in trust anchor).
... report-uri optional if this optional parameter is specified, pin
validation failures are reported to the given url.
...this key pinning is also
valid for all subdomains, which is told by the includesubdomains declaration.
... finally, report-uri="https://www.example.net/hpkp-report" explains where to report pin
validation failures.
SyntaxError: illegal character - JavaScript
the javascript exception "illegal character" occurs when there is an in
valid or unexpected token that doesn't belong at this position in the code.
... message syntaxerror: in
valid character (edge) syntaxerror: illegal character (firefox) syntaxerror: in
valid or unexpected token (chrome) error type syntaxerror what went wrong?
... there is an in
valid or unexpected token that doesn't belong at this position in the code.
... var colors = ['#000', '#333', '#666']; hidden characters when copy pasting code from external sources, there might be in
valid characters.
SyntaxError: Malformed formal parameter - JavaScript
the javascript exception "malformed formal parameter" occurs when the argument list of a function() constructor call is in
valid somehow.
... the argument list is in
valid somehow.
...or maybe you accidentally passed an in
valid value, like a number or object.
... examples in
valid cases var f = function('x y', 'return x + y;'); // syntaxerror (missing a comma) var f = function('x,', 'return x;'); // syntaxerror (extraneous comma) var f = function(37, "alert('ok')"); // syntaxerror (numbers can't be argument names)
valid cases var f = function('x, y', 'return x + y;'); // correctly punctuated var f = function('x', 'return x;'); // if you can, avoid using function - this is much faster var f = function(x) { return x; }; ...
JavaScript error reference - JavaScript
error: permission denied to access property "x"internalerror: too much recursionrangeerror: argument is not a
valid code pointrangeerror: in
valid array lengthrangeerror: in
valid daterangeerror: precision is out of rangerangeerror: radix must be an integerrangeerror: repeat count must be less than infinityrangeerror: repeat count must be non-negativereferenceerror: "x" is not definedreferenceerror: assignment to undeclared variable "x"referenceerror: can't access lexical declaration "x" before initializationref...
...erenceerror: deprecated caller or arguments usagereferenceerror: in
valid assignment left-hand sidereferenceerror: reference to undefined property "x"syntaxerror: "0"-prefixed octal literals and octal escape seq.
...use //# insteadsyntaxerror: a declaration in the head of a for-of loop can't have an initializersyntaxerror: applying the "delete" operator to an unqualified name is deprecatedsyntaxerror: for-in loop head declarations may not have initializerssyntaxerror: function statement requires a namesyntaxerror: identifier starts immediately after numeric literalsyntaxerror: illegal charactersyntaxerror: in
valid regular expression flag "x"syntaxerror: missing ) after argument listsyntaxerror: missing ) after conditionsyntaxerror: missing : after property idsyntaxerror: missing ; before statementsyntaxerror: missing = in const declarationsyntaxerror: missing ] after element listsyntaxerror: missing formal parametersyntaxerror: missing name after .
...an't access dead objecttypeerror: can't access property "x" of "y"typeerror: can't assign to property "x" on "y": not an objecttypeerror: can't define property "x": "obj" is not extensibletypeerror: can't delete non-configurable array elementtypeerror: can't redefine non-configurable property "x"typeerror: cannot use "in" operator to search for "x" in "y"typeerror: cyclic object valuetypeerror: in
valid "instanceof" operand "x"typeerror: in
valid array.prototype.sort argumenttypeerror: in
valid argumentstypeerror: in
valid assignment to const "x"typeerror: property "x" is non-configurable and can't be deletedtypeerror: setting getter-only property "x"typeerror: variable "x" redeclares argumenturierror: malformed uri sequencewarning: 08/09 is not a legal ecma-262 octal constantwarning: -file- is bei...
Date.parse() - JavaScript
if the argument doesn't represent a
valid date, nan is returned.
... however, in
valid values in date strings not recognized as simplified iso format as defined by ecma-262 may or may not result in nan, depending on the browser and values provided, e.g.: // non-iso string with in
valid date values new date('23/25/2014'); will be treated as a local date of 25 november, 2015 in firefox 30 and an in
valid date in safari 7.
... however, if the string is recognized as an iso format string and it contains in
valid values, it will return nan in all browsers compliant with es5 and later: // iso string with in
valid values new date('2014-25-23').toisostring(); // throws "rangeerror: in
valid date" in all es5-compliant browsers spidermonkey's implementation-specific heuristic can be found in jsdate.cpp.
... other examples: new date('foo-bar 2014').tostring(); // returns: "in
valid date" date.parse('foo-bar 2014'); // returns: nan differences in assumed time zone this section contains implementation-specific behavior that can be inconsistent across implementations.
Error - JavaScript
rangeerror creates an instance representing an error that occurs when a numeric variable or parameter is outside of its
valid range.
... referenceerror creates an instance representing an error that occurs when de-referencing an in
valid reference.
... typeerror creates an instance representing an error that occurs when a variable or parameter is not of a
valid type.
... urierror creates an instance representing an error that occurs when encodeuri() or decodeuri() are passed in
valid parameters.
String.fromCodePoint() - JavaScript
exceptions a rangeerror is thrown if an in
valid unicode code point is given (e.g.
... "rangeerror: nan is not a
valid code point").
...; ++index) { var codepoint = +arguments[index]; // correctly handles all cases including `nan`, `-infinity`, `+infinity` // the surrounding `!(...)` is required to correctly handle `nan` cases // the (codepoint>>>0) === codepoint clause handles decimals and negatives if (!(codepoint < 0x10ffff && (codepoint>>>0) === codepoint)) throw rangeerror("in
valid code point: " + codepoint); if (codepoint <= 0xffff) { // bmp code point codelen = codeunits.push(codepoint); } else { // astral code point; split in surrogate halves // https://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae codepoint -= 0x10000; codelen = codeunits.push( (codepoint >> 10) + 0xd800, // highsurroga...
...eturn result + stringfromcharcode.apply(null, codeunits); }; try { // ie 8 only supports `object.defineproperty` on dom elements object.defineproperty(string, "fromcodepoint", { "value": fromcodepoint, "configurable": true, "writable": true }); } catch(e) { string.fromcodepoint = fromcodepoint; } }(string.fromcharcode)); examples using fromcodepoint()
valid input: string.fromcodepoint(42); // "*" string.fromcodepoint(65, 90); // "az" string.fromcodepoint(0x404); // "\u0404" == "Є" string.fromcodepoint(0x2f804); // "\ud87e\udc04" string.fromcodepoint(194564); // "\ud87e\udc04" string.fromcodepoint(0x1d306, 0x61, 0x1d307); // "\ud834\udf06a\ud834\udf07" in
valid input: string.fromcodepoint('_'); // rangeerror string.fromcodepoin...
throw - JavaScript
erexception(message) { this.message = message; this.name = 'userexception'; } function getmonthname(mo) { mo = mo - 1; // adjust month number for array index (1 = jan, 12 = dec) var months = ['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dec']; if (months[mo] !== undefined) { return months[mo]; } else { throw new userexception('in
validmonthno'); } } try { // statements to try var mymonth = 15; // 15 is out of bound to raise the exception var monthname = getmonthname(mymonth); } catch (e) { monthname = 'unknown'; console.error(e.message, e.name); // pass exception object to err handler } another example of throwing an object the following example tests an input string for a u.s.
...if the zip code uses an in
valid format, the throw statement throws an exception by creating an object of type zipcodeformatexception.
... this.tostring = function() { return string(this.value) }; } else { throw new zipcodeformatexception(zip); } } function zipcodeformatexception(value) { this.value = value; this.message = 'does not conform to the expected format for a zip code'; this.tostring = function() { return this.value + this.message; }; } /* * this could be in a script that
validates address data * for us addresses.
... */ const zipcode_in
valid = -1; const zipcode_unknown_error = -2; function verifyzipcode(z) { try { z = new zipcode(z); } catch (e) { if (e instanceof zipcodeformatexception) { return zipcode_in
valid; } else { return zipcode_unknown_error; } } return z; } a = verifyzipcode(95060); // returns 95060 b = verifyzipcode(9560); // returns -1 c = verifyzipcode('a'); // returns -1 d = verifyzipcode('95060'); // returns 95060 e = verifyzipcode('95060 1234'); // returns 95060 1234 rethrow an exception you can use throw to rethrow an exception after you catch it.
content/mod - Archive of obsolete content
if target does not represents
valid content null is returned.
...it is
valid only when gettargetwindow(target) returns nsidomwindow of content it represents.
...it is
valid only when gettargetwindow(target) returns nsidomwindow of content it represents.
stylesheet/utils - Archive of obsolete content
istype
valid(type) verifies that the type given is a
valid stylesheet's type.
... the values considered
valid are: "agent", "user" and "author".
... returns boolean : true if the type given is
valid, otherwise false.
Miscellaneous - Archive of obsolete content
using string bundles from javascript assuming the extension has myext.properties with name/value pairs such as: in
valid.url=the speficied url, %s, is in
valid.
... following manner: var common = { _bundle: components.classes["@mozilla.org/intl/stringbundle;1"] .getservice(components.interfaces.nsistringbundleservice) .createbundle("chrome://myext/locale/myext.properties"), getlocalizedmessage: function(msg) { return this._bundle.getstringfromname(msg); } }; alert(common.getlocalizedmessage("in
valid.url")) another similar alternative (using both getstringfromname and formatstringfromname), is: var fcbundle = components.classes["@mozilla.org/intl/stringbundle;1"] .getservice(components.interfaces.nsistringbundleservice) .createbundle("chrome://myext/locale/myext.properties"); function getstr(msg, args){ //get localised message if (args){ args = array.pro...
...totype.slice.call(arguments, 1); return fcbundle.formatstringfromname(msg,args,args.length); } else { return fcbundle.getstringfromname(msg); } } /* usage */ alert(getstr("in
valid.url", "http://bad/url/", "3")); //for message with parameters alert(getstr("in
valid.url")); //for message without parameters getting postdata of a webpage first, you need to get the browser you want, and its historysession.
Extension Versioning, Update and Compatibility - Archive of obsolete content
valid application versions automatic add-on update checking applications will periodically check for updates to installed add-ons by retrieving the updateurl.
... the information page retrieved must currently be totally
valid xhtml, including being delivered with the mime type application/xhtml+xml (important: see problems section) you may include %app_locale% in your updateinfourl if you want to have locale information included in the url -- this allows you to customize the text based on the user's locale.
... note that https links to sites with in
valid certificates or that redirect to http sites will fail for both the update.rdf and updatelink cases.
Chapter 5: Let's build a Firefox extension - Archive of obsolete content
suppose you have these strings nested in a .js file: if ( password == userpassword ) { oprefs.setboolpref("access.authenticated", true); } else { alert ("in
valid password"); ......
...something like : wrongpassmessage=in
valid password areyousuremessage=are you sure?
... (where in
valid password and are you sure?
Signing an XPI - Archive of obsolete content
image obtaining a
valid software developer code-signing certificate warning: currently firefox expects xpi files to be signed with certificates that conform to the older object signing convention, rather than the newer code signing convention.
...installing the intermediate ca certificate causes firefox to mark the intermediate code signing ca certificate as a
valid object signing ca certificate, which makes it all work.
...without the certificate-issuers ca root certificate mozilla firefox will not confirm the
validity of your certificate to users who want to install your extension.
An Interview With Douglas Bowman of Wired News - Archive of obsolete content
on october 11, 2002, wired launched a brand-new site design that uses
validating xhtml for its structure and a small collection of css files for its layout.
...fortunately, our chief engineer was able to write some code that scraped through the database looking for errors like this which would in
validate our markup.
... we don't make any claims about past archived content, but we've taken many efforts to make sure even stories from a few years ago are as
valid as possible.
Microsummary XML grammar reference - Archive of obsolete content
uri (optional) a
valid uri uniquely identifying the generator.
... the <pages> element can contain zero or more <include> and <exclude> child elements, each of which must contain a
valid javascript-compatible regular expression.
...see the reference core_javascript_1.5_reference:global_objects:regexp for the details of the regular expression syntax
valid for generators and the tutorial creating regular expressions for a microsummary generator for step by step instructions to writing regular expressions that match urls.
XML in Mozilla - Archive of obsolete content
supported core xml w3c recommendations the core xml support includes parsing xml without
validation (we use the expat parser), displaying xml with css, manipulating xml documents with scripts via dom, associating stylesheets with xml documents, and namespaces in xml.
...the correct xhtml namespace is http://www.w3.org/1999/xhtml please note that the xhtml entities, like ä, work only in conforming xhtml documents that have a
valid xhtml formal public identifier (or in other words, a doctype section with a public identifier).
... wsdl (no longer supported) w3c note web services xbl mozilla's xbl reference xul mozilla's xul reference roadmap next big tasks would include support for xpointer xpointer() scheme (bug 32832), xinclude (bug 201754), xml catalogs (bug 98413), xforms (bug 97806; work being done on implementing this as an extension),
validating parser (bug 196355) and xml schemas.
Positioning - Archive of obsolete content
valid values for the anchor alignment (ie, the first word) are shown below anchor alignment values topleft the popup will be aligned with the upper-left corner of the anchor.
...
valid values for the popup alignment (ie, the second word) are shown below popup alignment values topleft the top-left corner of the popup will be aligned with the specified corner or edge of the anchor element.
... the following table shows the
valid values, corresponding explicit (ie, 2 word) alignment values and an example of the alignment.
Tree View Details - Archive of obsolete content
eletecount); this.treebox.rowcountchanged(idx + 1, -deletecount); } } else { item[2] = true; var label = this.visibledata[idx][0]; var toinsert = this.childdata[label]; for (var i = 0; i < toinsert.length; i++) { this.visibledata.splice(idx + i + 1, 0, [toinsert[i], false]); } this.treebox.rowcountchanged(idx + 1, toinsert.length); } this.treebox.in
validaterow(idx); } first we will need to check if the row is a container.
...the easiest way to do this is to in
validate the row.
...treebox.rowcountchanged(idx + 1, -deletecount); } } else { item[2] = true; var label = this.visibledata[idx][0]; var toinsert = this.childdata[label]; for (var i = 0; i < toinsert.length; i++) { this.visibledata.splice(idx + i + 1, 0, [toinsert[i], false]); } this.treebox.rowcountchanged(idx + 1, toinsert.length); } this.treebox.in
validaterow(idx); }, getimagesrc: function(idx, column) {}, getprogressmode : function(idx,column) {}, getcellvalue: function(idx, column) {}, cycleheader: function(col, elem) {}, selectionchanged: function() {}, cyclecell: function(idx, column) {}, performaction: function(action) {}, performactiononcell: function(action, index, column) {}, getrowproperties: function(idx, prop) {},...
menuitem - Archive of obsolete content
attributes acceltext, accesskey, allowevents, autocheck, checked, closemenu, command, crop, description, disabled, image, key, label, name, selected, tabindex, type,
validate, value properties accessibletype, accesskey, command, control, crop, disabled, image, label, labelelement, parentcontainer, selected, tabindex, value style classes menuitem-iconic, menuitem-non-iconic examples <menulist> <menupopup> <menuitem label="option 1" value="1"/> <menuitem label="option 2" value="2"/> <menuitem label="option 3" value="3"/> <menuitem lab...
... more information on adding checkmarks to menus in the xul tutorial
validate type: one of the values below this attribute indicates whether to load the image from the cache or not.
...be aware, however, that some elements, such as textbox will display the value visually, so in order to merely associate data with an element, you could 1) use another attribute like "value2" or "data-myatt" (as in the html5 draft), as xul does not require
validation (less future-proof); 2) use setattributens() to put custom attributes in a non-xul namespace (serializable and future-proof); 3) use setuserdata() (future-proof and clean, but not easily serializable).
2006-11-03 - Archive of obsolete content
discussions extended
validation certificates major discussion this week started by gervase markham about security certificates, more specifically extended
validation certificates.
... the aim of the group is to develop a new, higher standard for the
validation which is done before certificate issuance, called extended
validation.
... a decision has to be made as to the usefulness of extended
validation certificates and weather or not they will make a difference to the reliability of information in certificates.
2006-11-24 - Archive of obsolete content
discussions continuing discussions on the extended
validation certificates large amount of activity this week regarding the extended
validation certificates, duane posted several snippets of interesting debates as to whether or not the protocol should be introduced.
... mozilla backing off from "extended
validation"?
... yet more people disgruntled by ev proposal mozilla, opera and co only tout open standards as it suits them in addition eddy nigg posted an alternative proposal for the use of extended
validation certificates ev certificates / another proposal meetings none during this week.
NPN_ForceRedraw - Archive of obsolete content
« gecko plugin api reference « browser side plug-in api summary asks the plugin host to immediately (synchronously) repaint in
valid areas.
... description once a region of a windowless plugin has been in
validated with npn_in
validaterect() or npn_in
validateregion(), a plug-in can call npn_forceredraw() to force a paint message.
...see also drawing and event handling npn_in
validaterect() npn_in
validateregion() npp_handleevent() npp ...
NPPrint - Archive of obsolete content
the fullprint field of the union is
valid.
...the embedprint field of the union is
valid.
...the pointer and fields within the npprint structure are
valid only for the duration of the npp_print call.
NPAPI plugin reference - Archive of obsolete content
npn_forceredraw asks the plugin host to immediately (synchronously) repaint in
valid areas.
... npn_in
validaterect in
validates the specified portion of the plugin's drawing area, adding it to the region that needs to be redrawn when the plugin next repaints its contents.
... npn_in
validateregion in
validates the specified drawing region prior to repainting or refreshing a windowless plug-in.
XForms Custom Controls - Archive of obsolete content
*/ boolean isrequired(); /** * return true if instance node is
valid as determined by the mdg.
... */ boolean is
valid(); /** * return true if the control is bound to an instance node.
... if aforceupdate is true then the * xforms model will rebuild/recalculate/re
validate/refresh.
Developing Mozilla XForms - Archive of obsolete content
debugging always start with a debug build of the xforms and the schema-
validation extensions.
...schema
validation problems the schema-
validation extension contains a logging facility that can show some internals on the schema processing.
... to activate this logging output, set the nspr_log_modules environment variable: export nspr_log_modules=schema
validation:5 this only works on a debug build as described above.
XForms Alert Element - Archive of obsolete content
introduction this message will be shown when the form control cannot properly bind to instance data or when the instance data value is in
valid or out of the specified range of selectable values (see the spec).
... examples <xforms:model> <xforms:instance> <data xmlns=""> <x>10</x> </data> </xforms:instance> <xforms:bind id="x" nodeset="x" type="xsd:integer"/> </xforms:model> <style> @namespace xforms url("http://www.w3.org/2002/xforms"); xforms|input:in
valid xforms|alert.inline { display: inline; font-style: italic; width: 40%; } } </style> <xforms:input bind="x"> <xforms:label>you can type only numbers (
validation happens on blur): </xforms:label> <xforms:alert>wrong value!
... you should type only numbers!</xforms:alert> </xforms:input> <xforms:input bind="x"> <xforms:label>you can type only numbers (
validation happens on blur): </xforms:label> <xforms:alert class="inline">wrong value!
Session Hijacking - MDN Web Docs Glossary: Definitions of Web-related terms
session hijacking occurs when an attacker takes over a
valid session between two computers.
... the attacker steals a
valid session id in order to break into the system and snoop data.
... session hijacking occurs because no account lockout for in
valid session ids weak session-id generation algorithm insecure handling indefinite session expiration time short session ids transmission in plain text session hijacking process sniff, that is perform a man-in-the-middle (mitm) attack, place yourself between victim and server.
Cacheable - MDN Web Docs Glossary: Definitions of Web-related terms
note that some non-cacheable requests/responses to a specific uri may in
validate previously cached responses on the same uri.
... for example, a put to pagex.html will in
validate all cached get or head requests to the same uri.
...moreover, it in
validates cached data for request to the same uri done via head or get: put /pagex.html http/1.1 (…) 200 ok (…) a specific cache-control header in the response can prevent caching: get /pagex.html http/1.1 (…) 200 ok cache-control: no-cache (…) ...
Basic native form controls - Learn web development
note: html5 enhanced the basic original single line text field by adding special values for the type attribute that enforce specific
validation constraints and other features, for example specific to entering urls or numbers.
...for <button> elements, omitting the type attribute (or an in
valid value of type) results in a submit button.
... previous overview: forms next in this module your first form how to structure a web form basic native form controls the html5 input types other form controls styling web forms advanced form styling ui pseudo-classes client-side form
validation sending form data advanced topics how to build custom form controls sending forms through javascript property compatibility table for form widgets ...
Introduction to events - Learn web development
some browsers support automatic form data
validation features, but since many don't, you are advised to not rely on those and implement your own
validation checks.
...'s wrong: const form = document.queryselector('form'); const fname = document.getelementbyid('fname'); const lname = document.getelementbyid('lname'); const para = document.queryselector('p'); form.onsubmit = function(e) { if (fname.value === '' || lname.value === '') { e.preventdefault(); para.textcontent = 'you need to fill in both names!'; } } obviously, this is pretty weak form
validation — it wouldn't stop the user
validating the form with spaces or numbers entered into the fields, for example — but it is ok for example purposes.
... the output is as follows: note: for the full source code, see preventdefault-
validation.html (also see it running live here.) event bubbling and capture the final subject to cover here is something that you won't come across often, but it can be a real pain if you don't understand it.
Creating our first Vue component - Learn web development
listing props as an object allows you to specify default values, mark props as required, perform basic object typing (specifically around javascript primitive types), and perform simple prop
validation.
... note: prop
validation only happens in development mode, so you can't strictly rely on it in production.
... additionally, prop
validation functions are invoked before the component instance is created, so they do not have access to the component state (or other props).
Handling common accessibility problems - Learn web development
good uses of javascript include: providing client-side form
validation, which alerts users to problems with their form entries quickly, without having to wait for the server to check the data.
... if it isn't available, the form will still work, but
validation might be slower.
...
validating it is a good start, as is using an auditing tool.
Gecko info for Windows accessibility vendors
keeping an internal cache current means getting new subtrees of iaccessibles whenever an event_reorder is received, indicating important changes have in
validated part of the model.
...llow that relation otherwise, go to the next item in depth first search order if the current item matches your criteria, then return current_item if the current_item == start_item, return null (no item found) if the end has been reached, go back to the start if wrapping is desired, otherwise return null (no item found) go to step 2 checkable, required and in
valid states are supported gecko defines three state constants using previously unused states: const unsigned long state_checkable = state_marqueed; // useful on menuitem, listitem // and treeitem.
... const unsigned long state_required = state_alert_low; // used on form controls // to indicate that this field must be filled out to submit the form const unsigned long state_in
valid = state_alert_high; // used on form controls to // indicate the the field does not currently have a legal value const unsigned long state_???
Localization content best practices
for example, in english all the following begin with the same clause: the url of this feed is in
valid; the url of this feed cannot be reached; the url of this feed cannot be parsed.
... it might be tempting to 'save time' by presenting this as the url of this feed %s and then is in
valid; cannot be reached and cannot be parsed.
... changing the string id will in
validate the existing translation, the new string will be reported as missing in all tools, and localizers will have to retranslate it.
Named Shared Memory
following a call to pr_closesharedmemory, the prsharedmemory object is in
valid and cannot be reused.
... filenames the name passed to pr_opensharedmemory should be a
valid filename for a unix platform.
... all names provided to pr_opensharedmemory should be
valid filename syntax or name syntax for shared memory for the target platform.
PR_FindSymbol
syntax #include <prlink.h> void* pr_findsymbol ( prlibrary *lib, const char *name); parameters the function has these parameters: lib a
valid reference to a loaded library, as returned by pr_loadlibrary, or null.
...the runtime does nothing to ensure the continued
validity of the symbol.
... if the library is unloaded, for instance, the results of any pr_findsymbol calls become in
valid as well.
NSS_3.12.2_release_notes.html
bug 200704: pkcs11: in
valid session handle 0 bug 205434: fully implement new libpkix cert verification api from bug 294531 bug 302670: use the installed libz.so where available bug 305693: shlibsign generates pqg for every run bug 311483: exposing includecertchain as a parameter to sec_pkcs12addcertandkey bug 390527: get rid of pkixerrormsg variable in pkix_error bug 391560: libpkix does not consistently return ...
...pkix_
validatenode tree that truly represent failure reasons bug 408260: certutil usage doesn't give enough information about trust arguments bug 412311: replace pr_interval_no_wait with pr_interval_no_timeout in client initialization calls bug 423839: add multiple pkcs#11 token password command line option to nss tools.
... bug 450427: add comodo ecc certification authority certificate to nss bug 450536: remove obsolete xp_mac code bug 451024: certutil.exe crashes with segmentation fault inside pr_cleanup bug 451927: security/coreconf/winnt6.0.mk has in
valid defines bug 452751: slot leak in pk11_findslotsbynames bug 452865: remove obsolete linker flags needed when libnss3 was linked with libsoftokn3 bug 454961: fix the implementation and use of pr_fgets in signtool bug 455348: change hyphens to underscores in debug_$(shell whoami).
NSS 3.17.2 release notes
bug 1057161: check that an imported elliptic curve public key is
valid.
... previously nss would only
validate the peer's public key before performing ecdh key agreement.
... now ec public keys are
validated at import time.
NSS 3.21.3 release notes
bug 1206283 - fixed an out-of-bound read when parsing in
valid utf-16.
... bug 1241034 - fixed an out-of-bounds write when parsing in
valid utf-16.
... bug 1241037 - fixed bogus surrogate detection when parsing in
valid utf-16.
NSS API Guidelines
these macros only define code when debug is turned on, providing a way for systems to register, deregister, and check
valid pointers.
... secport_add_pointer(classname, pointer) - add pointer as a
valid pointer for classclassname.
... secport_remove_pointer(classname, pointer) - remove a pointer from the
valid list.
Enc Dec MAC Output Public Key as CSR
ailed\n"); goto cleanup; } pk11_setpasswordfunc(getmodulepassword); slot = pk11_getinternalkeyslot(); rv = pk11_authenticate(slot, pr_true, &pwdata); if (rv != secsuccess) { pr_fprintf(pr_stderr, "could not authenticate to token %s.\n", pk11_gettokenname(slot)); goto cleanup; } switch (cmd) { case gen_csr: /*
validate command for generate csr */ if (!certreqfilename || !subject) { usage(progname); } /* * generate the cert request and save it * in a file so public key can be retrieved later to wrap the symmetric key */ rv = createcertificaterequest(slot, dbdir, &pwdata, subject, certreqfilename, ascii); if (rv != secsuccess) { ...
... pr_fprintf(pr_stderr, "create certificate request: failed\n"); goto cleanup; } break; case encrypt: /*
validate command for encrypt */ if (!certreqfilename && !infilename) { usage(progname); } /* * read cert request from a file and extract public key * generates an aes encryption key, session object * generates a mac key, session object * wraps each of those keys with rsa public key * write wrapped keys and public key into intermediate header file * encryption and macing loop * destroy session keys * close files */ rv = encryptfile(slot, infilename, certreqfilename, headerfilename, encryptedfilenam...
...e, noisefilename, &pwdata, ascii); if (rv != secsuccess) { pr_fprintf(pr_stderr, "encryptfile : failed\n"); return secfailure; } break; case decrypt: /*
validate command for decrypt */ if (!infilename && !outfilename) { usage(progname); } /* * reads intermediate header including public key and wrapped keys * finds rsa private key corresponding to the public key * unwraps two keys, creating session key objects * decryption and mac checking loop to write to output file * destroy session keys * close files */ rv = decryptfile(slot, outfilename, headerfilename, encryptedfile...
Overview of NSS
the online certificate status protocol (ocsp) governs real-time confirmation of certificate
validity.
... fips 140
validation and niscc testing the nss software crypto module has been
validated three times for conformance to fips 140 at security levels 1 and 2.
... the nss libraries passed the niscc tls/ssl and s/mime test suites (1.6 million test cases of in
valid input data).
NSS tools : crlutil
list of possible algorithms: md2 | md4 | md5 | sha1 | sha256 | sha384 | sha512 -n nickname specify the nickname of a certificate or key to list, create, add to a database, modify, or
validate.
...n-critical code where: reasoncode: identifies the name of an extension non-critical: should be set to 0 since this is non-critical extension code: the following codes are available: unspecified (0), keycompromise (1), cacompromise (2), affiliationchanged (3), superseded (4), cessationofoperation (5), certificatehold (6), removefromcrl (8), privilegewithdrawn (9), aacompromise (10) * add in
validity date extension: the in
validity date is a non-critical crl entry extension that provides the date on which it is known or suspected that the private key was compromised or that the certificate otherwise became in
valid.
... in
validitydate non-critical date where: crlnumber: identifies the name of an extension non-critical: should be set to 0 since this is non-critical extension date: in
validity date of a cert.
NSS Tools crlutil
list of possible algorithms: md2 | md4 | md5 | sha1 | sha256 | sha384 | sha512 -n nickname specify the nickname of a certificate or key to list, create, add to a database, modify, or
validate.
... 0 since this is non-critical extension code: the following codes are available: unspecified (0), keycompromise (1), cacompromise (2), affiliationchanged (3), superseded (4), cessationofoperation (5), certificatehold (6), removefromcrl (8), privilegewithdrawn (9), aacompromise (10) add in
validity date extension: the in
validity date is a non-critical crl entry extension that provides the date on which it is known or suspected that the private key was compromised or that the certificate otherwise became in
valid.
... in
validitydate non-critical date where: crlnumber: identifies the name of an extension non-critical: should be set to 0 since this is non-critical extension date: in
validity date of a cert.
NSS tools : crlutil
list of possible algorithms: md2 | md4 | md5 | sha1 | sha256 | sha384 | sha512 -n nickname specify the nickname of a certificate or key to list, create, add to a database, modify, or
validate.
...where: reasoncode: identifies the name of an extension non-critical: should be set to 0 since this is non-critical extension code: the following codes are available: unspecified (0), keycompromise (1), cacompromise (2), affiliationchanged (3), superseded (4), cessationofoperation (5), certificatehold (6), removefromcrl (8), privilegewithdrawn (9), aacompromise (10) * add in
validity date extension: the in
validity date is a non-critical crl entry extension that provides the date on which it is known or suspected that the private key was compromised or that the certificate otherwise became in
valid.
... in
validitydate non-critical date where: crlnumber: identifies the name of an extension non-critical: should be set to 0 since this is non-critical extension date: in
validity date of a cert.
Hacking Tips
adding spew for compilations & bailouts & in
validations (from gdb) if you are in rr, and forgot to record with the spew enabled with ionflags or because this is an optimized build, then you can add similar spew with extra breakpoints within gdb.
...(2 locations) (gdb) dprintf ion.cpp:3196, "in
validate %s:%d:%d-%d\n", co->script_->scriptsource()->filename_.mtuple.mfirsta, co->script_->lineno_, co->script_->sourcestart_, co->script_->sourceend_ dprintf 3 at 0x7fb4f6a0b62a: file /home/nicolas/mozilla/contrib-push/js/src/jit/ion.cpp, line 3196.
... (gdb) continue compiling self-hosted:650:20470-21501 bailout from self-hosted:20:403-500 in
validate self-hosted:20:403-500 note: the line 3196, listed above, corresponds to the location of the jit spew inside jit::in
validate function.
JSID_VOID
an additional jsid which is used to indicate the absence of a
valid jsid.
... syntax const jsid jsid_void; const js::handleid jsid_voidhandle; // added in spidermonkey 31 description jsid_void does not occur in js scripts but may be used to indicate the absence of a
valid jsid.
... a void jsid is not a
valid id and only arises as an exceptional api return value, such as in js_nextproperty.
Property attributes
this flag only
valid when defining over an existing property.
...this flag only
valid when defining over an existing property.
...this flag only
valid when defining over an existing property.
Secure Development Guidelines
eip otherwise the attacker can try to control memory pointed to by an existing function pointer a vulnerability is required to modify the eip or sensitive memory saved return addr or function pointer get altered introduction: gaining control (3) common issues used to gain control buffer overflows format string bugs integer overflows/underflows writing secure code: input
validation input
validation most vulnerabilities are a result of un-
validated input always perform input
validation could save you without knowing it examples: if it doesn’t have to be negative, store it in an unsigned int if the input doesn’t have to be > 512, cut it off there if the input should only be [a-za-z0-9], enforce it cross site scripting (xss) xss is a type ...
... buffer bounds
validations (bbv) thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest "foo" someone someday shall type "supercalifragilisticexpialidocious".
...lass nsastring common read-only methods length() isempty() equals() common methods for modifying the string assign() append() insert() truncate() checking return values often causes problems return value not handled certain cases not handled or interpreted incorrectly double meaning malloc() can return a pointer or null, but null by itself is a
valid address checking return values int main() { int fds[2]; pipe(fds); write(fds[0], "data", 4); } the pipe() return value is not checked if pipe() fails, fds is not initialized write to un-initialized file descriptor checking return values check all return values—no matter how unlikely the api failure for example: close() can fail and leak file descriptor ...
Signing Mozilla apps for Mac OS X
once the application has been signed, the signature of an application bundle can be
validated by calling: codesign -vvvv application.app where application.app is the application bundle you wish to
validate.
... the folder will fail to
validate if any of these cases occur (there may be other cases not listed here): if any files that were included in the signature have been removed or modified if any files have been added to a folder that should have all files signed the coderesources file this file is located in your application's bundle at contents/_codesignature/coderesources.
...if any file is subsequently changed, the folder will no longer
validate.
nsDependentCString
this class does not own its data, so the creator of objects of this type must take care to ensure that a nstdependentstring continues to reference
valid memory for the duration of its use.
... method overview constructors assert
valid rebind operator= get find rfind rfindchar findcharinset rfindcharinset compare equalsignorecase tofloat tointeger mid left right setcharat stripchars stripwhitespace replacechar replacesubstring trim compresswhitespace assignwithconversion appendwithconversion appendint appendfloat beginreading endreading beginwriting endwriting data length isempty isvoid isterminated charat operator[] first last countchar findchar equals equalsascii equalsliteral(const char equalsliteral(char lowercaseequalsascii lowercaseequalsliteral(const char lowercaseequalsliteral(cha...
... parameters nsacstring_internal& str assert
valid void assert
valid() - source verify restrictions rebind void rebind(const char*) - source allow this class to be bound to a different string...
nsDependentString
this class does not own its data, so the creator of objects of this type must take care to ensure that a nstdependentstring continues to reference
valid memory for the duration of its use.
... method overview constructors assert
valid rebind operator= get find rfind rfindchar findcharinset rfindcharinset equalsignorecase tofloat tointeger mid left right setcharat stripchars stripwhitespace replacechar replacesubstring trim compresswhitespace assignwithconversion appendwithconversion appendint appendfloat beginreading endreading beginwriting endwriting data length isempty isvoid isterminated charat operator[] first last countchar findchar equals equalsascii equalsliteral(const char equalsliteral(char lowercaseequalsascii lowercaseequalsliteral(const char lowercaseequalsliteral(char assign...
... constructors parameters prunichar* start prunichar* end void nsdependentstring(const prunichar*, pruint32) - source parameters prunichar* data pruint32 length void nsdependentstring(const prunichar*) - source parameters prunichar* data void nsdependentstring(const nsastring_internal&) - source parameters nsastring_internal& str void nsdependentstring() - source assert
valid void assert
valid() - source verify restrictions rebind void rebind(const prunichar*) - source allow this class to be bound to a different string...
mozIAsyncHistory
exceptions thrown ns_error_in
valid_arg passing in null for aplaceinfo.
... not providing at least one
valid guid or uri for all moziplaceinfo object[s].
... providing an in
valid transitiontype (see nsinavbookmarksservice.constants) for a mozivisitinfo.
nsIArray
null is a
valid entry in the array, and as such any nsisupports parameters may be null, except where noted.
...note that since null is a
valid input, exceptions are used to indicate that an element is not found.
...null is a
valid result for this method, but exceptions are thrown in other circumstances.
nsIDOMHTMLSourceElement
the value must be a
valid url.
...if specified, its value must be a
valid mime type.
...its value must be a
valid media query.
nsIDroppedLinkHandler
if null is returned, there is no
valid link to be dropped.
... return value a uri, or null if there is no
valid link to be dropped.
...if empty links array is returned, there is no
valid link to be dropped.
nsIFocusManager
setting this to null or to a non-top-level window throws an ns_error_in
valid_arg exception.
...void clearfocus( in nsidomwindow awindow ); parameters awindow exceptions thrown ns_error_in
valid_arg if awindow is null.
...exceptions thrown ns_error_in
valid_arg if awindow is null.
nsIMsgFilterCustomAction
*/ readonly attribute astring name; /** * is this custom action
valid for a particular filter type?
... * * @param type the filter type * @param scope the search scope * * @return true if
valid */ boolean is
validfortype(in nsmsgfiltertypetype type, in nsmsgsearchscopevalue scope); /** * after the user inputs a particular action value for the action, determine * if that value is
valid.
... * @param actionfolder folder in the filter list * @param filtertype filter type (manual, offlinemail, etc.) * * @return errormessage a localized message to display if in
valid * set to null if the actionvalue is
valid */ autf8string
validateactionvalue(in autf8string actionvalue, in nsimsgfolder actionfolder, in nsmsgfiltertypetype filtertype); /* allow duplicate actions in the same filter list?
nsINavHistoryResultObserver
d containerclosed(in nsinavhistorycontainerresultnode acontainernode); deprecated since gecko 2.0 obsolete since gecko 11.0 void containeropened(in nsinavhistorycontainerresultnode acontainernode); deprecated since gecko 2.0 obsolete since gecko 11.0 void containerstatechanged(in nsinavhistorycontainerresultnode acontainernode, in unsigned long aoldstate, in unsigned long anewstate); void in
validatecontainer(in nsinavhistorycontainerresultnode acontainernode); void nodeannotationchanged(in nsinavhistoryresultnode anode, in autf8string aannoname); void nodedateaddedchanged(in nsinavhistoryresultnode anode, in prtime anewvalue); void nodehistorydetailschanged(in nsinavhistoryresultnode anode, in prtime anewvisitdate, in unsigned long anewaccesscount); void nodeiconchanged(in nsinavh...
... in
validatecontainer() called when something has happened that requires that the contents of a container be rebuilt.
... void in
validatecontainer( in nsinavhistorycontainerresultnode acontainernode ); parameters acontainernode the container that should be rebuilt.
nsITaskbarPreview
method overview void in
validate(); attributes attribute type description active boolean indicates whether or not the preview is marked as active (currently selected) in the taskbar.
... methods in
validate() in
validates the taskbar's cached image of the preview, forcing a redraw if necessary.
... void in
validate(); parameters none.
nsIThreadObserver
note: it is
valid to change the thread's observer during a call to this method.
... note: it is
valid to change the thread's observer during a call to this method.
... it is
valid to change the thread\'s observer during a call to this method.
nsITreeColumns
ged in gecko 1.9 (firefox 3) inherits from: nsisupports method overview nsitreecolumn getcolumnat(in long index); nsitreecolumn getcolumnfor(in nsidomelement element); nsitreecolumn getfirstcolumn(); nsitreecolumn getkeycolumn(); nsitreecolumn getlastcolumn(); nsitreecolumn getnamedcolumn(in astring id); nsitreecolumn getprimarycolumn(); nsitreecolumn getsortedcolumn(); void in
validatecolumns(); void restorenaturalorder(); attributes attribute type description count long the number of columns.
...in
validatecolumns() this method is called whenever a treecol is added or removed and the column cache needs to be rebuilt.
... void in
validatecolumns(); parameters none.
nsITreeSelection
inherits from: nsisupports last changed in gecko 1.9 (firefox 3) method overview void adjustselection(in long index, in long count); void clearrange(in long startindex, in long endindex); void clearselection(); void getrangeat(in long i, out long min, out long max); long getrangecount(); void in
validateselection(); void invertselection(); boolean isselected(in long index); void rangedselect(in long startindex, in long endindex, in boolean augment); void select(in long index); void selectall(); void timedselect(in long index, in long delay); void toggleselect(in long index); attributes attribute type descriptio...
...return value long - number of selection ranges in
validateselection() can be used to in
validate the selection.
... void in
validateselection(); parameters none.
nsIXFormsModelElement
1.0 66 introduced gecko 1.8 obsolete gecko 1.9.1 inherits from: nsisupports last changed in gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) method overview nsidomdocument getinstancedocument(in domstring instanceid); void rebuild(); void recalculate(); void refresh(); void re
validate(); methods getinstancedocument() nsidomdocument getinstancedocument( in domstring instanceid ); parameters instanceid the id of the instance element to be returned.
...re
validate() signals the xforms processor to perform a full re
validation of the given xforms model.
... void re
validate(); parameters none.
nsIXULRuntime
to get an instance, use: var xulruntime = components.classes["@mozilla.org/xre/app-info;1"] .getservice(components.interfaces.nsixulruntime); method overview void in
validatecachesonrestart(); attributes attribute type description accessibilityenabled boolean if true, the accessibility service is running.
... methods in
validatecachesonrestart() signal the apprunner to in
validate caches on the next restart.
... void in
validatecachesonrestart(); parameters none.
nsIXULTemplateQueryProcessor
if the syntax is in
valid, the binding should be ignored.
...exceptions thrown ns_error_in
valid_arg if aquery is in
valid.
... exceptions thrown ns_error_in
valid_arg if the datasource is not supported.
xptcall FAQ
though the chosen approach requires some core platform specific code, it has minimal footprint and is extendable to work with any
valid xpcom interface without requiring additional per platform compiled code to be distributed.
...xptcall needs to be able to call any
valid xpcom method signature and it needs to specify this at runtime.
... the stubs facility needs to impersonate the full vtbl full of methods for any given
valid xpcom interface (including ancestor methods).
Filelink Providers
example: <form id="provider-form" onsubmit="return false;"> <label for="username">username:</label> <input id="username" type="text" required="true" /> <label for="server">server:</label> <input id="server" type="text" required="true" /> <label for="port">port:</label> <input id="port" pattern="[0-9]+" required="true" /> </form> the form is expected to use html5 form
validation.
... for each input event, the check
validity method of the form is automatically called.
... the button to set up the account will only become enabled once the check
validity method for the form returns true.
Building a Thunderbird extension 3: install manifest
a list of
valid application ids can be found here.
...see
valid application versions for a list of the supported version numbers and formats.
...see
valid application versions for a list of the supported version numbers and formats.
WebIDL bindings
utf8string utf8string is a string with guaranteed-
valid utf-8 contents.
... the complete list of
valid deprecation tags is maintained in nsdeprecatedoperationlist.h.
... an example of how this could work: if (!is
valid(passedinobject)) { throw new this.contentwindow.typeerror("object is in
valid"); } or if (!is
valid(passedinobject)) { throw new this.contentwindow.domexception("object is in
valid", "in
validstateerror"); } depending on which exact exception the specification calls for throwing in this situation.
ArrayType
exceptions thrown typeerror type is not a ctype, or type.size is undefined.if the length is specifed but if it is not a
valid one,then it is also thrown rangeerror the size of the resulting array can't be represented as both a size_t and as a javascript number.
...for other function, pointer, and array types, this should be a
valid c type expression.
...if this value isn't a
valid javascript number that's also a
valid index into the array, a typeerror exception is thrown.
CData
if the 8-bit string contains in
valid encoded character, a typeerror exception is thrown.
... if the 8-bit string contains in
valid encoded character, no exception is thrown.
...in
valid encoded characters will be replaced by �(u+fffd).
Gecko Plugin API Reference - Plugins
nstance creation instance destruction shutdown initialize and shutdown example drawing and event handling the npwindow structure drawing plug-ins printing the plug-in setting the window getting information windowed plug-ins mac os windows unix event handling for windowed plug-ins windowless plug-ins specifying that a plug-in is windowless in
validating the drawing area forcing a paint message making a plug-in opaque making a plug-in transparent creating pop-up menus and dialog boxes event handling for windowless plug-ins streams receiving a stream telling the plug-in when a stream is created telling the plug-in when a stream is deleted finding out how much data the plug-in can accept writing the stream to the p...
... npn_in
validaterect in
validates specified drawing area prior to repainting or refreshing a windowless plug-in.
... npn_in
validateregion in
validates specified drawing region prior to repainting or refreshing a windowless plug-in.
Debugger.Environment - Firefox Developer Tools
getvariable(name) return the value of the variable bound toname in this environment, or undefined if this environment does not bindname.name must be a string that is a
valid ecmascript identifier name.
... setvariable(name,value) storevalue as the value of the variable bound toname in this environment.name must be a string that is a
valid ecmascript identifier name;value must be a debuggee value.
...ifname is not in scope in this environment, return null.name must be a string whose value is a
valid ecmascript identifier name.
Examine and edit CSS - Firefox Developer Tools
a warning icon appears next to unsupported css properties or rules that have in
valid values.
...in the following example, a spelling error, "background-colour" instead of "background-color" has made the rule in
valid: rule display it displays each rule as in a stylesheet, with a list of selectors followed by a list of property:value; declarations.
...for example, here the user has typed "c" and the default choice is "color": if you enter an in
valid value for a property when editing it, or an unknown property name, a yellow alert icon appears besides the declaration.
View Source - Firefox Developer Tools
error reporter ≠
validator view source only reports parsing errors, not html
validity errors.
... for example, putting a <div> element as a child of a <ul> element isn't a parse error, but it is not
valid html.
...if you want to check that html is
valid, you should use an html
validator, such as the one offered by w3c.
ANGLE_instanced_arrays.drawArraysInstancedANGLE() - Web APIs
exceptions if mode is not one of the accepted values, a gl.in
valid_enum error is thrown.
... if first, count or primcount are negative, a gl.in
valid_value error is thrown.
... if gl.current_program is null, a gl.in
valid_operation error is thrown.
AddressErrors.addressLine - Web APIs
an object based on addresserrors includes an addressline property when
validation of the address finds one or more errors in the array of strings in the address's addressline.
... syntax var addresslineerror = addresserrors.addressline; value if an error occurred during
validation of the address due to one of the strings in the addressline array having an in
valid value, this property is set to a domstring providing a human-readable error message explaining the
validation error.
... if the paymentaddress object's addressline property was determined to be
valid, this property is not included in the addresserrors dictionary.
AddressErrors.city - Web APIs
an object based on addresserrors includes a city property when
validation of the address fails for the value given for the address's city property.
... syntax var cityerror = addresserrors.city; value if the value specified in the paymentaddress object's city property could not be
validated, this property contains a domstring offering a human-readable explanation of the
validation error and offers suggestions for correcting it.
... if the city value was
validated successfully, this property is not included in the addresserrors object.
AddressErrors.country - Web APIs
an object based on addresserrors includes a country property if during
validation of the address the specified value of country was determined to be in
valid.
... syntax var countryerror = addresserrors.country; value if an error occurred during
validation of the address due to the country property having an in
valid value, this property is set to a domstring providing a human-readable error message explaining the
validation error.
... if the paymentaddress object's country property was determined to be
valid, this property is not included in the dictionary.
AddressErrors.dependentLocality - Web APIs
an object based on addresserrors includes a dependentlocality property when the address's dependentlocality property couldn't be
validated.
... syntax var localityerror = addresserrors.dependentlocality; value if the value specified in the paymentaddress object's dependentlocality property could not be
validated, this property contains a domstring offering a human-readable explanation of the
validation error and offers suggestions for correcting it.
... if the dependentlocality value was
validated successfully, this property is not included in the addresserrors object.
AddressErrors.organization - Web APIs
an object based on addresserrors includes an organization property when the address's organization property couldn't be
validated.
... syntax var organizationerror = addresserrors.organization; value if the value specified in the paymentaddress object's organization property could not be
validated, this property contains a domstring offering a human-readable explanation of the
validation error and offers suggestions for correcting it.
... for example, if
validation simply ensures that only permitted characters are included in the organization's name, this might return a string such as "the organization name may only contain the letters a-z, digits, spaces, and commas." if the organization value was
validated successfully, this property is not included in the addresserrors object.
AddressErrors.phone - Web APIs
an object based on addresserrors includes a phone property when the address's phone property couldn't be
validated.
... syntax var phoneerror = addresserrors.phone; value if the value specified in the paymentaddress object's phone property could not be
validated, this property contains a domstring offering a human-readable explanation of the
validation error and offers suggestions for correcting it.
... if the phone value was
validated successfully, this property is not included in the addresserrors object.
AddressErrors.postalCode - Web APIs
an object based on addresserrors includes a postalcode property when the address's postalcode property couldn't be
validated.
... syntax var postcodeerror = addresserrors.postcode; value if the value specified in the paymentaddress object's postalcode property could not be
validated, this property contains a domstring offering a human-readable explanation of the
validation error and offers suggestions for correcting it.
... if the postalcode value was
validated successfully, this property is not included in the addresserrors object.
AddressErrors.recipient - Web APIs
an object based on addresserrors includes a recipient property when the address's recipient property couldn't be
validated.
... syntax var recipienterror = addresserrors.recipient; value if the value specified in the paymentaddress object's recipient property could not be
validated, this property contains a domstring offering a human-readable explanation of the
validation error and offers suggestions for correcting it.
... if the recipient value was
validated successfully, this property is not included in the addresserrors object.
AddressErrors.region - Web APIs
an object based on addresserrors includes a region property when the address's region property couldn't be
validated.
... syntax var regionerror = addresserrors.region; value if the value specified in the paymentaddress object's region property could not be
validated, this property contains a domstring offering a human-readable explanation of the
validation error and offers suggestions for correcting it.
... if the region value was
validated successfully, this property is not included in the addresserrors object.
AddressErrors.regionCode - Web APIs
an object based on addresserrors includes a regioncode property when the address's regioncode property couldn't be
validated.
... syntax var regioncodeerror = addresserrors.regioncode; value if the value specified in the paymentaddress object's regioncode property could not be
validated, this property contains a domstring offering a human-readable explanation of the
validation error and offers suggestions for correcting it.
... if the regioncode value was
validated successfully, this property is not included in the addresserrors object.
AddressErrors.sortingCode - Web APIs
an object based on addresserrors includes a sortingcode property when the address's sortingcode property couldn't be
validated.
... syntax var sortingcodeerror = addresserrors.sortingcode; value if the value specified in the paymentaddress object's sortingcode property could not be
validated, this property contains a domstring offering a human-readable explanation of the
validation error and offers suggestions for correcting it.
... if the sortingcode value was
validated successfully, this property is not included in the addresserrors object.
Animation.finish() - Web APIs
exceptions in
validstate the player's playback rate is 0 or the animation's playback rate is greater than 0 and the end time of the animation is infinity.
... examples the following example shows how to use the finish() method and catch an in
validstate error.
... interfaceelement.addeventlistener("mousedown", function() { try { player.finish(); } catch(e if e instanceof in
validstate) { console.log("finish() called on paused or finished animation."); } catch(e); logmyerrors(e); //pass exception object to error handler } }); the following example finishes all the animations on a single element, regardless of their direction of playback.
AudioNode.disconnect() - Web APIs
if no matching connection is found, an in
validaccesserror exception is thrown.
... exceptions indexsizeerror a value specified for input or output is in
valid, referring to a node which doesn't exist or outside the permitted range.
... in
validaccesserror the node on which disconnect() was called isn't connected to the specified destination node.
CloseEvent - Web APIs
note that the 1xxx codes are only websocket-internal and not for the same meaning by the transported data (like when the application-layer protocol is in
valid).
... 1007 in
valid frame payload data the endpoint is terminating the connection because a message was received that contained inconsistent data (e.g., non-utf-8 data within a text message).
...[ref] 1014 bad gateway the server was acting as a gateway or proxy and received an in
valid response from the upstream server.
CustomElementRegistry.define() - Web APIs
exceptions exception description notsupportederror the customelementregistry already contains an entry with the same name or the same constructor (or is otherwise already defined), or extends is specified and it is a
valid custom element name, or extends is specified but the element it is trying to extend is an unknown element.
... syntaxerror the provided name is not a
valid custom element name.
...s + .info {' + 'opacity: 1;' + '}'; // attach the created elements to the shadow dom shadow.appendchild(style); shadow.appendchild(wrapper); wrapper.appendchild(icon); wrapper.appendchild(info); } } // define the new element customelements.define('popup-info', popupinfo); <popup-info img="img/alt.png" text="your card
validation code (cvc) is an extra security feature — it is the last 3 or 4 numbers on the back of your card."> note: constructors for autonomous custom elements must extend htmlelement.
DirectoryEntrySync - Web APIs
exceptions this method can raise a fileexception with the following codes: exception description encoding_err the path supplied is in
valid.
... exceptions this method can raise a fileexception with the following codes: exception description encoding_err the path supplied is in
valid.
... in
valid_state_err this directory is not longer
valid for some reason other than being deleted.
Document.querySelector() - Web APIs
this string must be a
valid css selector string; if it isn't, a syntax_err exception is thrown.
... exceptions syntax_err the syntax of the specified selectors is in
valid.
...here, the first <input> element with the name "login" (<input name="login"/>) located inside a <div> whose class is "user-panel main" (<div class="user-panel main">) in the document is returned: var el = document.queryselector("div.user-panel.main input[name='login']"); negation as all css selector strings are
valid, you can also negate selectors: var el = document.queryselector("div.user-panel:not(.main) input[name='login']"); this will select an input with a parent div with the user-panel class but not the main class.
Event.preventDefault() - Web APIs
<code>preventdefault()</code> won't let you check this!<br>"; event.preventdefault(); }, false); html <p>please click on the checkbox control.</p> <form> <label for="id-checkbox">checkbox:</label> <input type="checkbox" id="id-checkbox"/> </form> <div id="output-box"></div> result stopping keystrokes from reaching an edit field the following example demonstrates how in
valid text input can be stopped from reaching the input field with preventdefault().
... nowadays, you should usually use native html form
validation instead.
... html here's the form: <div class="container"> <p>please enter your name using lowercase letters only.</p> <form> <input type="text" id="my-textbox"> </form> </div> css we use a little bit of css for the warning box we'll draw when the user presses an in
valid key: .warning { border: 2px solid #f39389; border-radius: 2px; padding: 10px; position: absolute; background-color: #fbd8d4; color: #3b3c40; } javascript and here's the javascript code that does the job.
FileError - Web APIs
make sure that the url is complete and
valid.
... in
valid_modification_err 9 the modification requested is not allowed.
... in
valid_state_err 7 the operation cannot be performed on the current state of the interface object.
IDBDatabase.createObjectStore() - Web APIs
exceptions this method may raise a domexception with a domerror of one of the following types: exception description in
validstateerror occurs if the method was not called from a versionchange transaction callback.
...has been deleted or removed.) in firefox previous to version 41, an in
validstateerror was raised in this case as well, which was misleading; this has now been fixed (see bug 1176165.) constrainterror an object store with the given name (based on case-sensitive comparison) already exists in the connected database.
... in
validaccesserror if autoincrement is set to true and keypath is either an empty string or an array containing an empty string.
IDBFactory.cmp() - Web APIs
note: do not use this method for comparing arbitrary javascript values, because many javascript values are either not
valid indexeddb keys (booleans and objects, for example) or are treated as equivalent indexeddb keys (for example, since indexeddb ignores arrays with non-numeric properties and treats them as empty arrays, so any non-numeric arrays are treated as equivalent).
... this throws an exception if either of the values is not a
valid key.
...sts the possible values and their meanings: returned value description -1 1st key is less than the 2nd key 0 1st key is equal to the 2nd key 1 1st key is greater than the 2nd key exceptions this method may raise a domexception of the following types: attribute description dataerror one of the supplied keys was not a
valid key.
IDBIndex.openCursor() - Web APIs
typeerror the value for the direction parameter is in
valid.
... dataerror the key or key range provided contains an in
valid key.
... in
validstateerror the idbindex has been deleted or removed.
IDBIndex.openKeyCursor() - Web APIs
typeerror the value for the direction parameter is in
valid.
... dataerror the key or key range provided contains an in
valid key.
... in
validstateerror the idbindex has been deleted or removed.
IDBObjectStore.add() - Web APIs
the object store uses in-line keys but no key generator, and the object store's key path does not yield a
valid key.
... the key parameter was provided but does not contain a
valid key.
... in
validstateerror the idbobjectstore has been deleted or removed.
IDBObjectStore.put() - Web APIs
the object store uses in-line keys but no key generator, and the object store's key path does not yield a
valid key.
... the key parameter was provided but does not contain a
valid key.
... in
validstateerror the idbobjectstore has been deleted or removed.
Timing element visibility with the Intersection Observer API - Web APIs
let's start with the global variables: let contentbox; let nextarticleid = 1; let visibleads = new set(); let previouslyvisibleads = null; let adobserver; let refreshinter
valid = 0; these are used as follows: contentbox a reference to the <main> element's htmlelement object in the dom.
... refreshinter
valid used to store the interval id returned by setinterval().
...startup, false); function startup() { contentbox = document.queryselector("main"); document.addeventlistener("visibilitychange", handlevisibilitychange, false); let observeroptions = { root: null, rootmargin: "0px", threshold: [0.0, 0.75] }; adobserver = new intersectionobserver(intersectioncallback, observeroptions); buildcontents(); refreshinter
valid = window.setinterval(handlerefreshinterval, 1000); } first, a reference to the content wrapping <main> element is obtained, so we can insert our content into it.
MediaCapabilities.decodingInfo() - Web APIs
syntax mediacapabilities.decodinginfo(mediadecodingconfiguration) parameters mediadecodingconfiguration a
valid mediadecodingconfiguration dictionary containing a
valid media decoding type of file or media-source and a
valid media configuration: either an audioconfiguration or a videoconfiguration.
... return value a promise fulfilling with a mediacapabilitiesinfo interface containing three boolean attributes: supported smooth powerefficient exceptions a typeerror is raised if the mediaconfiguration passed to the decodinginfo() method is in
valid, either because the type is not video or audio, the contenttype is not a
valid codec mime type, the media decoding configuration is not a
valid value for the media decoding type, or any other error in the media configuration passed to the method, including omitting values required in the media decoding configuration.
... example //create media configuration to be tested const mediaconfig = { type : 'file', // or 'media-source' audio : { contenttype : "audio/ogg", //
valid content type channels : 2, // audio channels used by the track bitrate : 132700, // number of bits used to encode 1s of audio samplerate : 5200 // number of audio samples making up that 1s.
MediaCapabilities.encodingInfo() - Web APIs
syntax mediacapabilities.encodinginfo(mediaencodingconfiguration) parameters mediaencodingconfiguration a
valid mediaencodingconfiguration dictionary containing a
valid media encoding type of record or transmission and a
valid media configuration: either an audioconfiguration or videoconfiguration dictionary.
... return value a promise fulfilling with a mediacapabilitiesinfo interface containing three boolean attributes: supported smooth powerefficient exceptions a typeerror is raised if the mediaconfiguration passed to the encodinginfo() method is in
valid, either because the type is not video or audio, the contenttype is not a
valid codec mime type, or any other error in the media configuration passed to the method, including omitting any of the media encoding configuration elements.
... example //create media configuration to be tested const mediaconfig = { type : 'record', // or 'transmission' video : { contenttype : "video/webm;codecs=vp8.0", //
valid content type width : 1920, // width of the video height : 1080, // height of the video bitrate : 120000, // number of bits used to encode 1s of video framerate : 48 // number of frames making up that 1s.
MediaRecorder.onerror - Web APIs
in
validstateerror an attempt was made to stop or pause or an inactive recorder, start or resume an active recorder, or otherwise manipulate the mediarecorder while in the wrong state.
... notsupportederror an attempt was made to instantiate a mediarecorder using a mime type that isn't supported on the user's device; one or more of the requested container, codecs, or profiles as well as other information may be in
valid.
... function recordstream(stream) { let recorder = null; let bufferlist = []; try { recorder = new mediarecorder(stream); } catch(err) { return err.name; /* return the error name */ } recorder.ondataavailable = function(event) { bufferlist.push(event.data); }; recorder.onerror = function(event) { let error = event.error; switch(error.name) { case in
validstateerror: shownotification("you can't record the video right " + "now.
NodeIterator.detach() - Web APIs
originally, it detached the nodeiterator from the set over which it iterates, releasing any resources used by the set and setting the iterator's state to in
valid.
... once this method had been called, calls to other methods on nodeiterator would raise the in
valid_state_err exception.
... syntax nodeiterator.detach(); example var nodeiterator = document.createnodeiterator( document.body, nodefilter.show_element, { acceptnode: function(node) { return nodefilter.filter_accept; } }, false ); nodeiterator.detach(); // detaches the iterator nodeiterator.nextnode(); // throws an in
valid_state_err exception specifications specification status comment domthe definition of 'nodeiterator.detach' in that specification.
OVR_multiview2.framebufferTextureMultiviewOVR() - Web APIs
exceptions a gl.in
valid_enum error is thrown if target is not gl.framebuffer.
... a gl.in
valid_value error is thrown if level is not 0.
... a gl.in
valid_operation error is thrown if texture isn't 0 or the name of an existing texture object.
PaintWorklet.registerPaint - Web APIs
return value undefined exceptions typeerror thrown when one of the arguments is in
valid or missing.
... in
validmodificationerror thrown when the a worklet already exists with the specified name.
...to use it, you register it with the css.paintworklet.addmodule() method: <script> css.paintworklet.addmodule('checkboardworklet.js'); </script> you can then use the paint() css function in your css anywhere an <image> value is
valid.
PaymentAddress.country - Web APIs
some examples of
valid country values: "us", "gb", "cn", or "jp".
... syntax var paymentcountry = paymentaddress.country; value a domstring which contains the iso3166-1 alpha-2 code identifying the country in which the address is located, or an empty string if no country is available, which frequently can be assumed to mean "same country as the site owner." usage notes if the payment handler
validates the address and determines that the value of country is in
valid, a call to paymentrequestupdateevent.updatewith() will be made with a details object containing a shippingaddresserrors field.
... that field contains an addresserrors-compliant object whose country property is a string indicating the
validation error that occurred and, if possible, suggests how to fix it.
PaymentDetailsUpdate.error - Web APIs
the paymentdetailsupdate dictionary's error property is a human-readable domstring which provides an error message to be displayed if the specified information doesn't offer any
valid shipping options.
... syntax errorstring = paymentdetailsupdate.error; paymentdetailsupdate.error = errorstring; value a domstring specifying the string to display to the user if the information specified in the paymentdetailsupdate doesn't provide any
valid shipping options.
... the paymentdetailsupdate object specifies no
valid shipping options in its shippingoptions list.
SVGLength - Web APIs
it is in
valid to attempt to define a new value of this type or to attempt to switch an existing value to this type.
... exceptions on setting: a domexception with code syntax_err is raised if the assigned string cannot be parsed as a
valid <length>.
... exceptions: a domexception with code not_supported_err is raised if unittype is svg_lengthtype_unknown or not a
valid unit type constant (one of the other svg_lengthtype_* constants defined on this interface).
SubtleCrypto.decrypt() - Web APIs
exceptions the promise is rejected when the following exceptions are encountered: in
validaccesserror raised when the requested operation is not
valid for the provided key (e.g.
... in
valid encryption algorithm, or in
valid key for the specified encryption algorithm).
...algorithm parameters of in
valid sizes, or there was an error decrypting the ciphertext).
SubtleCrypto.encrypt() - Web APIs
exceptions the promise is rejected when the following exceptions are encountered: in
validaccesserror raised when the requested operation is not
valid for the provided key (e.g.
... in
valid encryption algorithm, or in
valid key for the specified encryption algorithm).
...algorithm parameters of in
valid sizes, or aes-gcm plaintext longer than 2³⁹−256 bytes).
URL() - Web APIs
if the given base url or the resulting url are not
valid urls, the javascript typeerror exception is thrown.
... exceptions exception explanation typeerror url (in the case of absolute urls) or base + url (in the case of relative urls) is not a
valid url.
...s', a); // => 'https://developer.mozilla.org/docs' new url('/docs', "https://developer.mozilla.org/fr-fr/toto"); // => 'https://developer.mozilla.org/docs' new url('/docs', ''); // raises a typeerror exception as '' is not a
valid url new url('/docs'); // raises a typeerror exception as '/docs' is not a
valid url new url('http://www.example.com', ); // => 'http://www.example.com/' new url('http://www.example.com', b); // => 'http://www.example.com/' new url("//foo.com", "https://example.com") // => 'https://foo.com' (see relative urls) specific...
WebGLRenderingContext.drawArrays() - Web APIs
exceptions if mode is not one of the accepted values, a gl.in
valid_enum error is thrown.
... if first or count are negative, a gl.in
valid_value error is thrown.
... if gl.current_program is null, a gl.in
valid_operation error is thrown.
WebGLRenderingContext.framebufferRenderbuffer() - Web APIs
exceptions a gl.in
valid_enum error is thrown if target is not gl.framebuffer, gl.draw_framebuffer, or gl.read_framebuffer.
... a gl.in
valid_enum error is thrown if renderbuffertarget is not gl.renderbuffer.
... a gl.in
valid_enum error is thrown if attachment is not one of the allowed enums.
WebGLRenderingContext.framebufferTexture2D() - Web APIs
exceptions a gl.in
valid_enum error is thrown if target is not gl.framebuffer.
... a gl.in
valid_value error is thrown if level is not 0.
... a gl.in
valid_operation error is thrown if texture isn't 0 or the name of an existing texture object.
WebGLRenderingContext.getUniformLocation() - Web APIs
additionally, for uniforms declared as arrays, the following names are also
valid: the uniform name without the [0] suffix.
... gl_in
valid_value the program parameter is not a value or object generated by webgl.
... gl_in
valid_operation the program parameter doesn't correspond to a glsl program generated by webgl, or the specified program hasn't been linked successfully.
WebGLRenderingContext.readPixels() - Web APIs
exceptions a gl.in
valid_enum error is thrown if format or type is not an accepted value.
... a gl.in
valid_operation error is thrown if type is gl.unsigned_short_5_6_5 and format is not gl.rgb.
... a gl.in
valid_framebuffer_operation error is thrown if the currently bound framebuffer is not framebuffer complete.
Window.getComputedStyle() - Web APIs
throws typeerror if the passed object is not an element or the pseudoelt is not a
valid pseudo-element selector or is ::part() or ::slotted().
... note:
valid pseudo-element selector refers to syntactic
validity, e.g.
... ::unsupported is considered
valid, even though the pseudo-element itself is not supported.
Web APIs
ediasession mediasessionactiondetails mediasettingsrange mediasource mediastream mediastreamaudiodestinationnode mediastreamaudiosourcenode mediastreamaudiosourceoptions mediastreamconstraints mediastreamevent mediastreamtrack mediastreamtrackaudiosourcenode mediastreamtrackaudiosourceoptions mediastreamtrackevent mediatrackconstraints mediatracksettings mediatracksupportedconstraints merchant
validationevent messagechannel messageevent messageport metadata mimetype mimetypearray mouseevent mousescrollevent mousewheelevent mutationevent mutationobserver mutationobserverinit mutationrecord n ndefmessage ndefreader ndefreadingevent ndefrecord ndefwriter namelist namednodemap navigationpreloadmanager navigator navigatorconcurrenthardware navigatorid navigatorlanguage navigatoronlin...
...event offlineaudiocontext offscreencanvas orientationsensor oscillatornode overconstrainederror p pagetransitionevent paintworklet pannernode parentnode passwordcredential path2d payererrors paymentaddress paymentcurrencyamount paymentdetailsbase paymentdetailsupdate paymentitem paymentmethodchangeevent paymentrequest paymentrequestevent paymentrequestupdateevent paymentresponse payment
validationerrors pbkdf2params performance performanceentry performanceeventtiming performanceframetiming performancelongtasktiming performancemark performancemeasure performancenavigation performancenavigationtiming performanceobserver performanceobserverentrylist performancepainttiming performanceresourcetiming performanceservertiming performancetiming periodicwave permissionstatus permissions ...
...peinfo u uievent ulongrange url urlsearchparams urlutilsreadonly usb usbalternateinterface usbconfiguration usbdevice usbendpoint usbintransferresult usbinterface usbisochronousintransferpacket usbisochronousintransferresult usbisochronousouttransferpacket usbisochronousouttransferresult usbouttransferresult usvstring userdatahandler userproximityevent v vttcue vttregion
validitystate videoconfiguration videoplaybackquality videotrack videotracklist visualviewport w webgl_color_buffer_float webgl_compressed_texture_astc webgl_compressed_texture_atc webgl_compressed_texture_etc webgl_compressed_texture_etc1 webgl_compressed_texture_pvrtc webgl_compressed_texture_s3tc webgl_compressed_texture_s3tc_srgb webgl_debug_renderer_info webgl_debug_shaders webgl_depth_text...
Using the alert role - Accessibility
the alert role is most useful for information that requires the user's immediate attention, for example: an in
valid value was entered into a form field the user's login session is about to expire the connection to the server was lost, local changes will not be saved because of its intrusive nature, the alert role must be used sparingly and only in situations where the user's immediate attention is required.
... <h2 role="alert">your form could not be submitted because of 3
validation errors.</h2> example 2: dynamically adding an element with the alert role this snippet dynamically creates an element with an alert role and adds it to the document structure.
... aria attributes used alert related aria techniques using the alertdialog role using the aria-in
valid property compatibility tbd: add support information for common ua and at product combinations additional resources aria best practices - alert role: http://www.w3.org/tr/wai-aria-practices/#alert ...
ARIA - Accessibility
function updateprogress(percentcomplete) { progressbar.setattribute("aria-valuenow", percentcomplete); } note that aria was invented after html4, so does not
validate in html4 or its xhtml variants.
... however, the accessibility gains it provides far outweigh any technical in
validity.
... in html5, all aria attributes
validate.
:optional - CSS: Cascading Style Sheets
syntax :optional examples see :in
valid for an example.
...this will ensure that people navigating with the aid of assistive technology such as a screen reader will be able to understand which inputs need
valid content to ensure a successful form submission.
... recommendation defines the semantics of html and constraint
validation.
Color picker tool - CSS: Cascading Style Sheets
bj.a; this.hue = obj.hue; this.saturation = obj.saturation; this.value = obj.value; this.format = '' + obj.format; this.lightness = obj.lightness; }; color.prototype.setformat = function setformat(format) { if (format === 'hsv') this.format = 'hsv'; if (format === 'hsl') this.format = 'hsl'; }; /*========== methods to set color properties ==========*/ color.prototype.is
validrgbvalue = function is
validrgbvalue(value) { return (typeof(value) === 'number' && isnan(value) === false && value >= 0 && value <= 255); }; color.prototype.setrgba = function setrgba(red, green, blue, alpha) { if (this.is
validrgbvalue(red) === false || this.is
validrgbvalue(green) === false || this.is
validrgbvalue(blue) === false) return; this.r = red | 0; this.g = green ...
...| 0; this.b = blue | 0; if (this.is
validrgbvalue(alpha) === true) this.a = alpha | 0; }; color.prototype.setbyname = function setbyname(name, value) { if (name === 'r' || name === 'g' || name === 'b') { if(this.is
validrgbvalue(value) === false) return; this[name] = value; this.updatehsx(); } }; color.prototype.sethsv = function sethsv(hue, saturation, value) { this.hue = hue; this.saturation = saturation; this.value = value; this.hsvtorgb(); }; color.prototype.sethsl = function sethsl(hue, saturation, lightness) { this.hue = hue; this.saturation = saturation; this.lightness = lightness; this.hsltorgb(); }; color.prototype.sethue = function sethue(value) { if (typeof(value) !== 'number' || isnan(value) === true || value < 0 || value > 3...
...!== 'number' || isnan(value) === true || value < 0 || value > 100) return; this.value = value; this.hsvtorgb(); }; color.prototype.setlightness = function setlightness(value) { if (typeof(value) !== 'number' || isnan(value) === true || value < 0 || value > 100) return; this.lightness = value; this.hsltorgb(); }; color.prototype.sethexa = function sethexa(value) { var
valid = /(^#{0,1}[0-9a-f]{6}$)|(^#{0,1}[0-9a-f]{3}$)/i.test(value); if (
valid !== true) return; if (value[0] === '#') value = value.slice(1, value.length); if (value.length === 3) value = value.replace(/([0-9a-f])([0-9a-f])([0-9a-f])/i,'$1$1$2$2$3$3'); this.r = parseint(value.substr(0, 2), 16); this.g = parseint(value.substr(2, 2), 16); this.b = parseint(value.substr(4, 2), 16...
Pseudo-classes - CSS: Cascading Style Sheets
index of standard pseudo-classes :active :any-link :blank :checked :current :default :defined :dir() :disabled :drop :empty :enabled :first :first-child :first-of-type :fullscreen :future :focus :focus-visible :focus-within :has() :host :host() :host-context() :hover :indeterminate :in-range :in
valid :is() :lang() :last-child :last-of-type :left :link :local-link :not() :nth-child() :nth-col() :nth-last-child() :nth-last-col() :nth-last-of-type() :nth-of-type() :only-child :only-of-type :optional :out-of-range :past :placeholder-shown :read-only :read-write :required :right :root :scope :state() :target :target-within :user-in
valid :
valid :vis...
... selectors level 4 working draft defined :any-link, :blank, :local-link, :scope, :drop, :current, :past, :future, :placeholder-shown, :user-in
valid, :nth-col(), :nth-last-col(), :is() and :where().
... css basic user interface module level 3 recommendation defined :default, :
valid, :in
valid, :in-range, :out-of-range, :required, :optional, :read-only and :read-write, but without the associated semantic meaning.
Linear-gradient Generator - CSS: Cascading Style Sheets
bj.a; this.hue = obj.hue; this.saturation = obj.saturation; this.value = obj.value; this.format = '' + obj.format; this.lightness = obj.lightness; }; color.prototype.setformat = function setformat(format) { if (format === 'hsv') this.format = 'hsv'; if (format === 'hsl') this.format = 'hsl'; }; /*========== methods to set color properties ==========*/ color.prototype.is
validrgbvalue = function is
validrgbvalue(value) { return (typeof(value) === 'number' && isnan(value) === false && value >= 0 && value <= 255); }; color.prototype.setrgba = function setrgba(red, green, blue, alpha) { if (this.is
validrgbvalue(red) === false || this.is
validrgbvalue(green) === false || this.is
validrgbvalue(blue) === false) return; this.r = red | 0; this.g = green ...
...| 0; this.b = blue | 0; if (this.is
validrgbvalue(alpha) === true) this.a = alpha | 0; }; color.prototype.setbyname = function setbyname(name, value) { if (name === 'r' || name === 'g' || name === 'b') { if(this.is
validrgbvalue(value) === false) return; this[name] = value; this.updatehsx(); } }; color.prototype.sethsv = function sethsv(hue, saturation, value) { this.hue = hue; this.saturation = saturation; this.value = value; this.hsvtorgb(); }; color.prototype.sethsl = function sethsl(hue, saturation, lightness) { this.hue = hue; this.saturation = saturation; this.lightness = lightness; this.hsltorgb(); }; color.prototype.sethue = function sethue(value) { if (typeof(value) !== 'number' || isnan(value) === true || value < 0 || value > 3...
...of(value) !== 'number' || isnan(value) === true || value < 0 || value > 100) return; this.lightness = value; this.hsltorgb(); }; color.prototype.setalpha = function setalpha(value) { if (typeof(value) !== 'number' || isnan(value) === true || value < 0 || value > 1) return; this.a = parsefloat(value.tofixed(2)); }; color.prototype.sethexa = function sethexa(value) { var
valid = /(^#{0,1}[0-9a-f]{6}$)|(^#{0,1}[0-9a-f]{3}$)/i.test(value); if (
valid !== true) return; if (value[0] === '#') value = value.slice(1, value.length); if (value.length === 3) value = value.replace(/([0-9a-f])([0-9a-f])([0-9a-f])/i,'$1$1$2$2$3$3'); this.r = parseint(value.substr(0, 2), 16); this.g = parseint(value.substr(2, 2), 16); this.b = parseint(value.substr(4, 2), 16...
<color> - CSS: Cascading Style Sheets
entering a
valid color into the input causes the <div> to adopt that color, allowing you to test our color values.
... html <div></div> <hr> <label for="color">enter a
valid color value:</label> <input type="text" id="color"> css div { width: 100%; height: 200px; } javascript const inputelem = document.queryselector('input'); const divelem = document.queryselector('div'); function
validtextcolor(stringtotest) { if (stringtotest === "") { return false; } if (stringtotest === "inherit") { return false; } if (stringtotest === "transparent") { return false; } const image = document.createelement("img"); image.style.color = "rgb(0, 0, 0)"; image.style.color = stringtotest; if (image.style.color !== "rgb(0, 0, 0)") { return true; } image.style.color = "rgb(255, 255, 255)"; image.style.color = stringtotest; return image.style.color !== "rgb(255, 255, 255)"; } inputelem.addeventlisten...
...er('change', () => { if(
validtextcolor(inputelem.value)) { divelem.style.backgroundcolor = inputelem.value; divelem.textcontent = ''; } else { divelem.style.backgroundcolor = 'white'; divelem.textcontent = 'in
valid color value'; } }); result rgb syntax variations this example shows the many ways in which a single color can be created with the various rgb color syntaxes.
<frequency-percentage> - CSS: Cascading Style Sheets
examples
valid percentage values 90% positive percentage +90% positive percentage with leading + -90% negative percentage — not
valid for all properties that use percentages in
valid percentage values 90 % no space is allowed between the number and the unit
valid frequency values 12hz positive integer 4.3hz non-integer 14khz the unit is case-insensitive, though non-si capitalization is not recom...
...+0hz zero, with a leading + and a unit -0khz zero, with a leading - and a unit in
valid frequency values 12.0 this is a <number>, not an <frequency>, because it is missing a unit.
...0 although unitless zero is an allowable <length>, it's an in
valid <frequency>.
image() - CSS: Cascading Style Sheets
therefore, if the fragment is not understood within image(), the image will be considered in
valid.
... color fallback if a color is specified in image() along with your image sources, it acts as a fallback if the images are in
valid and do not appear.
... omitting image sources while including a color is
valid and creates a color swatch.
<time> - CSS: Cascading Style Sheets
in other words, 0 is in
valid and does not represent 0s or 0ms.
... examples
valid times 12s positive integer -456ms negative integer 4.3ms non-integer 14ms the unit is case-insensitive, although capital letters are not recommended.
... +0s zero with a leading + and a unit -0ms zero with a leading - and a unit in
valid times 0 although unitless zero is allowed for <length>s, it's in
valid for <time>s.
transition-timing-function - CSS: Cascading Style Sheets
in both cases, the css declaration stays
valid.
...s; } .parent > div.box1{ width: 90vw; min-width: 24em; background-color: magenta; color: yellow; border: 1px solid orange; transition-property: all; transition-duration: 2s; } function updatetransition() { var els = document.queryselectorall(".parent > div[class]"); for(var c = els.length, i = 0; i < c; i++) { els[i].classlist.toggle("box1"); } } var inter
valid = window.setinterval(updatetransition, 10000); .ease { transition-timing-function: ease; } .easein { transition-timing-function: ease-in; } .easeout { transition-timing-function: ease-out; } .easeinout { transition-timing-function: ease-in-out; } .linear { transition-timing-function: linear; } .cb { transition-timing-function: cubic-bezier(0.2,-2,0.8,2); } step examples ...
...7s; } .parent > div.box1{ width: 90vw; min-width: 24em; background-color: magenta; color: yellow; border: 1px solid orange; transition-property: all; transition-duration:2s; } function updatetransition() { var els = document.queryselectorall(".parent > div[class]"); for(var c = els.length, i = 0; i < c; i++) { els[i].classlist.toggle("box1"); } } var inter
valid = window.setinterval(updatetransition, 10000); .jump-start { transition-timing-function: steps(5, jump-start); } .jump-end { transition-timing-function: steps(5, jump-end); } .jump-none { transition-timing-function: steps(5, jump-none); } .jump-both { transition-timing-function: steps(5, jump-both); } .step-start { transition-timing-function: step-start; } .step-end { transit...
var() - CSS: Cascading Style Sheets
(doing so usually produces in
valid syntax, or else a value whose meaning has no connection to the variable.) syntax the first argument to the function is the name of the custom property to be substituted.
...if the custom property referenced by the first argument is in
valid, the function uses the second value.
... <declaration-value> the custom property's fallback value, which is used in case the custom property is in
valid in the used context.
HTML5 - Developer guides
forms improvements a look at the constraint
validation api, several new attributes, new values for the <input> attribute type and the new <output> element.
... new semantic elements beside sections, media and forms elements, there are numerous new elements, like <mark>, <figure>, <figcaption>, <data>, <time>, <output>, <progress>, or <meter> and <main>, increasing the number of
valid html5 elements.
... html5-compliant parser the parser, which turns the bytes of an html document into a dom, has been extended and now precisely defines the behavior to use in all cases, even when faced with in
valid html.
HTML attribute: multiple - HTML: Hypertext Markup Language
valid for the email and file input types and the <select>, the manner by which the user opts for multiple values depends on the form control.
...the email input displays the same, but will match the :in
valid pseudo-class if more than one comma-separated email address is included if the attribute is not present.
...ue="grumpy@woodworkers.com">grumpy</option> <option value="happy@woodworkers.com">happy</option> <option value="sleepy@woodworkers.com">sleepy</option> <option value="bashful@woodworkers.com">bashful</option> <option value="sneezy@woodworkers.com">sneezy</option> <option value="dopey@woodworkers.com">dopey</option> <option value="doc@woodworkers.com">doc</option> </datalist> input:in
valid {border: red solid 3px;} if and only if the multiple attribute is specified, the value can be a list of properly-formed comma-separated e-mail addresses.
<area> - HTML: Hypertext Markup Language
its value is a
valid url.
... many browsers, notably internet explorer 4 and higher, support circ, polygon, and rectangle as
valid values for shape, but these values are non-standard.
...(the w3c 5.3 fork of the html specification defines it as
valid, but the canonical html specification doesn’t, and it has no effect in any user agents.) examples <map name="primary"> <area shape="circle" coords="75,75,75" href="left.html" alt="click to go left"> <area shape="circle" coords="275,75,75" href="right.html" alt="click to go right"> </map> <img usemap="#primary" src="https://udn.realityripple.com/samples/6a/7e559101b3.png" alt="350 x 150 p...
<button>: The Button element - HTML: Hypertext Markup Language
formno
validate html5 if the button is a submit button, this boolean attribute specifies that the form is not to be
validated when it is submitted.
... if this attribute is specified, it overrides the no
validate attribute of the button's form owner.
...this is the default if the attribute is not specified for buttons associated with a <form>, or if the attribute is an empty or in
valid value.
<form> - HTML: Hypertext Markup Language
it is possible to use the :
valid and :in
valid css pseudo-classes to style a <form> element based on whether or not the elements inside the form are
valid.
... no
validate this boolean attribute indicates that the form shouldn't be
validated when submitted.
... if this attribute is not set (and therefore the form is
validated), it can be overridden by a formno
validate attribute on a <button>, <input type="submit">, or <input type="image"> element belonging to the form.
<input type="checkbox"> - HTML: Hypertext Markup Language
validation checkboxes do support
validation (offered to all <input>s).
... however, most of the
validitystates will always be false.
... if the checkbox has the required attribute, but is not checked, then
validitystate.valuemissing will be true.
<ins> - HTML: Hypertext Markup Language
datetime this attribute indicates the time and date of the change and must be a
valid date with an optional time string.
...for the format of the string without a time, see format of a
valid date string.
... the format of the string if it includes both date and time is covered in format of a
valid local date and time string.
<script>: The Script element - HTML: Hypertext Markup Language
see cors settings attributes for a more descriptive explanation of its
valid arguments.
...developers must use a
valid mime type that is not a javascript mime type to denote data blocks.
... <script type="module" src="main.js"></script> <script nomodule src="fallback.js"></script> embedding data in html you can also use the <script> element to embed data in html with server-side rendering by specifying a
valid non-javascript mime type in the type attribute.
<time> - HTML: Hypertext Markup Language
a
valid time duration.
...
valid datetime values a
valid year string 2011 a
valid month string 2011-11 a
valid date string 2011-11-18 a
valid yearless date string 11-18 a
valid week string 2011-w47 a
valid time string 14:54 14:54:39 14:54:39.929 a
valid local date and time string 2011-11-18t14:54:39.929 2011-11-18 14:54:39.929 a
valid global date and time string 2011-11-18t14:54:39.929z 2011-11-18t14:54:39.
...929-0400 2011-11-18t14:54:39.929-04:00 2011-11-18 14:54:39.929z 2011-11-18 14:54:39.929-0400 2011-11-18 14:54:39.929-04:00 a
valid duration string pt4h18m3s examples simple example html <p>the concert starts at <time datetime="2018-07-07t20:00:00">20:00</time>.</p> output datetime example html <p>the concert took place on <time datetime="2001-05-15t19:00">may 15</time>.</p> output specifications specification status comment html living standardthe definition of '<time>' in that specification.
itemtype - HTML: Hypertext Markup Language
note: more about itemtype attributes can be found at http://schema.org/thing the itemtype attribute must have a value that is an unordered set of unique tokens which are case-sensitive, each is a
valid and absolute url, and all defined to use the same vocabulary.
...ggregaterating"> rating: <span itemprop="ratingvalue">4.4</span> stars, based on <span itemprop="reviewcount">89 </span> reviews </span><p> <span itemprop="offers" itemscope itemtype="http://schema.org/offer"> regular price: $179.99<br> <meta itemprop="pricecurrency" content="usd" /> <span itemprop="price">sale price: $119.99<br></span> (sale ends <time itemprop="price
validuntil" datetime="2020-11-05"> 5 november!</time>)<br> available from: <span itemprop="seller" itemscope itemtype="http://schema.org/organization"> <span itemprop="name">executive objects<br></span> </span> condition: <link itemprop="itemcondition" href="http://schema.org/usedcondition"/>previously owned, in excellent condition<br> <...
... itemprop brand [thing] itemprop name acme itemscope itemprop[itemtype] aggregaterating[aggregaterating] itemprop ratingvalue 4.4 itemprop reviewcount 89 itemprop offers [offer] http://schema.org/offer itemprop pricecurrency usd itemprop price 119.99 itemprop price
validuntil 2020-11-05 itemprop itemcondition http://schema.org/usedcondition itemprop availability http://schema.org/instock itemscope itemprop[itemtype] seller [organization] http://schema.org/organization itemprop name executive objects note: a handy tool for extracting microdata structures from html is google's structured data...
Global attributes - HTML: Hypertext Markup Language
for example, html5-compliant browsers hide content marked as <foo hidden>...</foo>, even though <foo> is not a
valid html element.
... the event handler attributes: onabort, onautocomplete, onautocompleteerror, onblur, oncancel, oncanplay, oncanplaythrough, onchange, onclick, onclose, oncontextmenu, oncuechange, ondblclick, ondrag, ondragend, ondragenter, ondragexit, ondragleave, ondragover, ondragstart, ondrop, ondurationchange, onemptied, onended, onerror, onfocus, oninput, onin
valid, onkeydown, onkeypress, onkeyup, onload, onloadeddata, onloadedmetadata, onloadstart, onmousedown, onmouseenter, onmouseleave, onmousemove, onmouseout, onmouseover, onmouseup, onmousewheel, onpause, onplay, onplaying, onprogress, onratechange, onreset, onresize, onscroll, onseeked, onseeking, onselect, onshow, onsort, onstalled, onsubmit, onsuspend, ontimeupdate, ontoggle, onvolumechange, onwaiti...
...itemtype is a
valid url of a vocabulary (such as schema.org) that describes the item and its properties context.
Using the application cache - HTML: Hypertext Markup Language
in the explicit (cache:) section, each line is a
valid uri or iri reference to a resource to cache (no wildcard characters are allowed in this sections).
...in the fallback section each line is a
valid uri or iri reference to a resource, followed by a fallback resource that is to be served up when a connection with the server cannot be made.
... in the network section, each line is a
valid uri or iri reference to a resource to fetch from the network (or the wildcard character * can be used in this section).
Public-Key-Pins-Report-Only - HTTP
report-uri="<uri>" pin
validation failures are reported to the given url.
...this key pinning is also
valid for all subdomains, which is told by the includesubdomains declaration.
... finally, report-uri="https://www.example.org/hpkp-report" explains where to report pin
validation failures.
Public-Key-Pins - HTTP
report-uri="<uri>" optional if this optional parameter is specified, pin
validation failures are reported to the given url.
...this key pinning is also
valid for all subdomains, which is told by the includesubdomains declaration.
... finally, report-uri="https://www.example.org/hpkp-report" explains where to report pin
validation failures.
HTTP response status codes - HTTP
client error responses 400 bad request the server could not understand the request due to in
valid syntax.
...in an api, this can also mean that the endpoint is
valid but the resource itself does not exist.
... 502 bad gateway this error response means that the server, while working as a gateway to get a response needed to handle the request, got an in
valid response.
Control flow and error handling - JavaScript
' + `${document.form1.threechar.value} is not
valid.`); return false; } } switch statement a switch statement allows a program to evaluate an expression and attempt to match the expression's value to a case label.
...if the value does not correspond to a month number (1–12), an exception is thrown with the value "in
validmonthno" and the statements in the catch block set the monthname variable to 'unknown'.
... function getmonthname(mo) { mo = mo - 1; // adjust month number for array index (1 = jan, 12 = dec) let months = ['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dec']; if (months[mo]) { return months[mo]; } else { throw 'in
validmonthno'; // throw keyword is used here } } try { // statements to try monthname = getmonthname(mymonth); // function could throw exception } catch (e) { monthname = 'unknown'; logmyerrors(e); // pass exception object to error handler (i.e.
Regular expressions - JavaScript
when the user presses the "check" button, the script checks the
validity of the number.
... if the number is
valid (matches the character sequence specified by the regular expression), the script shows a message thanking the user and confirming the number.
... if the number is in
valid, the script informs the user that the phone number is not
valid.
constructor - JavaScript
if your class is a base class, the default constructor is empty: constructor() {} if your class is a derived class, the default constructor calls the parent constructor, passing along any arguments that were provided: constructor(...args) { super(...args); } that enables code like this to work: class
validationerror extends error { printcustomermessage() { return `
validation failed :-( (details: ${this.message})`; } } try { throw new
validationerror("not a
valid phone number"); } catch (error) { if (error instanceof
validationerror) { console.log(error.name); // this is error instead of
validationerror!
... console.log(error.printcustomermessage()); } else { console.log('unknown error', error); throw error; } } the
validationerror class doesn't need an explicit constructor, because it doesn't need to do any custom initialization.
...for example: class
validationerror extends error { constructor(message) { super(message); // call parent class constructor this.name = '
validationerror'; this.code = '42'; } printcustomermessage() { return `
validation failed :-( (details: ${this.message}, code: ${this.code})`; } } try { throw new
validationerror("not a
valid phone number"); } catch (error) { if (error instanceof
validationerror) { console.log(error.name); // now this is
validationerror!
Array - JavaScript
using an in
valid index number returns undefined.
...nevertheless, trying to access an element of an array as follows throws a syntax error because the property name is not
valid: console.log(arr.0) // a syntax error there is nothing special about javascript arrays and the properties that cause this.
... const fruits = [] fruits.push('banana', 'apple', 'peach') console.log(fruits.length) // 3 when setting a property on a javascript array when the property is a
valid array index and that index is outside the current bounds of the array, the engine will update the array's length property accordingly: fruits[5] = 'mango' console.log(fruits[5]) // 'mango' console.log(object.keys(fruits)) // ['0', '1', '2', '5'] console.log(fruits.length) // 6 increasing the length.
JSON - JavaScript
any json text is a
valid javascript expression...
... ...but only in javascript engines that have implemented the proposal to make all json text
valid ecma-262.
...the tab character (u+0009), carriage return (u+000d), line feed (u+000a), and space (u+0020) characters are the only
valid whitespace characters.
handler.construct() - JavaScript
in order for the new operation to be
valid on the resulting proxy object, the target used to initialize the proxy must itself have a [[construct]] internal method (i.e.
... new target must be
valid).
...the target in proxy initialization must itself be a
valid constructor for the new operator.
WebAssembly - JavaScript
constructor properties webassembly.compileerror() indicates an error during webassembly decoding or
validation.
... webassembly.
validate()
validates a given typed array of webassembly binary code, returning whether the bytes are
valid webassembly code (true) or not (false).
... 61firefox android full support 58opera android full support 45safari ios no support nosamsung internet android full support 8.0nodejs no support no
validatechrome full support 57edge full support 16firefox full support 52notes full support 52notes notes disabled in the firefox 52 extended support release (esr).ie no support n...
Lexical grammar - JavaScript
and is only
valid at the absolute start of a script or module.
... 123456789123456789n // 123456789123456789 0o777777777777n // 68719476735 0x123456789abcdefn // 81985529216486895 0b11101001010101010101n // 955733 note that legacy octal numbers with just a leading zero won't work for bigint: // 0755n // syntaxerror: in
valid bigint syntax for octal bigint numbers, always use zero followed by the letter "o" (uppercase or lowercase): 0o755n for more information about bigint, see also javascript data structures.
... prior to the proposal to make all json text
valid ecma-262, u+2028 <ls> and u+2029 <ps>, were also disallowed from appearing unescaped in string literals.
Destructuring assignment - JavaScript
{a, b} = {a: 1, b: 2} is not
valid stand-alone syntax, as the {a, b} on the left-hand side is considered a block and not an object literal.
... however, ({a, b} = {a: 1, b: 2}) is
valid, as is const {a, b} = {a: 1, b: 2} your ( ...
... let {a, b, ...rest} = {a: 10, b: 20, c: 30, d: 40} a; // 10 b; // 20 rest; // { c: 30, d: 40 } in
valid javascript identifier as a property name destructuring can be used with property names that are not
valid javascript identifiers by providing an alternative identifier that is
valid.
Optional chaining (?.) - JavaScript
the optional chaining operator (?.) permits reading the value of a property located deep within a chain of connected objects without having to expressly
validate that each reference in the chain is
valid.
...without optional chaining, looking up a deeply-nested subproperty requires
validating the references in between, such as: let nestedprop = obj.first && obj.first.second; the value of obj.first is confirmed to be non-null (and non-undefined) before then accessing the value of obj.first.second.
...do something with the data } catch (err) { onerror?.(err.message); // no exception if onerror is undefined } } optional chaining with expressions you can also use the optional chaining operator when accessing properties with an expression using the bracket notation of the property accessor: let nestedprop = obj?.['prop' + 'name']; optional chaining not
valid on the left-hand side of an assignment let object = {}; object?.property = 1; // uncaught syntaxerror: in
valid left-hand side in assignment array item access with optional chaining let arrayitem = arr?.[42]; examples basic example this example looks for the value of the name property for the member bar in a map when there is no such member.
SVG Core Attributes - SVG: Scalable Vector Graphics
value: any
valid id string; animatable: no lang participates in defining the language of the element, the language that non-editable elements are written in or the language that editable elements should be written in.
... value: any
valid language id; animatable: no tabindex the tabindex svg attribute allows you to control whether an element is focusable and to define the relative order of the element for the purposes of sequential focus navigation.
... value: any
valid language id; animatable: no xml:space deprecated since svg 2 svg supports the standard xml attribute xml:space to specify the handling of white space characters within a given <text> element's character data.
href - SVG: Scalable Vector Graphics
specifically, timeevents are dispatched and the animation element can be used as syncbase in an identical fashion to when the url refers to a
valid target element.
... value <url> default value none animatable yes example html, body, svg { height: 100%; } <svg viewbox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"> <image href="/files/2917/fxlogo.png" x="0" y="0" height="100" width="100"/> </svg> lineargradient for <lineargradient>, href defines url referring to a template gradient element; to be
valid, the reference must be to a different <lineargradient> or <radialgradient> element.
... value <url> default value none animatable yes radialgradient for <radialgradient>, href defines url referring to a template gradient element; to be
valid, the reference must be to a different <lineargradient> or <radialgradient> element.
Types of attacks - Web security
these attacks succeed if the web app does not employ enough
validation or encoding.
... cross-site scripting attacks usually occur when 1) data enters a web app through an untrusted source (most often a web request) or 2) dynamic content is sent to a web user without being
validated for malicious content.
...in this situation, someone includes an image that isn’t really an image (for example in an unfiltered chat or forum), instead it really is a request to your bank’s server to withdraw money: <img src="https://bank.example.com/withdraw?account=bob&amount=1000000&for=mallory"> now, if you are logged into your bank account and your cookies are still
valid (and there is no other
validation), you will transfer money as soon as you load the html that contains this image.
XML introduction - XML: Extensible Markup Language
comments <!-- comment --> "correct" xml (
valid and well-formed) Сorrect design rules for an xml document to be correct, the following conditions must be fulfilled: document must be well-formed.
... example <?xml version="1.0" encoding="utf-8"?> <message> <warning> hello world <!--missing </warning> --> </message> now let's look at a corrected version of that same document: <?xml version="1.0" encoding="utf-8"?> <message> <warning> hello world </warning> </message> a document that contains an undefined tag is in
valid.
... for example, if we never defined the <warning> tag, the document above wouldn't be
valid.
<xsl:stylesheet> - XSLT: Extensible Stylesheet Language Transformations
default-
validation defines the default value of the
validation attribute of all relevant instructions appearing within its scope.
... input-type-annotations specifies whether type annotations are stripped from the element so the same results are produced whether the source documents have been
validated against a schema or not.
... xslt 2.0 added the attributes xpath-default-namespace, default-
validation, default-collation, and input-type-annotations and made all attributes except version optional.
Understanding WebAssembly text format - WebAssembly
(module) this module is totally empty, but is still a
valid module.
... the webassembly
validation rules ensure the stack matches exactly: if you declare a (result f32), then the stack must contain exactly one f32 at the end.
... imported functions are just like normal functions: they have a signature that webassembly
validation checks statically, and they are given an index and can be named and called.
page-mod - Archive of obsolete content
if you are maintaining a list of workers belonging to a page-mod, you can use this event to remove workers that are no longer
valid.
... for example, if you maintain a list of workers attached to a page-mod: var workers = []; var pagemod = require("sdk/page-mod").pagemod({ include: ['*'], contentscriptwhen: 'ready', contentscriptfile: data.url('pagemod.js'), onattach: function(worker) { workers.push(worker); } }); you can remove workers when they are no longer
valid by listening to detach: var workers = []; function detachworker(worker, workerarray) { var index = workerarray.indexof(worker); if(index != -1) { workerarray.splice(index, 1); } } var pagemod = require("sdk/page-mod").pagemod({ include: ['*'], contentscriptwhen: 'ready', contentscriptfile: data.url('pagemod.js'), onattach: function(worker) { workers.push(worker); worker.on('detach', function () { detachworker(this...
request - Archive of obsolete content
however, keep in mind that the same
validation rules that apply to options in the constructor will apply during assignment.
... thus, each can throw if given an in
valid value.
io/text-streams - Archive of obsolete content
see nsicharsetconvertermanager.idl for documentation on how to determine other
valid values for this.
...see nsicharsetconvertermanager.idl for documentation on how to determine other
valid values for this.
Bootstrapped extensions - Archive of obsolete content
the absolute minimum needed here is: file: install.rdf file: chrome.manifest file: bootstrap.js folder: locale folder:
valid_locale_here file: anything.properties in the locale folder you must have folders for each of the languages you want to provide; each folder must be named a
valid locale (ex: en-us).
...fined point to a dtd file in your locale folder such as: <!doctype html system "chrome://l10n/locale/mozilla.dtd"> must add xmlns attribute to html tag for example: <html xmlns="http://www.w3.org/1999/xhtml"> if you have multiple dtd files read on here: using multiple dtds the bare minimum needed is: file: install.rdf file: chrome.manifest file: bootstrap.js folder: locale folder:
valid_locale_here file: anything.dtd the chrome.manifest file must include a definition for content for example: content name_of_your_addon ./ the chrome.manifest file must also include a line pointing to the locale, just like in the above property section, if you had a folder named en-us in locale, the chrome.manifest file should contain: locale name_of_your_addon en-us loca...
Enhanced Extension Installation - Archive of obsolete content
the guid and version supplied are
validated, and then compatibility is checked for by the new _getinstalldata function.
... this function returns the guid, version, and type of the item, and also an error code listing either success, or the reason for a failure, such as in
valid guid, version, or incompatible item.
Install Manifests - Archive of obsolete content
this means that the add-on will work with the application identified by the id property (<em:id>) specified (for a comprehensive list of application ids and
valid min/maxversions for them see
valid application versions for add-on developers), from the minimum version (<em:minversion>) up to and including the maximum version (<em:maxversion>).
... examples <em:version>2.0</em:version> <em:version>1.0.2</em:version> <em:version>0.4.1.2005090112</em:version> firefox 1.5 / xulrunner 1.8 - add-ons that do not use a
valid version format will not be installed.
Intercepting Page Loads - Archive of obsolete content
// find the root document: while (doc.defaultview.frameelement) { doc = doc.defaultview.frameelement.ownerdocument; } } } } the second if
validation is necessary if you need to make a distinction for html documents being loaded in inner page frames.
...make sure you access it from inside the state
validation if condition.
XPCOM Objects - Archive of obsolete content
this is done for certain value types that are not
valid as return values in idl, such as typed arrays.
...the only aspects to take into account are that methods and attributes must have the same names as their idl counterparts, and that the queryinterface method is implemented: queryinterface : function(aiid) { if (!aiid.equals(ci.xsihellocounter) && !aiid.equals(ci.nsisupports)) { throw cr.ns_error_no_interface; } return this; } the method is very simple, it
validates that the caller is requesting a supported interface, otherwise it throws an exception.
CSS3 - Archive of obsolete content
it also defines the currentcolor keyword as a
valid color.
... allow the styling of forms according their content using the css :indeterminate, :default, :
valid, :in
valid, :in-range, :out-of-range, :required, :optional, :read-only, and :read-write pseudo-classes and the ::value, ::choices, ::repeat-item, and ::repeat-index pseudo-elements.
cert_override.txt - Archive of obsolete content
the key and the website are not
valid: # psm certificate override settings file # this is a generated file!
... domainname:port : port 443 for https (ssl) hash algorithm oid sha1-256: oid.2.16.840.1.101.3.4.2.1 (most used) sha-384: oid.2.16.840.1.101.3.4.2.2 sha-512: oid.2.16.840.1.101.3.4.2.3 certificate fingerprint using previous hash algorithm one or more characters for override type: m : allow mismatches in the hostname u : allow untrusted certs (whether it's self signed cert or a missing or in
valid issuer cert) t : allow errors in the
validity time, for example, for expired or not yet
valid certs certificate's serial number and the issuer name as a base64 encoded string ...
Editor Embedding Guide - Archive of obsolete content
nscomptr<nsieditingsession> editingsession; nsiwebbrowser->do_getinterface(getter_addrefs(editingsession)); if (editingsession) editingsession->makewindoweditable(domwindow, "html", pr_true); the
valid editor types are: "text" (similar to notepad or a textarea; does not allow for html) "textmail" (similar to "text" but html can be inserted; intended for plaintext mail usage and handling of citations) "html" (this is the default type if no type is specified; it allows for all html tags to be inserted) "htmlmail" (this is much like "html" except there are a few editing rules/behaviors that ...
... acommandparams could possibly be a null pointer or a pointer to a
valid structure filled with relative parameters to acommand (see list below for legal params).
Layout System Overview - Archive of obsolete content
sometimes a content element comes in incrementally, and in
validates the formatting of some of the frames that precede it, frame that have already been formatted.
...in all cases, the determination of the impact is critical to avoid either the problem of not updating impacted elements, thus presenting an in
valid presentation, or updating too much of the presentation and thus doing too much work, potentially causing performance problems.
Hidden prefs - Archive of obsolete content
the default (defined in mailnews.js) is: pref("mail.addr_book.quicksearchquery.format","?(or(primaryemail,c,@v)(displayname,c,@v)(firstname,c,@v)(lastname,c,@v))"); "and", "or" and "not" are
valid.
... see http://lxr.mozilla.org/mozilla/sourc...drdatabase.idl for the list of
valid attributes "c" == contains.
Install script template - Archive of obsolete content
current browser var errblock1; // error return codes when we try and do a secondary installation var errblock2 = 0; // global variable containing our secondary install location var secondaryfolder; //special error values used by the cycore developers (www.cycore.com) who helped make this install script var exceptionoccurederror = -4711; var winregisnullerror = -4712; var in
validrootkeyerror = -4713; var registrykeynotwritableerror = -4714; //initinstall block //the installation is initialized here -- if we fail here, cancel the installation // initinstall is quite an overloaded method, but i have invoked it here with three strings // which are globally defined err = initinstall(software_name, plid, version); if (err != 0) { // call initinstall again in case...
...r; } // which root to start from hklm, hkcu if (rootkey == hkey_local_machine) { logcomment("moz registerplid: rootkey=="+hkey_local_machine); winreg.setrootkey(winreg.hkey_local_machine); } else if (rootkey == hkey_current_user) { logcomment("moz registerplid: rootkey=="+hkey_current_user); winreg.setrootkey(winreg.hkey_current_user); } else { logcomment("moz registerplid: in
valid rootkey, "+rootkey); return in
validrootkeyerror; } if (!winreg.iskeywritable(plidpath)) { logcomment("moz registerplid: registry key not writable"); return registrykeynotwritableerror; } // if we can't find the plidpath create the key if (!winreg.keyexists(plidpath)) { logcomment("moz registerplid: creating missing key "+plidpath+"."); myregstatus = winreg.createkey(plidpath, "...
events - Archive of obsolete content
if this attribute is not specified, or you set it to the value '*', all events are
valid.
...
valid events are listed below, or you can use your own events.
Accessing Files - Archive of obsolete content
it is important to note that this file does not have to exist for a file reference to be
valid.
... that is, nsiscriptableio.getfile() will still return a
valid file reference even if the file 'sample.txt' does not yet exist.
Index - Archive of obsolete content
410
validate xul attributes, xul reference no summary!
... 979 xul events mozilla, non-standard, overview, reference, xul, xul_events, events the following tables and sections describe the event handler that are
valid for most xul elements.
Creating a Wizard - Archive of obsolete content
if it returns false, then the wizard does not close, which might occur if the function savedoginfo() encountered in
valid input, for example.
...this allows you to
validate the input entered on each page before the user continues.
Tree Box Objects - Archive of obsolete content
the simplest is to call in
validaterow() which will redraw a specific row in the tree.
... other redrawing functions are in
validatecell() to redraw only a single cell in
validatecolumn() to redraw a column in
validaterange() to redraw a range of rows in
validate() to redraw the entire tree.
Updating Commands - Archive of obsolete content
you will need to think about when a command is
valid and when it is not.
...for example, the paste command is
valid when a textbox has the focus and there is something on the clipboard to paste.
Using Remote XUL - Archive of obsolete content
<?xml version="1.0"?> <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" /> a xul document requires only two entities to be
valid, an xml processing instruction on the first line that identifies the file as xml, and a window element that defines a xul application window (or in this case web page).
... these two elements give us a
valid xul document we can load and display in our web browser, even though there's nothing to see yet.
image - Archive of obsolete content
attributes onerror, onload, src,
validate properties accessibletype, src style classes alert-icon, error-icon, message-icon, question-icon examples <image src='firefoxlogo.png' width='135' height='130'/> attributes onerror type: script code this event is sent to an image element when an error occurs loading the image.
...
validate type: one of the values below this attribute indicates whether to load the image from the cache or not.
tab - Archive of obsolete content
attributes accesskey, afterselected, beforeselected, command, crop, disabled, first-tab, image, label, last-tab, linkedpanel, oncommand, pending, pinned, selected, tabindex, unread,
validate, value properties accesskey, accessibletype, command, control, crop, disabled, image, label, linkedpanel, selected, tabindex, value examples (example needed) attributes accesskey type: character this should be set to a character that is used as a shortcut key.
...
validate type: one of the values below this attribute indicates whether to load the image from the cache or not.
tabbrowser - Archive of obsolete content
the returned index is dependent on the tabs in the tabbrowser and is in
validated when the tab ordering changes.
...in addition to the flags allowed for the reloadwithflags method, the following flags are also
valid: load_flags_is_refresh: this flag is used when the url is loaded because of a meta tag refresh or redirect.
toolbarbutton - Archive of obsolete content
attributes accesskey, autocheck, checkstate, checked, command, crop, dir, disabled, dlgtype, group, image, label, oncommand, open, orient, tabindex, title, type,
validate properties accesskey, accessibletype, autocheck, checkstate, checked, command, crop, dir, disabled, dlgtype, group, image, label, open, orient, tabindex, type examples <toolbar id="test-toolbar"> <toolbarbutton accesskey="p" label="plain"/> <toolbarbutton accesskey="c" label="checkbox" type="checkbox"/> <toolbarbutton accesskey="b" label="menu-button" type="menu-button"> ...
... examples: type value <toolbarbutton > menu menu-button checkbox radio
validate type: one of the values below this attribute indicates whether to load the image from the cache or not.
2006-10-06 - Archive of obsolete content
discussions is thunderbird using a
valid w3c coding?
... peter lairo requested someone who are knowledgeable in w3c standards to confirm if the use of <blockquote type="cite"> is
valid w3c code.
Extentsions FAQ - Archive of obsolete content
what is the
valid location and things needed to to release a mozilla extension on mozallia site?
...however not all servers support user flags, in which case you get reduced functionality as follows: all flags are stored in your local cache and are lost if your cache gets in
validated, and only "known" properties are copied when messages are copied.
2006-11-10 - Archive of obsolete content
(was: extended
validation certificates) a continuation of last week's discussion on extended
validation certificates, the there post was getting unruly at 147 replies.
... good ideas a splinter off of the extended
validation certificates discussion going over whether or not fraudulent websites may get these certificates and if so how to prevent this from happening.
NPRect - Archive of obsolete content
description nprect defines the bounding box of the area of the plug-in window to be updated, painted, in
validated, or clipped to.
... see also npn_forceredraw() npn_in
validaterect() npn_in
validateregion() npregion npwindow ...
NPRegion - Archive of obsolete content
xwindows: typedef region npregion; description npregion defines the region of the plug-in window to be updated, painted, in
validated, or clipped to.
...see also npn_forceredraw() npn_in
validaterect() npn_in
validateregion() npwindow nprect ...
Digital Signatures - Archive of obsolete content
figure 1 shows a simplified view of the way a digital signature can be used to
validate the integrity of signed data.
...to
validate the integrity of the data, the receiving software first uses the signer's public key to decrypt the hash.
Using Web Standards in your Web Pages - Archive of obsolete content
the first 2 sections address exclusively
validation issues, benefits of
validation, deprecated elements, deprecated attributes.
... how to upgrade a webpage markup code to pass
validation and how to implement css are addressed by providing recommendations, tutorials and references.
Introduction - Archive of obsolete content
« previousnext » basic syntax with e4x enabled, basic xml elements are
valid syntax for variables.
... for instance var element = <foo/>; is perfectly
valid in an e4x enabled browser.
Reference - Archive of obsolete content
i was wondering what should be done about those examples, since they would no longer be
valid with fx 1.5+ and family.
...there are still
valid needs for this: computers on slow links, computers behind insane firewalls, as well as computers not connected to internet.
Mozilla XForms User Interface - Archive of obsolete content
it is
valid for a form control to have an empty label element.
...alert this message will be shown when the form control cannot properly bind to instance data or when the instance data value is in
valid or out of the specified range of selectable values (see the spec).
Obsolete: XPCOM-based scripting for NPAPI plugins - Archive of obsolete content
npp_getvalue implementation and possible scenario of scriptable object life cycle #include "nsitestplugin.h" nperror npp_new(npmimetype plugintype, npp instance, uint16 mode, int16 argc, char* argn[], char* argv[], npsaveddata* saved) { if(instance == null) return nperr_in
valid_instance_error; // just prime instance->pdata with null for the purpose of this example // it will be assigned to the scriptable interface later to keep its // association with the specific plugin instance instance->pdata = null; return rv; } nperror npp_getvalue(npp instance, nppvariable variable, void *value) { if(instance == null) return nperr_in
valid_instance...
...he object ns_addref(scriptablepeer); *(nsisupports **)value = scriptablepeer; } else if (variable == nppvpluginscriptableiid) { nsiid* ptr = (nsiid *)npn_memalloc(sizeof(nsiid)); *ptr = scriptableiid; *(nsiid **)value = ptr; } return rv; } nperror npp_destroy (npp instance, npsaveddata** save) { if(instance == null) return nperr_in
valid_instance_error; // release the scriptable object ns_if_release(instance->pdata); } original document information author(s): arun k.
How CSS works - Learn web development
in the example below i have used the british english spelling for color, which makes that property in
valid as it is not recognised.
...all of the other css have been applied however; only the in
valid line is ignored.
How to structure a web form - Learn web development
add this to the bottom of your form now: <p> <button type="submit">
validate the payment</button> </p> you can see the finished form in action below (also find it on github — see our payment-form.html source and running live): test your skills!
... see also a list apart: sensible forms: a form usability checklist previous overview: forms next in this module your first form how to structure a web form basic native form controls the html5 input types other form controls styling web forms advanced form styling ui pseudo-classes client-side form
validation sending form data advanced topics how to build custom form controls sending forms through javascript property compatibility table for form widgets ...
Test your skills: Advanced styling - Learn web development
what we'd like you to do is make use of some advanced pseudo-classes to provide some useful indicators of
validity.
... second, we want you to provide a useful visual indicator of whether the data entered inside each input is
valid or not.
Third-party APIs - Learn web development
note: the example has rudimentary form data
validation — the search term field has to be filled in before the form can be submitted (achieved using the required attribute), and the date fields have pattern attributes specified, which means they won't submit unless their values consist of 8 numbers (pattern="[0-9]{8}").
... see form data
validation for more details on how these work.
Introduction to the server side - Learn web development
this includes selecting and styling ui components, creating layouts, navigation, form
validation, etc.
...the server-side code handles tasks like
validating submitted data and requests, using databases to store and retrieve data and sending the correct data to the client as required.
Introducing a complete toolchain - Learn web development
this makes sense: if an unknown html element or in
valid css property is used, due to the resilient nature of these two languages nothing is likely to break.
...however, bear in mind that if you want to refine and enforce a rule about how your code looks (or
validates), it's very likely that it can be done with the right eslint configuration.
Accessibility API cross-reference
e alternative richtext content may be nested inside, but the canvas itself is presentational) a dialog for picking a color n/a color_chooser color_chooser n/a <input type=color> a dialog for picking a file n/a file_chooser file_chooser n/a invoked with <input type=file> no explanation given n/a n/a in
valid n/a contains accessible info, but its role is not known n/a n/a unknown accessible states and properties description & notes msaa state (state_system_*) java accessibility state gnome accessibility state (atk_state_*) mac os x accessibility state aria state or property html attribute tagged pdf relev...
...ant xul used in aria to denote non-conformant user input n/a n/a in
valid aria-in
valid this window is currently the active window n/a active active n/a identifies the currently active element when focus is on a composite widget, textbox, group, or application.
How Mozilla's build system works
phases when you type mach build to build the tree, three high-level phases occur within the build system: system detection and
validation preparation of the build backend invocation of the build backend phase 1: configure phase 1 centers around the configure script.
... the primary job of configure is to determine characteristics of the system and compiler, apply options passed into it, and
validate everything looks ok to build.
How to implement a custom autocomplete search component
= comments; } providerautocompleteresult.prototype = { _searchstring: "", _searchresult: 0, _defaultindex: 0, _errordescription: "", _results: [], _comments: [], /** * @return {string} the original search string */ get searchstring() { return this._searchstring; }, /** * @return {number} the result code of this result object, either: * result_ignored (in
valid searchstring) * result_failure (failure) * result_nomatch (no matches found) * result_success (matches found) */ get searchresult() { return this._searchresult; }, /** * @return {number} the index of the default item that should be entered if * none is selected */ get defaultindex() { return this._defaultindex; }, /** * @return {string} ...
...ts = results; this._comments = comments; } simpleautocompleteresult.prototype = { _searchstring: "", _searchresult: 0, _defaultindex: 0, _errordescription: "", _results: [], _comments: [], /** * the original search string */ get searchstring() { return this._searchstring; }, /** * the result code of this result object, either: * result_ignored (in
valid searchstring) * result_failure (failure) * result_nomatch (no matches found) * result_success (matches found) */ get searchresult() { return this._searchresult; }, /** * index of the default item that should be entered if none is selected */ get defaultindex() { return this._defaultindex; }, /** * a string describing the cau...
IPDL Tutorial
to initialize a union, simply assign a
valid value to it, as follows: avariant = false; structs ipdl has built-in support for arbitrary collections of serializable data types.
...the `manages` statement also means that pplugininstance actors are tied to the lifetime of the plugin actor that creates them: if this pplugin instance is destroyed, all the pplugininstances associated with it become in
valid or are destroyed as well.
Introduction to Layout in Mozilla
target frame child rs.reason set based on rc’s type incremental reflow propagate damage to frames later “in the flow” incremental reflow multiple reflow commands are batched nsreflowpath maintains a tree of target frames amortize state recovery and damage propagation cost painting as reflow proceeds through the frame hierarchy, areas are in
validated via nsiviewmanager::updateview unless immediate, in
valid areas are coalesced and processed asynchronously via os expose event native expose event dispatched to widget; widget delegates to the view manager view manager paints views back-to-front, invoking presshell’s paint method presshell::paint walks from the view to the frame; invokes nsiframe::paint for each layer incrementalism...
...in
valid content) - harishd events - saari, joki block-and-line reflow - waterson, dbaron table reflow - karnaze form controls - rods, bryner style resolution and rule tree - dbaron views, widgets, and painting - roc, kmcclusk editor - kin, jfrancis xul and box layout - hewitt, ben xbl - hewitt, ben conclusion data flow key data structures detailed walk-through incrementalism ...
Localizing XLIFF files for iOS
once you've completed translation, it's important to make sure the xml in your xliff file is
valid (e.g., no broken tag sets).
... open the file in firefox to have it run a
validity check and correct any errors it might yell about.
Mozilla Framework Based on Templates (MFBT)
useful for input
validation.
... rangedptr.h implements rangedptr, a smart pointer template whose value may be manipulated only within a range specified at construction time, and which may be dereferenced only at
valid locations in that range.
Leak And Bloat Tests
r_pref("mail.account.account2.server", "server2"); user_pref("mail.accountmanager.accounts", "account1,account2"); user_pref("mail.accountmanager.defaultaccount", "account2"); user_pref("mail.accountmanager.localfoldersserver", "server1"); user_pref("mail.identity.id1.fullname", "tinderbox"); user_pref("mail.identity.id1.smtpserver", "smtp1"); user_pref("mail.identity.id1.useremail", "tinderbox@in
valid.com"); user_pref("mail.identity.id1.
valid", true); user_pref("mail.root.none-rel", "[profd]mail"); user_pref("mail.root.pop3-rel", "[profd]mail"); user_pref("mail.server.server1.directory-rel", "[profd]mail/local folders"); user_pref("mail.server.server1.hostname", "local folders"); user_pref("mail.server.server1.name", "local folders"); user_pref("mail.server.server1.type", "none"); user_pref("m...
...ail.server.server1.username", "nobody"); user_pref("mail.server.server2.check_new_mail", false); user_pref("mail.server.server2.directory-rel", "[profd]mail/tinderbox"); user_pref("mail.server.server2.download_on_biff", true); user_pref("mail.server.server2.hostname", "tinderbox"); user_pref("mail.server.server2.login_at_startup", false); user_pref("mail.server.server2.name", "tinderbox@in
valid.com"); user_pref("mail.server.server2.type", "pop3"); user_pref("mail.server.server2.username", "tinderbox"); user_pref("mail.smtp.defaultserver", "smtp1"); user_pref("mail.smtpserver.smtp1.hostname", "tinderbox"); user_pref("mail.smtpserver.smtp1.username", "tinderbox"); user_pref("mail.smtpservers", "smtp1"); user_pref("mail.startup.enabledmailcheckonce", true); user_pref("mailnews.start_page_override.
PR_AcceptRead
this parameter is
valid only if the function return does not indicate failure.
...this parameter is
valid only if the function return does not indicate failure.
PR_CreateThread
nspr does not assess the type or the
validity of the value passed in this parameter.
...this pointer remains
valid until the thread returns from its root function.
PR_GetSpecialFD
returns if the id parameter is
valid, pr_getspecialfd returns a file descriptor that represents the corresponding standard i/o stream.
... otherwise, pr_getspecialfd returns null and sets the error to pr_in
valid_argument_error.
PR_PopIOLayer
if the layer is not found in the stack or cannot be popped (for example, the bottommost layer), the function returns null with the error code pr_in
valid_argument_error.
... even if the identity indicates the top layer of the stack, the reference returned is not the file descriptor for the stack and that file descriptor remains
valid.
4.3 Release Notes
release date: 01 april 2009 introduction network security services for java (jss) 4.3 is a minor release with the following new features: sqlite-based shareable certificate and key databases libpkix: an rfc 3280 compliant certificate path
validation library pkcs11 needslogin method support hmacsha256, hmacsha384, and hmacsha512 support for all nss 3.12 initialization options jss 4.3 is tri-licensed under mpl 1.1/gpl 2.0/lgpl 2.1.
... libpkix: an rfc 3280 compliant certificate path
validation library (see pkixverify) pk11token.needslogin method (see needslogin) support hmacsha256, hmacsha384, and hmacsha512 (see hmactest.java) support for all nss 3.12 initialization options (see initializationvalues) new ssl error codes (see http://mxr.mozilla.org/security/sour...util/sslerrs.h) ssl_error_unsupported_extension_alert ssl_error_certificate_unobtainable_alert ssl_e...
JSS
if you are planning to just use jss jce provider as a bridge to nss's fips
validated pkcs#11 module, then the sunpkcs11 jce provider may do all that you need.
...tions building jss 4.4.x building jss 4.3.x older build instructions download or view source download binaries, source, and javadoc view the source online testing jss tests frequently asked questions jss faq information on jss planning can be found at wiki.mozilla.org, including: nss fips
validation nss roadmap page community view mozilla cryptography forums...
NSS_3.12.1_release_notes.html
unconditionally dump socket traffic to stdout bug 430368: vfychain -t option is undocumented bug 430369: vfychain -o succeeds even if -pp is not specified bug 430399: vfychain -pp crashes bug 430405: error log is not produced by cert_pkixverifycert bug 430743: update ssltap to understand the tls session ticket extension bug 430859: pkix: policy mapping fails verification with error in
valid arguments bug 430875: document the policy for the order of cipher suites in ssl_implementedciphers.
... function bug 442618: eliminate dead function cert_certpackagetype bug 443755: extra semicolon in pkm_tlskeyandmacderive makes conditional code unconditional bug 443760: extra semicolon in seqdatabase makes static analysis tool suspicious bug 448323: certutil -k doesn't report the token and slot names for found keys bug 448324: ocsp checker returns incorrect error code on request with in
valid signing cert bug 449146: remove dead libsec function declarations bug 453227: installation of pem-encoded certificate without trailing newline fails documentation for a list of the primary nss documentation pages on mozilla.org, see nss documentation.
NSS 3.18 release notes
new functions in certdb.h sec_checkcrltimes - check the
validity of a crl at the given time.
... sec_getcrltimes - extract the
validity times from a crl.
NSS 3.48 release notes
n of versions lower than 1.3 after helloretryrequest bug 1596450 - added a simplified and unified mac implementation for hmac and cmac behind pkcs#11 bug 1522203 - remove an old pentium pro performance workaround bug 1592557 - fix prng known-answer-test scripts bug 1586176 - encryptupdate should use maxout not block size (cve-2019-11745) bug 1593141 - add `notbefore` or similar "beginning-of-
validity-period" parameter to mozilla::pkix::trustdomain::checkrevocation bug 1591363 - fix a pbkdf2 memory leak in nsc_generatekey if key length > max_key_len (256) bug 1592869 - use arm neon for ctr_xor bug 1566131 - ensure sha-1 fallback disabled in tls 1.2 bug 1577803 - mark pkcs#11 token as friendly if it implements ckp_public_certificates_token bug 1566126 - power ghash vector acceleration ...
...bug 1589073 - use of new pr_assert_arg in certdb.c bug 1590495 - fix a crash in pk11_makecertfromhandle bug 1591742 - ensure des iv length is
valid before usage from pkcs#11 bug 1588567 - enable mozilla::pkix gtests in nss ci bug 1591315 - update nsc_decrypt length in constant time bug 1562671 - increase nss mp kdf default iteration count, by default for modern key4 storage, optionally for legacy key3.db storage bug 1590972 - use -std=c99 rather than -std=gnu99 bug 1590676 - fix build if arm doesn't support neon bug 1575411 - enable tls extended master secret by default bug 1590970 - ssl_settimefunc has incomplete coverage bug 1590678 - remove -wmaybe-uninitialized warning in tls13esni.c bug 1588244 - nss changes for delegated credential key strength checks bug 1459141 - add more cb...
NSS Sample Code Sample_2_Initialization of NSS
11_needuserinit(slot)) { newpw = initslotpassword(slot, pr_false, &pwdata); rv = pk11_initpin(slot, (char*)null, newpw); } else { for (;;) { oldpw = getmodulepassword(slot, pr_false, &pwdata); if (pk11_checkuserpassword(slot, oldpw) != secsuccess) { if (pwdata.source == pw_none) { pr_fprintf(pr_stderr, "in
valid password.
... try again.\n"); } else { pr_fprintf(pr_stderr, "in
valid password.\n"); port_memset(oldpw, 0, pl_strlen(oldpw)); port_free(oldpw); return secfailure; } } else { break; } port_free(oldpw); } newpw = initslotpassword(slot, pr_false, &newpwdata); if (pk11_changepw(slot, oldpw, newpw) != secsuccess) { pr_fprintf(pr_stderr, "failed to change password.\n"); return secfailure; } port_memset(oldpw, 0, pl_strlen(oldpw)); port_free(oldpw); pr_fprintf(pr_stdout, "password changed successfully.\n"); } port_memset(newpw, 0, pl_strlen(newpw)); port_free(n...
Initialize NSS database - sample 2
); if (rv == secsuccess) { pr_fprintf(pr_stderr, "pk11_initpin failed.\n"); return secfailure; } } else { for (;;) { oldpw = getmodulepassword(slot, pr_false, &pwdata); if (pk11_checkuserpassword(slot, oldpw) != secsuccess) { if (pwdata.source == pw_none) { pr_fprintf(pr_stderr, "in
valid password.
... try again.\n"); } else { pr_fprintf(pr_stderr, "in
valid password.\n"); port_memset(oldpw, 0, pl_strlen(oldpw)); port_free(oldpw); return secfailure; } } else { break; } port_free(oldpw); } newpw = initslotpassword(slot, pr_false, &newpwdata); if (pk11_changepw(slot, oldpw, newpw) != secsuccess) { pr_fprintf(pr_stderr, "failed to change password.\n"); return secfailure; } port_memset(oldpw, 0, pl_strlen(oldpw)); port_free(oldpw); pr_fprintf(pr_stdout, "password changed successfully.\n"); } port_memset(newpw, 0, pl_strlen(newpw)); port_free(n...
NSS PKCS11 Functions
valid flags are: readonly - databases should be opened read only.
...passwordrequired - zero length passwords are not acceptable(
valid only if there is a keydb).
PKCS11 Implement
if a token has been removed during a session, c_getsessioninfo should return either ckr_session_closed or ckr_session_handle_in
valid.
... if a token has been removed and then the same or another token is inserted, c_getsessioninfo should return ckr_session_handle_in
valid.
FC_InitPIN
ckr_session_handle_in
valid: the session handle is in
valid.
... ckr_pin_in
valid: the pin has an in
valid utf-8 character.
FC_Login
ckr_session_handle_in
valid: the session handle is in
valid.
... ckr_user_type_in
valid the token can't authenticate the user because there is no key database or the user's password isn't initialized.
NSC_Login
ckr_session_handle_in
valid: the session handle is in
valid.
... ckr_user_type_in
valid the token can't authenticate the user because there is no key database or the user's password isn't initialized.
NSS reference
validating certificates cert_verifycertnow cert_verifycert cert_verifycertname cert_checkcert
validtimes nss_cmpcertchainwcanames manipulating certificates cert_dupcertificate cert_destroycertificate sec_deletepermcertificate __cert_closepermcertdb getting certificate information cert_findcertbyname cert_getcertnicknames cert_freenicknames cer...
... sec_pkcs12createexportcontext sec_pkcs12createpasswordprivsafe sec_pkcs12createunencryptedsafe sec_pkcs12addcertandkey sec_pkcs12addpasswordintegrity sec_pkcs12enablecipher sec_pkcs12encode sec_pkcs12destroyexportcontext sec_pkcs12decoderstart sec_pkcs12decoderimportbags sec_pkcs12decoderupdate sec_pkcs12decoderfinish sec_pkcs12decoder
validatebags sec_pkcs12decoderverify sec_pkcs12decodergetcerts sec_pkcs12decodersettargettokencas sec_pkcs12decoderiterateinit sec_pkcs12decoderiteratenext sec_pkcs12isencryptionallowed sec_pkcs12setpreferredcipher nspr functions a small number of nspr functions are required for using the certificate verification and ssl functions in nss.
OLD SSL Reference
ation ssl_authcertificatehook ssl_authcertificate ssl_badcerthook ssl_getclientauthdatahook nss_getclientauthdata ssl_handshakecallback ssl communication functions ssl_in
validatesession ssl_datapending ssl_securitystatus ssl_getsessionid ssl_setsockpeerid ssl functions used by callbacks ssl_peercertificate ssl_revealurl ssl_revealpinarg ssl handshake functions ...
...
validating certificates cert_verifycertnow cert_verifycertname cert_checkcert
validtimes nss_cmpcertchainwcanames manipulating certificates cert_dupcertificate cert_destroycertificate getting certificate information ...
gtstd.html
setting up the certificate and key databases before you can run the sample programs (server.c and client.c) that come with nss, you must set up certificate, key, and security module databases for both the client and the server and populate them with
valid ca, client ssl, and server ssl certificates.
... verifying the server and client certificates when you have finished setting up the server and client certificate databases, verify that the client and server certificates are
valid, as follows: >certutil -v -d server_db -u v -n myco.mcom.org certutil: certificate is
valid >certutil -v -d client_db -u c -n "joe client" certutil: certificate is
valid building nss programs on unix, use the gnu utility gmake to run the makefile.
sslintro.html
functions that can be used by both clients and servers during communication include the following: pr_send or pr_write pr_read or pr_recv pr_geterror pr_getpeername pr_sleep pr_malloc pr_free pr_poll pr_now pr_intervaltomilliseconds pr_millisecondstointerval pr_shutdown pr_close ssl_in
validatesession after establishing a connection, an application first calls pr_send, pr_recv, pr_read, pr_write, or ssl_forcehandshake to initiate the handshake.
...numerous functions provided by the nss libraries are useful for such application callback functions, including these: cert_checkcert
validtimes cert_getdefaultcertdb cert_destroycertificate cert_dupcertificate cert_findcertbyname cert_freenicknames cert_getcertnicknames cert_verifycertname cert_verifycertnow pk11_findcertfromnickname pk11_findkeybyanycert pk11_setpasswordfunc pl_strcpy pl_strdup pl_strfree pl_strlen ssl_peercertificate ssl_revealurl ssl_revealpinarg cleanup this portion of a...
NSS tools : signver
extended examples verifying a signature the -v option verifies that the signature in a given signature file is
valid when used to sign the given object (from the input file).
... signver -v -s signature_file -i signed_file -d sql:/home/my/sharednssdb signature
valid=yes printing signature data the -a option prints all of the information contained in a signature file.
GC Rooting Guide
a js::handle<t> is a reference to a js::rooted<t>, and is created implicitly by referencing a js::rooted<t>: it is not
valid to create a js::handle<t> manually (the whole point of a handle is that it only reference pointers that the gc knows about so it can update them when they move).
...then ~eventlogger will fire and trigger a gc, in
validating that unrooted stack/register pointer.
Bytecode Descriptions
they must be
valid offsets into the source buffer, measured in code units, such that scriptsource->substring(cx, start, end) is
valid.
... throwsetconst operands: (uint32_t nameindex) throws a runtime typeerror for in
valid assignment to a const binding.
JIT Optimization Strategies
this means that the array has
valid values for all indexes from 0 to length-1.
...this means that the array has
valid values for all indexes from 0 to length-1.
JS::IsCallable
this article covers features introduced in spidermonkey 38 return whether the given function object is callable/a
valid constructor.
... js::isconstructor returns whether the given function object is a
valid constructor.
JS_GetStringChars
the content of a js string is not guaranteed to be
valid utf-16.
... the array returned by this function remains
valid as long as str is
valid.
JS_IsConstructor
this article covers features introduced in spidermonkey 24 return whether the given function is a
valid constructor.
... description js_isconstructor determines if a specified function, fun is a
valid constructor object.
JS_IsIdentifier
this article covers features introduced in spidermonkey 17 test whether the given string is a
valid ecmascript identifier.
... description js_isidentifier tests if the given string is a
valid ecmascript identifier.
jsid
also, there is an additional jsid value, jsid_void, which does not occur in js scripts but may be used to indicate the absence of a
valid jsid.
... a void jsid is not a
valid id and only arises as an exceptional api return value, such as in js_nextproperty.
TPS Tests
additionally, note that the config file must parse as
valid json, and so you can't have comments in it (sorry, i know this is annoying).
...this test generally
validates your tps setup and does a light test of a few engines.
Web Replay
whenever the debugger is interacting with the child process the child process is paused at some point in execution, and the contents of the debug objects are only
valid until the middleman notifies the child process that it can resume forward execution or must rewind to an earlier snapshot.
... as described above under "debugger integration", child objects besides scripts and script sources become in
valid when the debugger resumes execution, and must be reconstructed each time the replaying process pauses.
Using the Places annotation service
you should not use any characters in your annotation names that are not
valid as part of an html path.
...
valid values for expiration are: expire_with_history : default.
An Overview of XPCOM
when you implement the nsisupports class (and you'll see in the chapter using xpcom utilities to make things easier how macros can make this process much easier), you must make sure the class methods return a
valid result when the client calls queryinterface with the nsisupports iid.
... ns_error_null_pointer returned when a
valid pointer is found to be nsnull.
Building the WebLock UI
the url that the addsite method expects is a string, so we can pass a string directly in from the user interface, or we can do a check on the string and verify that it's a
valid url.
...in this part of the tutorial, however, we only provide the means of adding an url provided as a string (which is not checked for
validity) and passing it through to the addsite api we defined in the earlier part of the tutorial.
imgIContainer
frame_max_value should be set to the value of the maximum constant above, as it is used for ensuring that a
valid value was passed in.
...only
valid for raster type images.
mozIStorageService
valid values are "profile" and "memory".
...exceptions thrown ns_error_in
valid_arg if astoragekey is in
valid.
mozIStorageStatement
state long the current state defined by mozistoragestatement.moz_storage_statement_in
valid, mozistoragestatement.moz_storage_statement_ready, or mozistoragestatement.moz_storage_statement_executing.
... statement status constants constant value description moz_storage_statement_in
valid 0 the sql statement is in
valid.
nsIAccessibilityService
sisupports aframe); nsiaccessible createhtmlcaptionaccessible(in nsisupports aframe); nsiaccessible getaccessible(in nsidomnode anode, in nsipresshell apresshell, in nsiweakreference aweakshell, inout nsiframe framehint, out boolean aishidden); nsiaccessible addnativerootaccessible(in voidptr aatkaccessible); void removenativerootaccessible(in nsiaccessible arootaccessible); void in
validatesubtreefor(in nsipresshell apresshell, in nsicontent achangedcontent, in pruint32 aevent); methods removenativerootaccessible() void removenativerootaccessible( in nsiaccessible arootaccessible ); in
validatesubtreefor() in
validate the accessibility cache associated with apresshell, for accessibles that were generated for acontainercontent and it's subtree.
... void in
validatesubtreefor( in nsipresshell apresshell, in nsicontent achangedcontent, in pruint32 aevent ); parameters <tt>apresshell</tt> the presshell where changes occured.
GetRelation
exception thrown ns_error_in
valid_arg indicates that the given index is in
valid.
... remark currently we do not support multiple relations so the zero index may be
valid only.
nsIChannel
after a request has been completed, the channel is still
valid for accessing protocol-specific results.
...if the notification callbacks are changed, then a cached interface pointer may become in
valid and may therefore need to be re-queried.
nsICommandLine
exceptions thrown ns_error_in
valid_arg the specified index is out of bounds.
...exceptions thrown ns_error_in
valid_arg the specified flag has no value.
nsIContentView
fails if the view isn't
valid.
...fails if the view isn't
valid.
nsICookieConsent
valid values are defined in nsicookie.idl.
...
valid values are defined in nsicookie.idl.
nsICryptoHMAC
this value must be one of the above
valid algorithm types.
...to create the key object use for instance: var keyobject = components.classes["@mozilla.org/security/keyobjectfactory;1"] .getservice(components.interfaces.nsikeyobjectfactory) .keyfromstring(components.interfaces.nsikeyobject.hmac, rawkeydata); exceptions thrown ns_error_in
valid_arg if an unsupported algorithm type is passed.
nsICryptoHash
exceptions thrown ns_error_in
valid_arg indicates that an unsupported algorithm type was passed initwithstring() initialize the hashing object.
... exceptions thrown ns_error_in
valid_arg indicates that an unsupported algorithm type was passed update() adds an array of data to be hashed to the object.
nsIDOMHTMLAudioElement
exceptions thrown ns_error_dom_in
valid_state_err the stream has not been initialized for writing by a call to mozsetup().
... ns_error_dom_type_mismatch_err the data isn't a
valid data type (an array or typed array of numeric values).
nsIDOMHTMLTimeRanges
exceptions thrown index_size_err the specified index is not
valid.
...exceptions thrown index_size_err the specified index is not
valid.
nsIDOMXPathResult
in
validiteratorstate boolean true if the iterator state has become in
valid.
... for example, modifying a node in
validates the iterator.
nsIDocShell
valid states are defined in constants.
...
valid states are defined in constants.
nsIDownloader
the resulting file is
valid from the time the downloader completes until the last reference to the downloader is released.
...if null, the downloader will select a location and the resulting file will be deleted (or otherwise made in
valid) when the downloader object is destroyed.
nsIException
inherits from: nsisupports last changed in gecko 1.7 method overview string tostring(); attributes attribute type description columnnumber pruint32
valid column numbers begin at 0.
... linenumber pruint32
valid line numbers begin at '1'.
nsIFile
exceptions thrown ns_error_file_in
valid_path indicates that this nsifile does not reference a symbolic link.
... this method will throw ns_error_file_not_found if the path is in
valid.
nsIJSID
valid boolean read only.
... return value true if the nsijsid's are
valid and have the same nsid, otherwise false.
nsIMutableArray
an index lower than 0 or higher than the current length of the array is in
valid and will be ignored.
...an index lower than 0 is in
valid and will be ignored.
nsINavHistoryQueryResultNode
queryoptions nsinavhistoryqueryoptions the options that group the node's children; only
valid for result_type_query nodes.
... methods getqueries() returns the queries that build the node's children; only
valid for result_type_query nodes.
nsINavHistoryResultTreeViewer
this is only
valid when a tree is attached, the result will be 0 otherwise.
...this is only
valid when a tree is attached.
Component; nsIPrefBranch
constants constant value description pref_in
valid 0 long pref_string 32 long data type.
...this value will be pref_string, pref_int, pref_bool, or pref_in
valid.
nsITreeColumn
nsitreecolumn getnext(); nsitreecolumn getprevious(); void in
validate(); attributes attribute type description atom nsiatom the atom attribute of nsitreecolumn which returns an nsiatom for the column, making it fast to do comparisons.
...in
validate() void in
validate(); parameters none.
nsIUTF8ConverterService
aallowsubstitution when true, allow the decoder to substitute in
valid input sequences by replacement characters.
...no
valid spec going around in mozilla code would break this assumption.
nsIWebBrowserPersist
exceptions thrown ns_error_in
valid_arg one or more arguments was in
valid.
... exceptions thrown ns_error_in
valid_arg one or more arguments was in
valid.
nsIXULTemplateBuilder
the addresult, removeresult, replaceresult and resultbindingchanged methods may be called by the query processor to indicate that the set of
valid results has changed, such that a different query may match.
... errors throws ns_error_null_pointer if either argument is null, or ns_error_in
valid_arg if the ids don't match resultbindingchanged() informs the template builder that one or more of the optional bindings for a result has changed.
nsIZipReader
note that a pattern may not use '~' multiple times, so a string such as '*~*z*~*y*' is not a
valid pattern.
... exceptions thrown ns_error_illegal_value on many but not all in
valid apattern values.
XPIDL
webidl interfaces are also
valid xpidl types.
... table 5: optional interface attributes attribute
valid for methods
valid for attributes effect changes source compatibility?
Address Book examples
let card = collection.cardforemailaddress("foo@bar.in
valid.com"); note: both of these functions may raise an ns_error_not_implemented exception if the collection has not implemented that function.
...e a card and set its properties using the nsiabcard interface (see the interface documentation for property names supported by the application): let card = components.classes["@mozilla.org/addressbook/cardproperty;1"] .createinstance(components.interfaces.nsiabcard); card.setproperty("firstname", "john"); card.setproperty("lastname", "smith"); card.primaryemail = "john@in
valid.com"; now add the card to an address book via its nsiabdirectory interface: let newcard = addressbook.addcard(card); the addcard function returns a new nsiabcard object that may have had nsiabdirectory specific data added to it, e.g.
FunctionType
the equivalent c function type declaration would be: returntype (*) ([argtype1, ..., argtypen]); exceptions thrown typeerror abi is not a
valid abi constants, or returntype or any of the argument types are not
valid ctype objects.
...for other function, pointer, and array types, this should be a
valid c type expression.
Browser Side Plug-in API - Plugins
npn_in
validaterect in
validates specified drawing area prior to repainting or refreshing a windowless plug-in.
... npn_in
validateregion in
validates specified drawing region prior to repainting or refreshing a windowless plug-in.
Plug-in Development Overview - Plugins
npn_in
validaterect: in
validate an area in a windowless plug-in before repainting or refreshing.
... npn_in
validateregion: in
validate an area in a windowless plug-in before repainting or refreshing.
Debugger - Firefox Developer Tools
note that in some cases, the prototype object for a given constructor has the same [[class]] as the instances that refer to it, but cannot itself be used as a
valid instance of the class.
... iscompilableunit(source) given a string of source code, designated bysource, return false if the string might become a
valid javascript statement with the addition of more lines.
Animation.pause() - Web APIs
exceptions in
validstateerror the animation's currenttime is unresolved (for example, if it's never been played or isn't currently playing) and the end time of the animation is positive infinity.
... throws an in
validstateerror if the animation's currenttime is unresolved (perhaps it hasn't started playing yet) and the end time of the animation is positive infinity.
Attr.namespaceURI - Web APIs
the dom does not handle or enforce namespace
validation per se.
... it is up to the dom application to do any
validation necessary.
AudioConfiguration - Web APIs
properties the audioconfiguration dictionary is made up of four audio properties, including: contenttype: a
valid audio mime type, for information on possible values and what they mean, see the web audio codec guide.
... examples //create media configuration to be tested const mediaconfig = { type : 'file', // 'record', 'transmission', or 'media-source' audio : { contenttype : "audio/ogg", //
valid content type channels : 2, // audio channels used by the track bitrate : 132700, // number of bits used to encode 1s of audio samplerate : 5200 // number of audio samples making up that 1s.
AudioProcessingEvent - Web APIs
note the the returned audiobuffer is only
valid in the scope of the onaudioprocess function.
...note the the returned audiobuffer is only
valid in the scope of the onaudioprocess function.
BaseAudioContext.createScriptProcessor() - Web APIs
important: webkit currently (version 31) requires that a
valid buffersize be passed when calling this method.
... note: it is in
valid for both numberofinputchannels and numberofoutputchannels to be zero.
CSS.registerProperty() - Web APIs
exceptions in
validmodificationerror the given name has already been registered.
... syntaxerror the given name isn't a
valid custom property name (starts with two dashes, e.g.
CSSPrimitiveValue.getFloatValue() - Web APIs
valid values are: constant description css_cm the value is a <length> in centimeters.
... exceptions type description domexception an in
valid_access_err is raised if the css value doesn't contain a float value or if the float value can't be converted into the specified unit.
CSSPrimitiveValue.setFloatValue() - Web APIs
valid values are: constant description css_cm the value is a <length> in centimeters.
... exceptions type description domexception an in
valid_access_err is raised if the css value doesn't contain a float value or if the string value can't be converted into the specified unit.
Cache.match() - Web APIs
ignoremethod: a boolean that, when set to true, prevents matching operations from
validating the request http method (normally only get and head are allowed.) it defaults to false.
...if fetch() returns a
valid http response with an response code in the 4xx or 5xx range, the catch() will not be called.
Document.createProcessingInstruction() - Web APIs
exceptions dom_in
valid_character throws if either of the following are true: the processing instruction target is in
valid — it should be a
valid xml name that doesn't contain "xml", "xml", or any case combination of the two, other than standardized ones such as <?xml-stylesheet ?>.
... obsolete added more explicit definition of how the data parameter is
validated.
Document.evaluate() - Web APIs
modifying a node will in
validate the iterator.
...modifying the document doesn't in
validate the snapshot; however, if the document is changed, the snapshot may not correspond to the current state of the document, since nodes may have moved, been changed, added, or removed.
Document.querySelectorAll() - Web APIs
this string must be a
valid css selector string; if it's not, a syntaxerror exception is thrown.
... exceptions syntaxerror the syntax of the specified selectors string is not
valid.
Document.requestStorageAccess() - Web APIs
the ephemeral storage access grant is: in
validated at the end of the browser session.
... the persistent storage access permission is: persisted to disk and will remain
valid in future browser sessions.
EXT_float_blend - Web APIs
with this extension enabled, calling drawarrays() or drawelements() with blending enabled and a draw buffer with 32-bit floating-point components will no longer result in an in
valid_operation error.
...l.bindtexture(gl.texture_2d, tex); // use floating point format gl.teximage2d(gl.texture_2d, 0, gl.rgba32f, 1, 1, 0, gl.rgba, gl.float, null); const fb = gl.createframebuffer(); gl.bindframebuffer(gl.framebuffer, fb); gl.framebuffertexture2d(gl.framebuffer, gl.color_attachment0, gl.texture_2d, tex, 0); // enable blending gl.enable(gl.blend); gl.drawarrays(gl.points, 0, 1); // won't throw gl.in
valid_operation with the extension enabled specifications specification status ext_float_blend draft ...
Element.attachShadow() - Web APIs
the following is a list of elements you can attach a shadow root to: any autonomous custom element with a
valid name <article> <aside> <blockquote> <body> <div> <footer> <h1> <h2> <h3> <h4> <h5> <h6> <header> <main> <nav> <p> <section> <span> syntax var shadowroot = element.attachshadow(shadowrootinit); parameters shadowrootinit a shadowrootinit dictionary, which can contain the following fields: mode a string specifying the encapsulation mode for the shadow dom tree.
... exceptions exception explanation in
validstateerror the element you are trying to attach to is already a shadow host.
Element.namespaceURI - Web APIs
the dom does not handle or enforce namespace
validation per se.
... it is up to the dom application to do any
validation necessary.
Element.querySelector() - Web APIs
syntax element = baseelement.queryselector(selectors); parameters selectors a group of selectors to match the descendant elements of the element baseelement against; this must be
valid css syntax, or a syntaxerror exception will occur.
... exceptions syntaxerror the specified selectors are in
valid.
Element.querySelectorAll() - Web APIs
this string must be a
valid css selector string; if it's not, a syntaxerror exception is thrown.
... exceptions syntaxerror the syntax of the specified selectors string is not
valid.
FileEntrySync - Web APIs
in
valid_state_err the file is no longer
valid for some reason other than it having been deleted.
... in
valid_state_err the file is no longer
valid for some reason other than it having been deleted.
FileSystemEntry.remove() - Web APIs
errors fileerror.in
valid_modification_err the specified entry was the file system's root directory, or the specified entry is a directory which isn't empty.
... fileerror.in
valid_state_err the file system's cached state is inconsistent with its state on disk, so the file could not be deleted for safety reasons.
GlobalEventHandlers.onsubmit - Web APIs
example this example demonstrates onin
valid and onsubmit event handlers on a form.
...thanks!</p> javascript const form = document.getelementbyid('form'); const error = document.getelementbyid('error'); const city = document.getelementbyid('city'); const thanks = document.getelementbyid('thanks'); city.onin
valid = in
valid; form.onsubmit = submit; function in
valid(event) { error.removeattribute('hidden'); } function submit(event) { form.setattribute('hidden', ''); thanks.removeattribute('hidden'); // for this example, don't actually submit the form event.preventdefault(); } result specifications specification status comment html living standardthe definition of 'o...
HTMLAnchorElement - Web APIs
if the name is not a
valid filename of the underlying os, browser will adapt it.
... htmlhyperlinkelementutils.href is a usvstring that is the result of parsing the href html attribute relative to the document, containing a
valid url of a linked resource.
HTMLAreaElement - Web APIs
if the name is not a
valid filename of the underlying os, browser will adapt it.
... htmlhyperlinkelementutils.href is a usvstring containing that reflects the href html attribute, containing a
valid url of a linked resource.
HTMLCanvasElement - Web APIs
when the attribute is not specified, or if it is set to an in
valid value, like a negative, the default value of 150 is used.
...when the attribute is not specified, or if it is set to an in
valid value, like a negative, the default value of 300 is used.
HTMLElement - Web APIs
in
valid fired when an element does not satisfy its constraints during constraint
validation.
... also available via the onin
valid property.
HTMLFormElement: submit event - Web APIs
note: trying to submit a form that does not pass
validation triggers an in
valid event.
... in this case, the
validation prevents form submission, and thus there is no submit event.
HTMLImageElement.srcset - Web APIs
each image candidate string must begin with a
valid url referencing a non-interactive graphic resource.
...all of the following are
valid image candidate strings: "images/team-photo.jpg 1x, images/team-photo-retina.jpg 2x, images/team-photo-full 2048w" this string provides versions of an image to be used at the standard pixel density (1x) as well as double that pixel density (2x).
HTMLImageElement.x - Web APIs
the x and y properties are only
valid for an image if its display property has the computed value table-column or table-column-group.
... note: the x property is only
valid if the computed value of the image's display property is either table-column or table-column-group; in other words, either of those are set directly on the <img> or they're inherited from a containing element or by being located within a column described by either <col> or <colgroup>.
HTMLImageElement.y - Web APIs
the x and y properties are only
valid for an image if its display property has the computed value table-column or table-column-group.
... note: the y property is only
valid if the computed value of the image's display property is either table-column or table-column-group; in other words, either of those are set directly on the <img> or they're inherited from a containing element or by being located within a column described by either <col> or <colgroup>.
HTMLTimeElement.dateTime - Web APIs
the format of the string must follow one of the following html microsyntaxes: microsyntax description examples
valid month string yyyy-mm 2011-11, 2013-05
valid date string yyyy-mm-dd 1887-12-01
valid yearless date string mm-dd 11-12
valid time string hh:mm hh:mm:ss hh:mm:ss.mmm 23:59 12:15:47 12:15:52.998
valid local date and time string yyyy-mm-dd hh:mm yyyy-mm-dd hh:mm:ss yyyy-mm-dd hh:mm:ss.mmm yyyy-mm-ddthh:mm yyyy-mm-ddthh:mm:ss yyyy-mm-ddthh:mm:ss.mmm 2013-12-25 11:12 1972-07-25 13:43:07...
... 1941-03-15 07:06:23.678 2013-12-25t11:12 1972-07-25t13:43:07 1941-03-15t07:06:23.678
valid time-zone offset string z +hhmm +hh:mm -hhmm -hh:mm z +0200 +04:30 -0300 -08:00
valid global date and time string any combination of a
valid local date and time string followed by a
valid time-zone offset string 2013-12-25 11:12+0200 1972-07-25 13:43:07+04:30 1941-03-15 07:06:23.678z 2013-12-25t11:12-08:00
valid week string yyyy-www 2013-w46 four or more ascii digits yyyy 2013, 0001
valid duration string pddthhmmss pddthhmms.xs pddthhmms.xxs pddthhmms.xxxs pthhmmss pthhmms.xs pthhmms.xxs pthhmms.xxxs ww dd hh mm ss p12dt7h12m13s p12dt7h...
The HTML DOM API - Web APIs
formdataevent htmlformcontrolscollection htmloptionscollection radionodelist
validitystate canvas and image interfaces these interfaces represent objects used by the canvas api as well as the <img> element and <picture> elements.
... javascript const namefield = document.getelementbyid("username"); const sendbutton = document.getelementbyid("sendbutton") sendbutton.disabled = true; // [note: this is disabled since it causes this article to always load with this example focused and scrolled into view] //namefield.focus(); namefield.addeventlistener("input", event => { const elem = event.target; const
valid = elem.value.length != 0; if (
valid && sendbutton.disabled) { sendbutton.disabled = false; } else if (!
valid && !sendbutton.disabled) { sendbutton.disabled = true; } }); this code uses the document interface's getelementbyid() method to get the dom object representing the <input> elements whose ids are username and sendbutton.
IDBCursor.continue() - Web APIs
dataerror the key parameter may have any of the following conditions: the key is not a
valid key.
... in
validstateerror the cursor is currently being iterated or has iterated past its end.
IDBDatabase.deleteObjectStore() - Web APIs
exceptions this method may raise a domexception of one of the following types: exception description in
validstateerror occurs if the method was not called from a versionchange transaction callback.
...has been deleted or removed.) in firefox previous to version 41, an in
validstateerror was raised in this case as well, which was misleading; this has now been fixed (see bug 1176165.) notfounderror you are trying to delete an object store that does not exist.
IDBFactorySync - Web APIs
exceptions this method can raise an idbdatabaseexception with the following codes: non_transient_err if the name parameter is not
valid.
... a
valid name is any string including the empty string.
IDBIndex.count() - Web APIs
dataerror the key or key range provided contains an in
valid key.
... in
validstateerror the idbindex has been deleted or removed.
IDBIndex.get() - Web APIs
dataerror the key or key range provided contains an in
valid key.
... in
validstateerror the idbindex has been deleted or removed.
IDBIndex.getKey() - Web APIs
dataerror the key or key range provided contains an in
valid key.
... in
validstateerror the idbindex has been deleted or removed.
IDBObjectStore.count() - Web APIs
exceptions this method may raise a domexception of one of the following types: exception description in
validstateerror this idbobjectstore has been deleted.
... dataerror the specified key or key range is in
valid.
IDBObjectStore.deleteIndex() - Web APIs
return value undefined exceptions this method may raise a domexception of one of the following types: exception description in
validstateerror occurs if the method was not called from a versionchange transaction mode callback.
...has been deleted or removed.) in firefox previous to version 41, an in
validstateerror was raised in this case as well, which was misleading; this has now been fixed (see bug 1176165.) notfounderror occurs if there is no index with the given name (case-sensitive) in the database.
IDBObjectStore.get() - Web APIs
dataerror the key or key range provided contains an in
valid key.
... in
validstateerror the idbobjectstore has been deleted or removed.
IDBObjectStore.getAll() - Web APIs
dataerror the key or key range provided contains an in
valid key or is null.
... in
validstateerror the idbobjectstore has been deleted or removed.
IDBRequest - Web APIs
when the state is still pending, any attempt to access the result or error raises an in
validstateerror exception.
...if the the request failed and the result is not available, an in
validstateerror exception is thrown.
IDBTransaction.commit() - Web APIs
if it is called on a transaction that is not active, it throws an in
validstateerror domexception.
... exceptions exception description in
validstateerror the transaction state is not active.
Basic concepts - Web APIs
a
valid key path can include one of the following: an empty string, a javascript identifier, or multiple javascript identifiers separated by periods or an array containing any of those.
... when an object or array is stored, the properties and values in that object or array can also be anything that is a
valid value.
Checking when a deadline is due - Web APIs
this step is mainly for browsers that don't support html form
validation (i have used the required attribute in my html to force
validation, in those that do.) else { var newitem = [ { tasktitle: title.value, hours : hours.value, minutes : minutes.value, day : day.value, month : month.value, year : year.value, notified : "no" } ]; // open a read/write db transacti...
...we then loop through all the items in the cursor for as long as there is a
valid item left in the cursor.
MediaCapabilities - Web APIs
methods mediacapabilities.encodinginfo() when passed a
valid media configuration, it returns a promise with information as to whether the media type is supported, and whether encoding such media would be smooth and power efficient.
... mediacapabilities.decodinginfo() when passed a
valid media configuration, it returns a promise with information as to whether the media type is supported, and whether decoding such media would be smooth and power efficient.
MediaError.message - Web APIs
example this example creates a <audio> element, establishes an error handler for it, then lets the user click buttons to choose whether to assign a
valid audio file or a missing file to the element's src attribute.
... the example creates an <audio> element and lets the user assign either a
valid music file to it, or a link to a file which doesn't exist.
MediaRecorder.pause() - Web APIs
when a mediarecorder object’s pause()method is called, the browser queues a task that runs the below steps: if mediarecorder.state is "inactive", raise a dom in
validstate error and terminate these steps.
... exceptions in
validstateerror the mediarecorder is currently "inactive"; you can't pause recording if it's not active.
MediaRecorder.requestData() - Web APIs
when the requestdata() method is invoked, the browser queues a task that runs the following steps: if mediarecorder.state is not "recording", raise a dom in
validstate error and terminate these steps.
... syntax mediarecorder.requestdata() errors an in
validstate error is raised if the requestdata() method is called while the mediarecorder object’s mediarecorder.state is not "recording" — the media cannot be captured if recording is not occurring.
MediaRecorder.resume() - Web APIs
when the resume() method is invoked, the browser queues a task that runs the following steps: if mediarecorder.state is "inactive", raise a dom in
validstate error and terminate these steps.
... syntax mediarecorder.resume() errors an in
validstate error is raised if the resume() method is called while the mediarecorder object’s mediarecorder.state is "inactive" — the recording cannot be resumed if it is not already paused; if mediarecorder.state is already "recording", resume() has no effect.
MediaRecorder.start() - Web APIs
in
validmodificationerror the number of tracks on the stream being recorded has changed.
... in
validstateerror the mediarecorder is not in the inactive state; you can't start recording media if it's already being recorded.
MediaRecorder.stop() - Web APIs
when the stop() method is invoked, the ua queues a task that runs the following steps: if mediarecorder.state is "inactive", raise a dom in
validstate error and terminate these steps.
... syntax mediarecorder.stop() errors an in
validstate error is raised if the stop() method is called while the mediarecorder object’s mediarecorder.state is "inactive" — it makes no sense to stop media capture if it is already stopped.
MediaRecorderErrorEvent.error - Web APIs
in
validstateerror an operation was attempted in a context in which it isn't allowed, or a request has been made on an object that's deleted or removed.
... notsupportederror a mediarecorder couldn't be created because the specified options weren't
valid.
MediaSource.addSourceBuffer() - Web APIs
exceptions in
validaccesserror the value specified for mimetype is an empty string rather than a
valid mime type.
... in
validstateerror the mediasource is not in the "open" readystate.
MediaSource.duration - Web APIs
exception explanation in
validaccesserror an attempt was made to set a duration value that was negative, or nan.
... in
validstateerror mediasource.readystate is not equal to open, or one or more of the sourcebuffer objects in mediasource.sourcebuffers are being updated (i.e.
Media Capabilities API - Web APIs
mediadecodingconfiguration defines the
valid values for allowed types of media when the media configuration is submitted as the parameter for mediacapabilities.decodinginfo().
... mediaencodingconfiguration defines the
valid values for allowed types of media when the media configuration is submitted as the parameter for mediacapabilities.encodinginfo().
Node.insertBefore() - Web APIs
failing to provide it or passing in
valid values may behave differently in different browser versions.
...: childelement is of type undefined let sp2 = undefined // non-existent node of id "childelement" parentdiv.insertbefore(newnode, sp2) // implicit dynamic cast to type node // end test case [ 2 ] // begin test case [ 3 ] : childelement is of type "undefined" ( string ) let sp2 = "undefined" // non-existent node of id "childelement" parentdiv.insertbefore(newnode, sp2) // generates "type error: in
valid argument" // end test case [ 3 ] </script> example 2 <div id="parentelement"> <span id="childelement">foo bar</span> </div> <script> // create a new, plain <span> element let sp1 = document.createelement("span") // get the reference element let sp2 = document.getelementbyid("childelement") // get the parent element let parentdiv = sp2.parentnode // insert the new element into before sp2 p...
Node.namespaceURI - Web APIs
the dom does not handle or enforce namespace
validation per se.
... it is up to the dom application to do any
validation necessary.
OfflineAudioContext.resume() - Web APIs
if the context is not currently suspended or the rendering has not started, the promise is rejected with in
validstateerror.
... in
validstateerror if the context is not currently suspended or the rendering has not started.
ParentNode.querySelector() - Web APIs
this string must be a
valid compound selector list supported by the browser; if it's not, a syntaxerror exception is thrown.
... exceptions syntaxerror the syntax of the specified selectors string is not
valid.
ParentNode.querySelectorAll() - Web APIs
this string must be a
valid css selector string; if it's not, a syntaxerror exception is thrown.
... exceptions syntaxerror the syntax of the specified selectors string is not
valid.
PaymentCurrencyAmount - Web APIs
currency a string containing a
valid 3-letter iso 4217 currency identifier (iso 4217) indicating the currency used for the payment value.
... value a string containing a
valid decimal value representing the mount of currency constituting the payment amount.
PaymentDetailsUpdate.shippingAddressErrors - Web APIs
for each property in paymentaddress, a property by the same name is found in shippingaddresserrors if and only if a
validation error occurred for that property.
... in that case, the property in shippingaddresserrors is a string describing the
validation error, ideally including suggestions about fixing the error.
PaymentRequest.PaymentRequest() - Web APIs
the paymentrequest() constructor creates a new paymentrequest object which will be used to handle the process of generating,
validating, and submitting a payment request.
...
valid values are "shipping", "delivery", and "pickup".
PaymentRequest - Web APIs
events merchant
validation secure context with some payment handlers (e.g., apple pay), this event handler is called to handle the merchant
validation event, which is dispatched when the user agent requires that the merchant
validate that the merchant or vendor requesting payment is legitimate.
... also available using the onmerchant
validation event handler property.
RTCDTMFSender.insertDTMF() - Web APIs
return value undefined exceptions in
validstateerror the dtmf tones couldn't be sent because the track has been stopped, or is in a read-only or inactive state.
... in
validcharactererror one or more of the characters in tones is not
valid dtmf.
RTCIceCandidate.RTCIceCandidate() - Web APIs
if any of the fields is in
valid, parsing of the string silently aborts without throwing an exception.
... usage notes this constructor does not do complete
validation of the specified candidateinfo object or string.
RTCIceCandidatePairStats.readable - Web APIs
the obsolete rtcicecandidatepairstats property readable reports whether or not the connection described by the candidate pair has received at least one
valid incoming ice request.
... syntax isreadable = rtcicecandidatepairstats.readable; value a boolean value which is true if the connection described by this candidate pair has received at least one
valid ice request, and is therefore ready to be read from.
RTCIceTransportState - Web APIs
"failed" the rtcicetransport has finished the gathering process, has received the "no more candidates" notification from the remote peer, and has finished checking pairs of candidates, without successfully finding a pair that is both
valid and for which consent can be obtained.
... the "disconnected" state can also occur when the transport has finished checking all existing candidate pairs and has not found a pair that will work—or a
valid pair was found but rejected due to consent to use the pair being denied.
RTCPeerConnection.addIceCandidate() - Web APIs
in
validstateerror the rtcpeerconnection currently has no remote peer established (remotedescription is null).
... one or more of the values in the candidate string are in
valid or could not be parsed.
RTCPeerConnection.addTrack() - Web APIs
exceptions in
validaccesserror the specified track (or all of its underlying streams) is already part of the rtcpeerconnection.
... in
validstateerror the rtcpeerconnection is closed.
RTCPeerConnection.onpeeridentity - Web APIs
such an event is sent when an identity assertion, received from a peer, has been successfully
validated.
...to detect successful
validation of the identity, wait for the promise returned by peeridentity to resolve successfully with the peer's identity.
RTCPeerConnection.setLocalDescription() - Web APIs
deprecated exceptions when using the deprecated callback-based version of setlocaldescription(), the following exceptions may occur: in
validstateerror the connection's signalingstate is "closed", indicating that the connection is not currently open, so negotiation cannot take place.
... in
validsessiondescriptionerror the rtcsessiondescription specified by the sessiondescription parameter is in
valid.
RTCRtpSender.replaceTrack() - Web APIs
exceptions if the returned promise is rejected, one of the following exceptions is provided to the rejection handler: in
validmodificationerror replacing the rtcrtpsender's current track with the new one would require negotiation.
... in
validstateerror the track on which this method was called is stopped rather than running.
RTCRtpSender.setParameters() - Web APIs
in
validmodificationerror one of the following problems was detected: the number of encodings specified in the parameters object's encodings property does not match the number of encodings currently listed for the rtcrtpsender.
... in
validstateerror the transceiver of which the rtcrtpsender is a part is not running, or has no parameters to set.
RTCRtpTransceiver.direction - Web APIs
exceptions when setting the value of direction, the following exceptions can occur: in
validstateerror either the receiver's rtcpeerconnection is closed or the rtcrtpreceiver is stopped.
... usage notes setting the direction when you change the value of direction, an in
validstateerror exception will occur if the connection is closed or the receiver is stopped.
RTCRtpTransceiver.setCodecPreferences() - Web APIs
return value undefined exceptions in
validaccesserror the codecs list includes one or more codecs which are not supported by the transceiver.
...if any unsupported codecs are listed, the browser will throw an in
validaccesserror exception when you call this method.
Range.cloneContents() - Web APIs
html id attributes are also cloned, which can lead to an in
valid document through cloning.
... partially selected nodes include the parent tags necessary to make the document fragment
valid.
Range.extractContents() - Web APIs
html id attributes are also cloned, which can lead to an in
valid document if a partially-selected node is extracted and appended to the document.
... partially selected nodes are cloned to include the parent tags necessary to make the document fragment
valid.
Request.cache - Web APIs
fetch("some.json", {cache: "reload"}) .then(function(response) { /* consume the response */ }); // download a resource with cache busting when dealing with a // properly configured server that will send the correct etag // and date headers and properly handle if-modified-since and // if-none-match request headers, therefore we can rely on the //
validation to guarantee a fresh response.
...fetch("some.json", {cache: "force-cache"}) .then(function(response) { /* consume the response */ }); // naive stale-while-re
validate client-level implementation.
SVGAngle - Web APIs
exceptions on setting: a domexception with code syntax_err is raised if the assigned string cannot be parsed as a
valid <angle>.
... exceptions: a domexception with code not_supported_err is raised if unittype is svg_angletype_unknown or not a
valid unit type constant (one of the other svg_angletype_* constants defined on this interface).
SVGFETurbulenceElement - Web APIs
it is in
valid to attempt to define a new value of this type or to attempt to switch an existing value to this type.
...it is in
valid to attempt to define a new value of this type or to attempt to switch an existing value to this type.
SVGMarkerElement - Web APIs
it is in
valid to attempt to define a new value of this type or to attempt to switch an existing value to this type.
...it is in
valid to attempt to define a new value of this type or to attempt to switch an existing value to this type.
SVGPreserveAspectRatio - Web APIs
it is in
valid to attempt to define a new value of this type or to attempt to switch an existing value to this type.
...it is in
valid to attempt to define a new value of this type or to attempt to switch an existing value to this type.
SVGTextPathElement - Web APIs
it is in
valid to attempt to define a new value of this type or to attempt to switch an existing value to this type.
...it is in
valid to attempt to define a new value of this type or to attempt to switch an existing value to this type.
SVGUseElement - Web APIs
if the element does not have a shadow tree (for example, because its uri is in
valid or because it has been disabled by conditional processing), then getting this attribute returns null.
...if the element does not have a shadow tree (for example, because its uri is in
valid or because it has been disabled by conditional processing), then getting this attribute returns null.
SourceBuffer.appendWindowEnd - Web APIs
exception explanation in
validaccesserror an attempt was made to set the value to less than or equal to sourcebuffer.appendwindowstart, or nan.
... in
validstateerror this sourcebuffer object is being updated (i.e.
SourceBuffer.appendWindowStart - Web APIs
exception explanation in
validaccesserror an attempt was made to set the value to less than 0, or a value greater than or equal to sourcebuffer.appendwindowend.
... in
validstateerror this sourcebuffer object is being updated (i.e.
SourceBuffer.changeType() - Web APIs
exceptions typeerror the specified string is empty, rather than indicating a
valid mime type.
... in
validstateerror the sourcebuffer is not a member of the parent media source's sourcebuffers list, or the buffer's updating property indicates that a previously queued appendbuffer() or remove() is still being processed.
SourceBuffer.mode - Web APIs
exception explanation in
validaccesserror an attempt was made to set the value to segments when the initial value is sequence.
... in
validstateerror the sourcebuffer object is being updated (i.e.
SourceBuffer.remove() - Web APIs
exceptions exception explanation in
validaccesserror the mediasource.duration property is equal to nan, the start parameter is negative or greater than mediasource.duration, or the end parameter is less than or equal to start or equal to nan.
... in
validstateerror the sourcebuffer.updating property is equal to true, or this sourcebuffer has been removed from the mediasource.
SpeechRecognitionEvent.emma - Web APIs
syntax var myemma = event.emma; value a
valid xml document.
... the exact contents can vary across user agents and recognition engines, but all supporting implementations will expose a
valid xml document complete with an emma namespace.
SubtleCrypto.exportKey() - Web APIs
exceptions the promise is rejected when one of the following exceptions is encountered: in
validaccesserror raised when trying to export a non-extractable key.
... typeerror raised when trying to use an in
valid format.
SubtleCrypto.unwrapKey() - Web APIs
exceptions the promise is rejected when one of the following exceptions is encountered: in
validaccesserror raised when the unwrapping key is not a key for the requested unwrap algorithm or if the cryptokey.usages value of that key doesn't contain unwrap.
... typeerror raised when trying to use an in
valid format.
SubtleCrypto.wrapKey() - Web APIs
exceptions the promise is rejected when one of the following exceptions is encountered: in
validaccesserror raised when the wrapping key is not a key for the requested wrap algorithm.
... typeerror raised when trying to use an in
valid format.
TextRange - Web APIs
example the following example is
valid under ie9.
... var range = document.selection.createrange(); var element = document.getelementbyid("test"); range.movetoelementtext(element); range.select(); // selected "sometexttobeselected" <!doctype html> <html> <head> <title>textrange example</title> </head> <body> <p id="test">sometexttobeselected</p> </body> </html> notes use textrange to operate the selection
valid only under ie9.
VideoConfiguration - Web APIs
properties the videoconfiguration dictionary is made up of five video properties, including: contenttype: a
valid video mime type.
... examples // create media configuration to be tested const mediaconfig = { type : 'file', // see mediadecodingconfiguration and mediaencodingconfiguration video : { contenttype : "video/webm;codecs=vp8", //
valid content type width : 800, // width of the video height : 600, // height of the video bitrate : 10000, // number of bits used to encode 1s of video framerate : 30 // number of frames making up that 1s.
WebGL2RenderingContext.getBufferSubData() - Web APIs
exceptions an in
valid_value error is generated if: offset + returneddata.bytelength would extend beyond the end of the buffer returneddata is null offset is less than zero.
... an in
valid_operation error is generated if: zero is bound to target target is transform_feedback_buffer, and any transform feedback object is currently active.
WebGL2RenderingContext.isQuery() - Web APIs
the webgl2renderingcontext.isquery() method of the webgl 2 api returns true if the passed object is a
valid webglquery object.
... return value a glboolean indicating whether the given object is a
valid webglquery object (true) or not (false).
WebGL2RenderingContext.isSampler() - Web APIs
the webgl2renderingcontext.issampler() method of the webgl 2 api returns true if the passed object is a
valid webglsampler object.
... return value a glboolean indicating whether the given object is a
valid webglsampler object (true) or not (false).
WebGL2RenderingContext.isSync() - Web APIs
the webgl2renderingcontext.issync() method of the webgl 2 api returns true if the passed object is a
valid webglsync object.
... return value a glboolean indicating whether the given object is a
valid webglsync object (true) or not (false).
WebGL2RenderingContext.isTransformFeedback() - Web APIs
the webgl2renderingcontext.istransformfeedback() method of the webgl 2 api returns true if the passed object is a
valid webgltransformfeedback object.
... return value a glboolean indicating whether the given object is a
valid webgltransformfeedback object (true) or not (false).
WebGL2RenderingContext.isVertexArray() - Web APIs
the webgl2renderingcontext.isvertexarray() method of the webgl api returns true if the passed object is a
valid webglvertexarrayobject object.
... return value a glboolean indicating whether the given object is a
valid webglvertexarrayobject object (true) or not (false).
WebGLRenderingContext.bindBuffer() - Web APIs
an attempt to bind the buffer to another target will throw an in
valid_operation error and the current buffer binding will remain the same.
...an attempt to do so will generate an in
valid_operation error, and the current binding will remain untouched.
WebGLRenderingContext.blendFunc() - Web APIs
exceptions if sfactor or dfactor is not one of the listed possible values, a gl.in
valid_enum error is thrown.
... if a constant color and a constant alpha value are used together as source and destination factors, a gl.in
valid_enum error is thrown.
WebGLRenderingContext.blendFuncSeparate() - Web APIs
exceptions if srcrgb, dstrgb, srcalpha, or dstalpha is not one of the listed possible values, a gl.in
valid_enum error is thrown.
... if a constant color and a constant alpha value are used together as source (srcrgb) and destination (dstrgb) factors, a gl.in
valid_enum error is thrown.
WebGLRenderingContext.bufferSubData() - Web APIs
exceptions a gl.in
valid_value error is thrown if the data would be written past the end of the buffer or if data is null.
... a gl.in
valid_enum error is thrown if target is not one of the allowed enums.
WebGLRenderingContext.getActiveUniform() - Web APIs
exceptions gl.in
valid_value is generated if the program webglprogram is in
valid (not linked, deleted, etc.).
... gl.in
valid_value is generated if index is not in the range [0, gl.getprogramparameter(program, gl.active_uniforms) - 1].
WebGLRenderingContext.getProgramInfoLog() - Web APIs
it contains errors that occurred during failed linking or
validation of webglprogram objects.
... return value a domstring that contains diagnostic messages, warning messages, and other information about the last linking or
validation operation.
WebGLRenderingContext.isBuffer() - Web APIs
the webglrenderingcontext.isbuffer() method of the webgl api returns true if the passed webglbuffer is
valid and false otherwise.
... return value a glboolean indicating whether or not the buffer is
valid.
WebGLRenderingContext.isFramebuffer() - Web APIs
the webglrenderingcontext.isframebuffer() method of the webgl api returns true if the passed webglframebuffer is
valid and false otherwise.
... return value a glboolean indicating whether or not the frame buffer is
valid.
WebGLRenderingContext.isProgram() - Web APIs
the webglrenderingcontext.isprogram() method of the webgl api returns true if the passed webglprogram is
valid, false otherwise.
... return value a glboolean indicating whether or not the program is
valid.
WebGLRenderingContext.isRenderbuffer() - Web APIs
the webglrenderingcontext.isrenderbuffer() method of the webgl api returns true if the passed webglrenderbuffer is
valid and false otherwise.
... return value a glboolean indicating whether or not the renderbuffer is
valid.
WebGLRenderingContext.isShader() - Web APIs
the webglrenderingcontext.isshader() method of the webgl api returns true if the passed webglshader is
valid, false otherwise.
... return value a glboolean indicating whether or not the shader is
valid.
WebGLRenderingContext.isTexture() - Web APIs
the webglrenderingcontext.istexture() method of the webgl api returns true if the passed webgltexture is
valid and false otherwise.
... return value a glboolean indicating whether or not the texture is
valid.
WebGLRenderingContext.makeXRCompatible() - Web APIs
in
validstateerror the webgl context has been lost or there is no available webxr device.
...*/ outputcanvas.addeventlistener("webglcontextrestored", (event) => { loadsceneresources(currentscene); }); async function onstartedxrsession(xrsession) { try { await gl.makexrcompatible(); } catch(err) { switch(err) { case aborterror: showsimplemessagebox("unable to transfer the game to your xr headset.", "cancel"); break; case in
validstateerror: showsimplemessagebox("you don't appear to have a compatible xr headset available.", "cancel"); break; default: handlefatalerror(err); break; } xrsession.end(); } } async function handlestartbuttonclick(event) { if (event.target.classlist.contains("use-webxr") && navigator.xr) { try { xrsession = await navigator.xr.requestsess...
Taking still photos with WebRTC - Web APIs
then, if the width and height are both non-zero (meaning that there's at least potentially
valid image data), we set the width and height of the canvas to match that of the captured frame, then call drawimage() to draw the current frame of the video into the context, filling the entire canvas with the frame image.
... if there isn't a
valid image available (that is, the width and height are both 0), we clear the contents of the captured frame box by calling clearphoto().
WebRTC API - Web APIs
rtcidentityprovider enables a user agent is able to request that an identity assertion be generated or
validated.
...two events are sent with this type: idpassertionerror and idp
validationerror.
Window.open() - Web APIs
note on the use of window.open() to reopen an existing window with name windowname : this functionality is not
valid for all browsers and more with variable conditions.
... protocol scheme "javascript:" will be reported as an error by link
validators and link checkers.
WindowOrWorkerGlobalScope.setTimeout() - Web APIs
|*| |*| https://developer.mozilla.org/docs/dom/window.setinterval |*| |*| syntax: |*| var timeoutid = window.settimeout(func, delay[, arg1, arg2, ...]); |*| var timeoutid = window.settimeout(code, delay); |*| var inter
valid = window.setinterval(func, delay[, arg1, arg2, ...]); |*| var inter
valid = window.setinterval(code, delay); |*| \*/ (function() { settimeout(function(arg1) { if (arg1 === 'test') { // feature test is passed, no need for polyfill return; } var __nativest__ = window.settimeout; window.settimeout = function(vcallback, ndelay /*, argumenttopass1, argumenttopass2, etc.
...example: var inter
valid = settimeout(function() { myfunc('one', 'two', 'three'); }, 1000); the above example can also be written with the help of an arrow function: var inter
valid = settimeout(() => { myfunc('one', 'two', 'three'); }, 1000); yet another possibility is to use function's bind.
Using XMLHttpRequest - Web APIs
get last modified date function getheadertime () { console.log(this.getresponseheader("last-modified")); /* a
valid gmtstring date or null */ } var oreq = new xmlhttprequest(); oreq.open("head" /* use head if you only need the headers!
...otherwise, an in
valid_access_err exception is thrown.
XMLHttpRequest.responseText - Web APIs
exceptions in
validstateerror the xmlhttprequest.responsetype is not set to either the empty string or "text".
... since the responsetext property is only
valid for text content, any other value is an error condition.
XPathResult - Web APIs
xpathresult.in
validiteratorstateread only signifies that the iterator has become in
valid.
...unlike the iterator result, the snapshot does not become in
valid, but may not correspond to the current document if it is mutated.
XRWebGLLayer.framebuffer - Web APIs
calling functions such as framebuffertexture2d(), framebufferrenderbuffer(), deleteframebuffer(), or getframebufferattachmentparameter() on an opaque framebuffer results in the webgl error in
valid_operation (0x0502).
...attempting to clear, draw to, or read from the framebuffer results in a webgl in
valid_framebuffer_operation error (0x0506).
ARIA Test Cases - Accessibility
widget test cases alert simple alert complex alert real alert example with aria-required and aria-in
valid -- type in a email address without an at sign to test the alert expected at behavior: a screen reader or screen magnifier must speak an alert when it becomes visible.
... (leopard) n/a n/a - fail window-eyes - - - - nvda - n/a - - zoom (leopard) pass n/a pass pass zoomtext - - - - orca - - - - checkbox simple checkbox testcases: set aria-checked="false" for unchecked both remove or set attribute for unchecked case -- also includes an in
valid and required checkbox hierarchical (newly added test not in test results yet) dojo nightly build expected at behavior: screen reader should speak the accessible name followed by both the type being checkbox and the state (checked, unchecked).
Forms - Accessibility
the following pages provide various techniques for improving the accessibility of web forms: basic form hints: adding hints and descriptions for in
valid or required fields alerts: using alerts to provide client-side
validation error messages multi-part labels: enabling complex form labels with a control inside each label see also the yahoo!
... article on form
validation and aria (retrieved on archive.org), covering much of the same content.
Cognitive accessibility - Accessibility
provide text to identify incomplete required fields and text descriptions if a value entered is in
valid.
...additionally, consider performing server-side
validation to help format input data, to aid in the ease of user input.
Robust - Accessibility
to pass this criterion, make sure that your html is as
valid as possible.
... use the w3c
validator to
validate your markup.
:not() - CSS: Cascading Style Sheets
'='<attr-modifier> = i | s description there are several unusual effects and outcomes when using :not() that you should keep in mind when using it: the :not pseudo-class may not be nested, which means that :not(:not(...)) is in
valid.
... since pseudo-elements are not simple selectors, they are not
valid arguments to :not(); thus, selectors like :not(p::before) will not work.
@charset - CSS: Cascading Style Sheets
formal syntax @charset "<charset>"; examples
valid and in
valid charset declarations @charset "utf-8"; /* set the encoding of the style sheet to unicode utf-8 */ @charset 'iso-8859-15'; /* in
valid, wrong quoting style used */ @charset "utf-8"; /* in
valid, more than one space */ @charset "utf-8"; /* in
valid, there is a character (a space) before the at-rule */ @charset utf-8; /* in
valid, without ' or ", the charset is not...
...viewchrome for androidfirefox for androidopera for androidsafari on iossamsung internet@charsetchrome full support 2edge full support 12firefox full support 1.5notes full support 1.5notes notes firefox 1 supported an in
valid syntax where the character encoding is not between single or double quotes.ie full support 5.5notes full support 5.5notes notes from internet explorer 5.5 to ie 7 (inclusive), internet explorer supported an in
valid syntax where the character encoding is not between single or double quotes.opera ...
src - CSS: Cascading Style Sheets
it is required for the @font-face rule to be
valid.
...fonts containing in
valid data or local font faces that are not found are ignored and the user agent loads the next font in the list.
Grid template areas - CSS: Cascading Style Sheets
"hd hd hd hd hd hd hd hd hd" "sd sd sd main main main main main main" "sd sd sd ft ft ft ft ft ft"; } <div class="wrapper"> <div class="header">header</div> <div class="sidebar">sidebar</div> <div class="content">content</div> <div class="footer">footer</div> </div> the value of grid-template-areas must show a complete grid, otherwise it is in
valid (and the property is ignored).
...you will also create an in
valid grid if your areas are not rectangular.
Using CSS gradients - CSS: Cascading Style Sheets
the following are
valid for all gradient functions: using more than two colors you don't have to limit yourself to two colors—you may use as many as you like!
... the conic-gradient syntax is similar to the radial-gradient syntax, but the color-stops are placed around a gradient arc, the circumference of a circle, rather than on the gradient line emerging from the center of the gradient, and the color-stops are percentages or degrees: absolute lengths are not
valid.
CSS values and units - CSS: Cascading Style Sheets
when both quoted and unquoted user defined text values are permitted, the specification will list <custom-ident> | <string>, meaning quotes are optional, such as is the case with animation names: @keyframe
validident { /* keyframes go here */ } @keyframe '
validstring' { /* keyframes go here */ } some text values are not
valid if encompassed in quotes.
...1 cm is not
valid.
Mozilla CSS extensions - CSS: Cascading Style Sheets
sequence ::-moz-pagebreak ::-moz-pagecontent :-moz-placeholderobsolete since gecko 51 ::-moz-placeholderdeprecated since gecko 51 ::-moz-progress-bar ::-moz-range-progress ::-moz-range-thumb ::-moz-range-track :-moz-read-only :-moz-read-write s ::-moz-scrolled-canvas ::-moz-scrolled-content ::-moz-scrolled-page-sequence ::-moz-selectiondeprecated since gecko 62 :-moz-submit-in
valid :-moz-suppressed ::-moz-svg-foreign-content t ::-moz-table ::-moz-table-cell ::-moz-table-column ::-moz-table-column-group ::-moz-table-outer ::-moz-table-row ::-moz-table-row-group :-moz-tree-cell :-moz-tree-cell-text :-moz-tree-cell-text(hover) :-moz-tree-checkbox :-moz-tree-column :-moz-tree-drop-feedback :-moz-tree-image :-moz-tree-indentation :-moz-tree-line :-moz-tr...
...ee-progressmeter :-moz-tree-row :-moz-tree-row(hover) :-moz-tree-separator :-moz-tree-twisty u – x :-moz-ui-in
valid :-moz-ui-
valid :-moz-user-disabled ::-moz-viewport ::-moz-viewport-scroll :-moz-window-inactive ::-moz-xul-anonymous-block at-rules @-moz-document media features -moz-mac-graphite-theme -moz-maemo-classic -moz-device-pixel-ratio -moz-os-version -moz-scrollbar-end-backward -moz-scrollbar-end-forward -moz-scrollbar-start-backward -moz-scrollbar-start-forward -moz-scrollbar-thumb-proportional -moz-touch-enabled -moz-windows-accent-color-in-titlebar -moz-windows-classic -moz-windows-compositor -moz-windows-default-theme -moz-windows-glass -moz-windows-theme other -moz-alt-content (see bug 11011) ...
Selector list - CSS: Cascading Style Sheets
#main, .content, article { font-size: 1.1em; } selector list in
validation a downside to using selector lists is that the following aren't equivalent: h1 { font-family: sans-serif } h2:maybe-unsupported { font-family: sans-serif } h3 { font-family: sans-serif } h1, h2:maybe-unsupported, h3 { font-family: sans-serif } this is because a single unsupported selector in a selector list in
validates the whole rule.
... a way to remedy this us to use the :is() selector, which simply ignores in
valid selectors in its arguments, but at the cost of all selectors having the same specificity, because of how :is() calculates specificity.
Value definition syntax - CSS: Cascading Style Sheets
css value definition syntax, a formal grammar, is used for defining the set of
valid values for a css property or function.
... in addition to this syntax, the set of
valid values can be further restricted by semantic constraints (for example, for a number to be strictly positive).
animation - CSS: Cascading Style Sheets
nction () { togglebutton(button[index], 'pause'); }); node.addeventlistener('animationend', function () { togglebutton(button[index], 'restart'); }); }); button.foreach(function (btn, index) { btn.addeventlistener('click', function () { playpause(index); }); }); }) a description of which properties are animatable is available; it's worth noting that this description is also
valid for css transitions.
...when parsed, keywords that are
valid for properties other than animation-name, and whose values were not found earlier in the shorthand, must be accepted for those properties rather than for animation-name.
border - CSS: Cascading Style Sheets
candidate recommendation removes specific support for transparent, as it is now a
valid <color>; this has no practical impact.
...also accepts transparent as a
valid color.
<custom-ident> - CSS: Cascading Style Sheets
examples
valid identifiers nono79 a mix of alphanumeric characters and numbers ground-level a mix of alphanumeric characters and a dash -test a dash followed by alphanumeric characters _internal an underscore followed by alphanumeric characters \22 toto a unicode character followed by a sequence of alphanumeric characters bili\.bob a correctly escaped period...
... in
valid identifiers 34rem it must not start with a decimal digit.
env() - CSS: Cascading Style Sheets
env(safe-area-inset-right, 50px) env(safe-area-inset-bottom, 50px) env(safe-area-inset-left, 50px); } example values padding: env(safe-area-inset-bottom, 50px); /* zero for all rectangular user agents */ padding: env(safe-area-inset-bottom, 50px); /* 50px because ua properties are case sensitive */ padding: env(x, 50px 20px); /* as if padding: '50px 20px' were set because x is not a
valid environment variable */ padding: env(x, 50px, 20px); /* ignored because '50px, 20px' is not a
valid padding value and x is not a
valid environment variable */ the syntax of the fallback, like that of custom properties, allows commas.
... but, if the property value doesn't support commas, the value is not
valid.
font-family - CSS: Cascading Style Sheets
valid family names font family names must either be given quoted as strings, or unquoted as a sequence of one or more identifiers.
... for example, the following declarations are
valid: font-family: gill sans extrabold, sans-serif; font-family: "goudy bookletter 1911", sans-serif; the following declarations are in
valid: font-family: goudy bookletter 1911, sans-serif; font-family: red/black, sans-serif; font-family: "lucida" grande, sans-serif; font-family: ahem!, sans-serif; font-family: test@foo, sans-serif; font-family: #pound, sans-serif; font-family: hawaii 5-0, sans-serif; formal definition initial valuedepends on user agentapplies toall elements.
ident - CSS: Cascading Style Sheets
examples
valid identifiers nono79 a mix of alphanumeric characters and numbers ground-level a mix of alphanumeric characters and a dash -test a dash followed by alphanumeric characters --toto a custom-property like identifier _internal an underscore followed by alphanumeric characters \22 toto a unicode character followed by a sequence of alphanumeric characters bili\.bob a correct...
...ly escaped period in
valid identifiers 34rem it must not start with a decimal digit.
<image> - CSS: Cascading Style Sheets
mdn understanding wcag, guideline 1.1 explanations understanding success criterion 1.1.1 | w3c understanding wcag 2.0 examples
valid images url(test.jpg) /* a <url>, as long as test.jpg is an actual image */ linear-gradient(blue, red) /* a <gradient> */ element(#realid) /* a part of the webpage, referenced with the element() function, if "realid" is an existing id on the page */ image(ltr 'arrow.png#xywh=0,0,16,16', red) /* a section 16x16 se...
...*/ image-set('test.jpg' 1x, 'test-2x.jpg' 2x) /* a selection of images with varying resolutions */ in
valid images nourl.jpg /* an image file must be defined using the url() function.
<integer> - CSS: Cascading Style Sheets
note: there is no official range of
valid <integer> values.
... examples
valid integers 12 positive integer (without a leading + sign) +123 positive integer (with a leading + sign) -456 negative integer 0 zero +0 zero, with a leading + -0 zero, with a leading - in
valid integers 12.0 this is a <number>, not an <integer>, though it represents an integer.
<number> - CSS: Cascading Style Sheets
examples
valid numbers 12 a raw <integer> is also a <number>.
... 4.01 positive fraction -456.8 negative fraction 0.0 zero +0.0 zero, with a leading + -0.0 zero, with a leading - .60 fractional number without a leading zero 10e3 scientific notation -3.4e-2 complicated scientific notation in
valid numbers 12.
place-content - CSS: Cascading Style Sheets
important: if the second value is not present, the first value is used for both, provided it is a
valid value for both.
... if it is in
valid for one or the other, the whole value will be in
valid.
<resolution> - CSS: Cascading Style Sheets
in other words, 0 is in
valid and does not represent 0dpi, 0dpcm, or 0dppx.
...}
valid resolutions 96dpi 50.82dpcm 3dppx in
valid resolutions 72 dpi spaces are not allowed between the number and the unit.
<time-percentage> - CSS: Cascading Style Sheets
valid percentages 50% +50% optional plus sign -50% negative percentages are not
valid for all properties that accept percentages in
valid percentages 50 % space not allowed between the space and the percentage sign
valid times 12s positive integer -456ms negative integer 4.3ms non-integer 14ms the unit is case-insensitive, although capital letters are ...
...+0s zero with a leading + and a unit -0ms zero with a leading - and a unit in
valid times 0 although unitless zero is allowed for <length>s, it's in
valid for <time>s.
touch-action - CSS: Cascading Style Sheets
this is an alias for "pan-x pan-y pinch-zoom" (which, for compatibility, is itself still
valid).
...multiple directions may be combined except when there is a simpler representation (for example, "pan-left pan-right" is in
valid since "pan-x" is simpler, but "pan-left pan-down" is
valid).
Getting Started - Developer guides
you have two options to access that data: httprequest.responsetext – returns the server response as a string of text httprequest.responsexml – returns the response as an xmldocument object you can traverse with javascript dom functions note that the steps above are
valid only if you used an asynchronous request (the third parameter of open() was unspecified or set to true).
... first off, let's create a
valid xml document that we'll request later on.
Content categories - Developer guides
the script-supporting elements are: <script> <template> transparent content model if an element has a transparent content model, then its contents must be structured such that they would be
valid html 5, even if the transparent element were removed and replaced by the child elements.
... for example, the <del> and <ins> elements are transparent: <p>we hold these truths to be <del><em>sacred & undeniable</em></del> <ins>self-evident</ins>.</p> if those elements were removed, this fragment would still be
valid html (if not correct english).
HTML5 Parser - Developer guides
(it is
valid to use an escape character, e.g., <\/script>, but this strategy does not work for <script and <!--, because \s and \!
... are not
valid javascript escapes; the character code strategy is more general-purpose.) inline svg and mathml support as a completely new parsing feature, html5 introduced support for inline svg and mathml in text/html.
Introduction to HTML5 - Developer guides
until the introduction of html5, only the meaning of
valid mark-up was defined, meaning that as soon as one small error was made in the mark-up (most websites have at least one), the behavior was undefined.
...keep in mind that it's still highly recommended that one writes
valid mark-up, as such code is easier to read and maintain, and it greatly decreases the prominence of incompatibilities that exists in various older browsers.
Using HTML sections and outlines - Developer guides
eateelement("time"); </script> <![endif]--> <noscript> <p><strong>this web page requires javascript to be enabled.</strong></p> <p>javascript is an object-oriented computer programming language commonly used to create interactive effects within web browsers.</p> <p><a href="https://goo.gl/koeeaj">how to enable javascript?</a></p> </noscript> note: this code will also cause the html
validator to return errors.
... this isn't a really bad thing neccessarily — sites will often have a few
validation errors — but it's something to be aware of still.
HTML attribute: crossorigin - HTML: Hypertext Markup Language
the crossorigin attribute,
valid on the <audio>, <img>, <link>, <script>, and <video> elements, provides support for cors, defining how the element handles crossorigin requests, thereby enabling the configuration of the cors requests for the element's fetched data.
... an in
valid keyword and an empty string will be handled as the anonymous keyword.
disabled - HTML: Hypertext Markup Language
if the disabled attribute is specified on a form control, the element and its form control descendants do not participate in constraint
validation.
... constraint
validation if the element is disabled, then the element's value can not receive focus and cannot be updated by the user, and does not participate in constraint
validation.
HTML attribute: readonly - HTML: Hypertext Markup Language
if the readonly attribute is specified on an input element, because the user can not edit the input, the element does not participate in constraint
validation.
... constraint
validation if the element is readonly, then the element's value can not be updated by the user, and does not participate in constraint
validation.
HTML attribute: size - HTML: Hypertext Markup Language
if no size is specified, or an in
valid value is specified, the input has no size declared, and the form control will be the default width based on the user agent.
... the size attribute has no impact on constraint
validation.
<html>: The HTML Document / Root element - HTML: Hypertext Markup Language
example <!doctype html> <html lang="en"> <head>...</head> <body>...</body> </html> accessibility concerns providing a lang attribute with a
valid ietf identifying language tag on the <html> element will help screen reading technology determine the proper language to announce.
... including a
valid lang declaration on the <html> element also ensures that important metadata contained in the page's <head>, such as the page's <title>, are also announced properly.
<input type="button"> - HTML: Hypertext Markup Language
note: while <input> elements of type button are still perfectly
valid html, the newer <button> element is now the favored way to create buttons.
...
validation buttons don't participate in constraint
validation; they have no real value to be constrained.
<keygen> - HTML: Hypertext Markup Language
valid values are "rsa", which is the default, "dsa" and "ec".
...(note: choice of the number of key strengths, default values for each strength, and the ui by which the user is offered a choice, are outside of the scope of this specification.) the <keygen> element is only
valid within an html form.
Standard metadata names - HTML: Hypertext Markup Language
the content attribute contains a
valid css <color>.
...by specification, only dark is not
valid, because forcing a document to render in dark mode when it isn't truly compatible with it can result in unreadable content; all major browsers default to light mode if not otherwise configured.
<template>: The Content Template element - HTML: Hypertext Markup Language
while the parser does process the contents of the <template> element while loading the page, it does so only to ensure that those contents are
valid; the element's contents are not rendered, however.
...} the result is the original html table, with two new rows appended to it via javascript: table { background: #000; } table td { background: #fff; } avoiding documentfragment pitfall a documentfragment is not a
valid target for various events, as such it is often preferable to clone or refer to the elements within it.
lang - HTML: Hypertext Markup Language
if the attribute value is the empty string (lang=""), the language is set to unknown; if the language tag is not
valid according to bcp47, it is set to in
valid.
... for the css pseudo-class :lang, two in
valid language names are different if their names are different.
HTTP authentication - HTTP
access forbidden if a (proxy) server receives
valid credentials that are inadequate to access a given resource, the server should respond with the 403 forbidden status code.
... the .htaccess file typically looks like this: authtype basic authname "access to the staging site" authuserfile /path/to/.htpasswd require
valid-user the .htaccess file references a .htpasswd file in which each line consists of a username and a password separated by a colon (:).
CSP: child-src - HTTP
the http content-security-policy (csp) child-src directive defines the
valid sources for web workers and nested browsing contexts loaded using elements such as <frame> and <iframe>.
...the site's address may include an optional leading wildcard (the asterisk character, '*'), and you may use a wildcard (again, '*') as the port number, indicating that all legal ports are
valid for the source.
CSP: font-src - HTTP
the http content-security-policy (csp) font-src directive specifies
valid sources for fonts loaded using @font-face.
...the site's address may include an optional leading wildcard (the asterisk character, '*'), and you may use a wildcard (again, '*') as the port number, indicating that all legal ports are
valid for the source.
CSP: frame-ancestors - HTTP
the http content-security-policy (csp) frame-ancestors directive specifies
valid parents that may embed a page using <frame>, <iframe>, <object>, <embed>, or <applet>.
...the site's address may include an optional leading wildcard (the asterisk character, '*'), and you may use a wildcard (again, '*') as the port number, indicating that all legal ports are
valid for the source.
CSP: frame-src - HTTP
the http content-security-policy (csp) frame-src directive specifies
valid sources for nested browsing contexts loading using elements such as <frame> and <iframe>.
...the site's address may include an optional leading wildcard (the asterisk character, '*'), and you may use a wildcard (again, '*') as the port number, indicating that all legal ports are
valid for the source.
CSP: img-src - HTTP
the http content-security-policy img-src directive specifies
valid sources of images and favicons.
...the site's address may include an optional leading wildcard (the asterisk character, '*'), and you may use a wildcard (again, '*') as the port number, indicating that all legal ports are
valid for the source.
CSP: media-src - HTTP
the http content-security-policy (csp) media-src directive specifies
valid sources for loading media using the <audio> and <video> elements.
...the site's address may include an optional leading wildcard (the asterisk character, '*'), and you may use a wildcard (again, '*') as the port number, indicating that all legal ports are
valid for the source.
CSP: object-src - HTTP
the http content-security-policy object-src directive specifies
valid sources for the <object>, <embed>, and <applet> elements.
...the site's address may include an optional leading wildcard (the asterisk character, '*'), and you may use a wildcard (again, '*') as the port number, indicating that all legal ports are
valid for the source.
CSP: plugin-types - HTTP
instantiation of an <embed>, <object> or <applet> element will fail if: the element to load does not declare a
valid mime type, the declared type does not match one of specified types in the plugin-types directive, the fetched resource does not match the declared type.
... syntax one or more mime types can be set for the plugin-types policy: content-security-policy: plugin-types <type>/<subtype>; content-security-policy: plugin-types <type>/<subtype> <type>/<subtype>; <type>/<subtype> a
valid mime type.
CSP: prefetch-src - HTTP
the http content-security-policy (csp) prefetch-src directive specifies
valid resources that may be prefetched or prerendered.
...the site's address may include an optional leading wildcard (the asterisk character, '*'), and you may use a wildcard (again, '*') as the port number, indicating that all legal ports are
valid for the source.
CSP: script-src-attr - HTTP
the http content-security-policy (csp) script-src-attr directive specifies
valid sources for javascript inline event handlers.
...the site's address may include an optional leading wildcard (the asterisk character, '*'), and you may use a wildcard (again, '*') as the port number, indicating that all legal ports are
valid for the source.
CSP: script-src-elem - HTTP
the http content-security-policy (csp) script-src-elem directive specifies
valid sources for javascript <script> elements, but not inline script event handlers like onclick.
...the site's address may include an optional leading wildcard (the asterisk character, '*'), and you may use a wildcard (again, '*') as the port number, indicating that all legal ports are
valid for the source.
CSP: script-src - HTTP
the http content-security-policy (csp) script-src directive specifies
valid sources for javascript.
...the site's address may include an optional leading wildcard (the asterisk character, '*'), and you may use a wildcard (again, '*') as the port number, indicating that all legal ports are
valid for the source.
CSP: style-src-attr - HTTP
the http content-security-policy (csp) style-src-attr directive specifies
valid sources for inline styles applied to individual dom elements.
...the site's address may include an optional leading wildcard (the asterisk character, '*'), and you may use a wildcard (again, '*') as the port number, indicating that all legal ports are
valid for the source.
CSP: style-src-elem - HTTP
the http content-security-policy (csp) style-src-elem directive specifies
valid sources for stylesheets <style> elements and <link> elements with rel="stylesheet".
...the site's address may include an optional leading wildcard (the asterisk character, '*'), and you may use a wildcard (again, '*') as the port number, indicating that all legal ports are
valid for the source.
CSP: style-src - HTTP
the http content-security-policy (csp) style-src directive specifies
valid sources for stylesheets.
...the site's address may include an optional leading wildcard (the asterisk character, '*'), and you may use a wildcard (again, '*') as the port number, indicating that all legal ports are
valid for the source.
CSP: worker-src - HTTP
the http content-security-policy (csp) worker-src directive specifies
valid sources for worker, sharedworker, or serviceworker scripts.
...the site's address may include an optional leading wildcard (the asterisk character, '*'), and you may use a wildcard (again, '*') as the port number, indicating that all legal ports are
valid for the source.
ETag - HTTP
header type response header forbidden header name no syntax etag: w/"<etag_value>" etag: "<etag_value>" directives w/ optional 'w/' (case-sensitive) indicates that a weak
validator is used.
...strong
validators are ideal for comparisons but can be very difficult to generate efficiently.
Link prefetching FAQ - HTTP
however, it is possible to instruct mozilla to
validate a prefetched document when the user follows a href to the prefetched document by specifying the cache-control: must-re
validate http response header.
... this header enables caching, but requires an if-modified-since or if-none-match
validation request before the serving the document out of the browser's cache.
Grammar and types - JavaScript
if the property name would not be a
valid javascript identifier or number, it must be enclosed in quotes.
... property names that are not
valid identifiers cannot be accessed as a dot (.) property, but can be accessed and set with the array-like notation("[]").
Working with objects - JavaScript
so, for example, you could access the properties of the mycar object as follows: mycar['make'] = 'ford'; mycar['model'] = 'mustang'; mycar['year'] = 1969; an object property name can be any
valid javascript string, or anything that can be converted to a string, including the empty string.
... however, any property name that is not a
valid javascript identifier (for example, a property name that has a space or a hyphen, or that starts with a number) can only be accessed using the square bracket notation.
RangeError: radix must be an integer - JavaScript
message rangeerror: in
valid argument (edge) rangeerror: radix must be an integer at least 2 and no greater than 36 (firefox) rangeerror: tostring() radix argument must be between 2 and 36 (chrome) error type rangeerror what went wrong?
... examples in
valid cases (42).tostring(0); (42).tostring(1); (42).tostring(37); (42).tostring(150); // you cannot use a string like this for formatting: (12071989).tostring('mm-dd-yyyy');
valid cases (42).tostring(2); // "101010" (binary) (13).tostring(8); // "15" (octal) (0x42).tostring(10); // "66" (decimal) (100000).tostring(16) // "186a0" (hexadecimal) ...
TypeError: X.prototype.y called on incompatible type - JavaScript
examples in
valid cases var myset = new set; ['bar', 'baz'].foreach(myset.add); // myset.add is a function, but "myset" is not captured as this.
...
valid cases var myset = new set; ['bar', 'baz'].foreach(myset.add.bind(myset)); // this works due to binding "myset" as this.
ReferenceError: can't access lexical declaration`X' before initialization - JavaScript
examples in
valid cases in this case, the variable "foo" is redeclared in the block statement using let.
... function test() { let foo = 33; if (true) { let foo = (foo + 55); // referenceerror: can't access lexical // declaration `foo' before initialization } } test();
valid cases to change "foo" inside the if statement, you need to remove the let that causes the redeclaration.
SyntaxError: JSON.parse: bad parsing - JavaScript
fter property value in object syntaxerror: json.parse: expected ',' or '}' after property-value pair in object literal syntaxerror: json.parse: property names must be double-quoted strings syntaxerror: json.parse: expected property name or '}' syntaxerror: json.parse: unexpected character syntaxerror: json.parse: unexpected non-whitespace character after json data syntaxerror: json.parse error: in
valid character at position {0} (edge) error type syntaxerror what went wrong?
...this string has to be
valid json and will throw this error if incorrect syntax was encountered.
URIError: malformed URI sequence - JavaScript
message urierror: the uri to be encoded contains in
valid character (edge) urierror: malformed uri sequence (firefox) urierror: uri malformed (chrome) error type urierror what went wrong?
...an argument given to either the decodeuri, encodeuri, encodeuricomponent, or decodeuricomponent function was not
valid, so that the function was unable encode or decode properly.
RangeError: repeat count must be non-negative - JavaScript
message rangeerror: argument out of range rangeerror: repeat count must be non-negative (firefox) rangeerror: in
valid count value (chrome) error type rangeerror what went wrong?
... examples in
valid cases 'abc'.repeat(-1); // rangeerror
valid cases 'abc'.repeat(0); // '' 'abc'.repeat(1); // 'abc' 'abc'.repeat(2); // 'abcabc' 'abc'.repeat(3.5); // 'abcabcabc' (count will be converted to integer) ...
TypeError: "x" is not a non-null object - JavaScript
message typeerror: in
valid descriptor for property {x} (edge) typeerror: "x" is not a non-null object (firefox) typeerror: property description must be an object: "x" (chrome) typeerror: in
valid value used in weak set (chrome) error type typeerror what went wrong?
...providing no object (like just a number), will throw an error: object.defineproperty({}, 'key', 1); // typeerror: 1 is not a non-null object object.defineproperty({}, 'key', null); // typeerror: null is not a non-null object a
valid property descriptor object might look like this: object.defineproperty({}, 'key', { value: 'foo', writable: false }); weakmap and weakset objects require object keys weakmap and weakset objects store object keys.
TypeError: "x" is read-only - JavaScript
examples in
valid cases read-only properties are not super common, but they can be created using object.defineproperty() or object.freeze().
... the global variable undefined is also read-only, so you can't silence the infamous "undefined is not a function" error by doing this: 'use strict'; undefined = function() {}; // typeerror: "undefined" is read-only
valid cases 'use strict'; var obj = object.freeze({name: 'score', points: 157}); obj = {name: obj.name, points: 0}; // replacing it with a new object works 'use strict'; var lung_count = 2; // a `var` works, because it's not read-only lung_count = 3; // ok (anatomically unlikely, though) ...
TypeError: Reduce of empty array with no initial value - JavaScript
examples in
valid cases this problem appears frequently when combined with a filter (array.prototype.filter(), typedarray.prototype.filter()) which will remove all elements of the list.
... similarly, the same issue can happen if there is a typo in a selector, or an unexpected number of elements in a list: var names = document.getelementsbyclassname("names"); var name_list = array.prototype.reduce.call(names, (acc, name) => acc + ", " + name);
valid cases these problems can be solved in two different ways.
RangeError: repeat count must be less than infinity - JavaScript
message rangeerror: argument out of range (edge) rangeerror: repeat count must be less than infinity and not overflow maximum string size (firefox) rangeerror: in
valid count value (chrome) error type rangeerror what went wrong?
... examples in
valid cases 'abc'.repeat(infinity); // rangeerror 'a'.repeat(2**28); // rangeerror
valid cases 'abc'.repeat(0); // '' 'abc'.repeat(1); // 'abc' 'abc'.repeat(2); // 'abcabc' 'abc'.repeat(3.5); // 'abcabcabc' (count will be converted to integer) ...
Warning: unreachable code after return statement - JavaScript
when an expression exists after a
valid return statement, a warning is given to indicate that the code after the return statement is unreachable, meaning it can never be run.
... warnings will not be shown for semicolon-less returns if these statements follow it: throw break var function examples in
valid cases function f() { var x = 3; x += 4; return x; // return exits the function immediately x -= 3; // so this line will never run; it is unreachable } function f() { return // this is treated like `return;` 3 + 4; // so the function returns, and this line is never reached }
valid cases function f() { var x = 3; x += 4; x -= 3; return x; // ok: return after ...
ReferenceError: assignment to undeclared variable "x" - JavaScript
examples in
valid cases in this case, the variable "bar" is an undeclared variable.
... function foo() { 'use strict'; bar = true; } foo(); // referenceerror: assignment to undeclared variable bar
valid cases to make "bar" a declared variable, you can add the var keyword in front of it.
ReferenceError: reference to undefined property "x" - JavaScript
examples in
valid cases in this case, the property bar is an undefined property, so a referenceerror will occur.
... var foo = {}; foo.bar; // referenceerror: reference to undefined property "bar"
valid cases to avoid the error, you need to either add a definition for bar to the object or check for the existence of the bar property before trying to access it; one way to do that is to use the object.prototype.hasownproperty() method), like this: var foo = {}; // define the bar property foo.bar = 'moon'; console.log(foo.bar); // "moon" // test to be sure bar exists before accessing it if (foo.hasownproperty('bar')) { console.log(foo.bar); } ...
TypeError: variable "x" redeclares argument - JavaScript
examples in
valid cases in this case, the variable "arg" redeclares the argument.
... 'use strict'; function f(arg) { var arg = 'foo'; }
valid cases to fix this warning, the var statement can just be omitted, because the variable exists already.
Arrow function expressions - JavaScript
remove `return` and remove // the surrounding curly brackets elements.map(element => element.length); // [8, 6, 7, 9] // in this case, because we only need the length property, we can use destructuring parameter: // notice that the `length` corresponds to the property we want to get whereas the // obviously non-special `lengthfoobarx` is just the name of a variable which can be changed // to any
valid variable name you want elements.map(({ length: lengthfoobarx }) => lengthfoobarx); // [8, 6, 7, 9] // this destructuring parameter assignment can also be written as seen below.
... let callback; callback = callback || function() {}; // ok callback = callback || () => {}; // syntaxerror: in
valid arrow-function arguments callback = callback || (() => {}); // ok examples basic usage // an empty arrow function returns undefined let empty = () => {}; (() => 'foobar')(); // returns "foobar" // (this is an immediately invoked function expression) var simple = a => a > 15 ?
Array.prototype.filter() - JavaScript
is [12, 130, 44] find all prime numbers in an array the following example returns all prime numbers in the array: const array = [-3, -2, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]; function isprime(num) { for (let i = 2; num > i; i++) { if (num % i == 0) { return false; } } return num > 1; } console.log(array.filter(isprime)); // [2, 3, 5, 7, 11, 13] filtering in
valid entries from json the following example uses filter() to create a filtered json of all elements with non-zero, numeric id.
... let arr = [ { id: 15 }, { id: -1 }, { id: 0 }, { id: 3 }, { id: 12.2 }, { }, { id: null }, { id: nan }, { id: 'undefined' } ] let in
validentries = 0 function filterbyid(item) { if (number.isfinite(item.id) && item.id !== 0) { return true } in
validentries++ return false; } let arrbyid = arr.filter(filterbyid) console.log('filtered array\n', arrbyid) // filtered array // [{ id: 15 }, { id: -1 }, { id: 3 }, { id: 12.2 }] console.log('number of in
valid entries = ', in
validentries) // number of in
valid entries = 5 searching in array following example uses filter() to filter array content based on search criteria.
Intl.Locale.prototype.language - JavaScript
examples setting the language in the locale identifer string argument in order to be a
valid unicode locale identifier, a string must start with the language subtag.
... the main argument to the locale constructor must be a
valid unicode locale identifier, so whenever the constructor is used, it must be passed an identifier with a language subtag.
Intl.getCanonicalLocales() - JavaScript
duplicates will be omitted and elements will be
validated as structurally
valid language tags.
... examples using getcanonicallocales intl.getcanonicallocales('en-us'); // ["en-us"] intl.getcanonicallocales(['en-us', 'fr']); // ["en-us", "fr"] intl.getcanonicallocales('en_us'); // rangeerror:'en_us' is not a structurally
valid language tag specifications specification ecmascript internationalization api (ecma-402)the definition of 'intl.getcanonicallocales' in that specification.
JSON.parse() - JavaScript
exceptions throws a syntaxerror exception if the string to parse is not
valid json.
...|false|null|-?\d+(?:\.\d*)?(?:[ee][+\-]?\d+)?/g; var rx_four = /(?:^|:|,)(?:\s*\[)+/g; var rx_dangerous = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g; json.parse = function(text, reviver) { // the parse method takes a text and an optional reviver function, and returns // a javascript value if the text is a
valid json text.
JSON.stringify() - JavaScript
undefined, functions, and symbols are not
valid json values.
...before this change json.stringify would output lone surrogates if the input contained any lone surrogates; such strings could not be encoded in
valid utf-8 or utf-16: json.stringify("\ud800"); // '"�"' but with this change json.stringify represents lone surrogates using json escape sequences that can be encoded in
valid utf-8 or utf-16: json.stringify("\ud800"); // '"\\ud800"' this change should be backwards-compatible as long as you pass the result of json.stringify to apis such as json.parse that will accept any
valid json text, becaus...
Proxy - JavaScript
validation with a proxy, you can easily
validate the passed value for an object.
... let
validator = { set: function(obj, prop, value) { if (prop === 'age') { if (!number.isinteger(value)) { throw new typeerror('the age is not an integer'); } if (value > 200) { throw new rangeerror('the age seems in
valid'); } } // the default behavior to store the value obj[prop] = value; // indicate success return true; } }; const person = new proxy({},
validator); person.age = 100; console.log(person.age); // 100 person.age = 'young'; // throws an exception person.age = 300; // throws an exception extending constructor a function proxy could easily extend a constructor with a new constructor.
String.prototype.anchor() - JavaScript
also, the html specification no longer allows the <a> element to have a name attribute, so this method doesn't even create
valid markup.
...also, the html specification no longer allows the <a> element to have a name attribute, so this method doesn't even create
valid markup.
String.fromCharCode() - JavaScript
no
validity checks are performed.
...a
valid combination of two surrogates used to represent a supplementary character is known as a surrogate pair.
String.prototype.toLocaleLowerCase() - JavaScript
exceptions a rangeerror ("in
valid language tag: xx_yy") is thrown if a locale argument isn't a
valid language tag.
... a typeerror ("in
valid element in locales argument") is thrown if an array element isn't of type string.
String.prototype.toLocaleUpperCase() - JavaScript
exceptions a rangeerror ("in
valid language tag: xx_yy") is thrown if a locale argument isn't a
valid language tag.
... a typeerror ("in
valid element in locales argument") is thrown if an array element isn't of type string.
parseFloat() - JavaScript
if parsefloat encounters a character other than a plus sign (+), minus sign (- u+002d hyphen-minus), numeral (0–9), decimal point (.), or exponent (e or e), it returns the value up to that character, ignoring the in
valid character and characters following it.
... consider number(value) for stricter parsing, which converts to nan for arguments with in
valid characters anywhere.
Property accessors - JavaScript
dot notation in the object.property syntax, the property must be a
valid javascript identifier.
...for example, object.$1 is
valid, while object.1 is not.
super - JavaScript
the super.prop and super[expr] expressions are
valid in any method definition in both classes and object literals.
... class base { constructor() {} foo() {} } class derived extends base { constructor() {} delete() { delete super.foo; // this is bad } } new derived().delete(); // referenceerror: in
valid delete involving 'super'.
async function - JavaScript
the await keyword is only
valid inside async functions.
...sdatainworker(v) // returns a promise }) } it can be rewritten with a single async function as follows: async function getprocesseddata(url) { let v try { v = await downloaddata(url) } catch(e) { v = await downloadfallbackdata(url) } return processdatainworker(v) } in the above example, notice there is no await statement after the return keyword, although that would be
valid too: the return value of an async function is implicitly wrapped in promise.resolve - if it's not already a promise itself (as in this example).
id - SVG: Scalable Vector Graphics
it must be
valid in xml documents.
... a stand-alone svg document uses xml 1.0 syntax, which specifies that
valid ids only include designated characters (letters, digits, and a few punctuation marks), and do not start with a digit, a full stop (.) character, or a hyphen-minus (-) character.
Getting started - SVG: Scalable Vector Graphics
(firefox users: click here) the rendering process involves the following: we start with the <svg> root element: a doctype declaration as known from (x)html should be left off because dtd based svg
validation leads to more problems than it solves before svg 2, to identify the version of the svg for other types of
validation the version and baseprofile attributes should always be used instead.
...the globally
valid rule for svg files is, that later elements are rendered atop previous elements.
SVG In HTML Introduction - SVG: Scalable Vector Graphics
source here is the source to the example: <html> <head> <title>xtech svg demo</title> <style> stop.begin { stop-color:yellow; } stop.end { stop-color:green; } body.in
valid stop.end { stop-color:red; } #err { display:none; } body.in
valid #err { display:inline; } </style> <script> function signalerror() { document.getelementbyid('body').setattribute("class", "in
valid"); } </script> </head> <body id="body" style="position:absolute; z-index:0; border:1px solid black; left:5%; top:5%; width:90%; height:90%;"> <form> <fieldset> <legend>html form</lege...
...when the user enters something incorrect into the form, the script sets the in
valid attribute on the <body>, and a style rule changes the gradient end-stop color to red.
Introduction to using XPath in JavaScript - XPath
note however, that if the document is mutated (the document tree is modified) between iterations that will in
validate the iteration and the in
validiteratorstate property of xpathresult is set to true, and a ns_error_dom_in
valid_state_err exception is thrown.
... snapshots do not change with document mutations, so unlike the iterators, the snapshot does not become in
valid, but it may not correspond to the current document, for example, the nodes may have been moved, it might contain nodes that no longer exist, or new nodes could have been added.
listbox - Archive of obsolete content
be aware, however, that some elements, such as textbox will display the value visually, so in order to merely associate data with an element, you could 1) use another attribute like "value2" or "data-myatt" (as in the html5 draft), as xul does not require
validation (less future-proof); 2) use setattributens() to put custom attributes in a non-xul namespace (serializable and future-proof); 3) use setuserdata() (future-proof and clean, but not easily serializable).
listitem - Archive of obsolete content
be aware, however, that some elements, such as textbox will display the value visually, so in order to merely associate data with an element, you could 1) use another attribute like "value2" or "data-myatt" (as in the html5 draft), as xul does not require
validation (less future-proof); 2) use setattributens() to put custom attributes in a non-xul namespace (serializable and future-proof); 3) use setuserdata() (future-proof and clean, but not easily serializable).
menu - Archive of obsolete content
be aware, however, that some elements, such as textbox will display the value visually, so in order to merely associate data with an element, you could 1) use another attribute like "value2" or "data-myatt" (as in the html5 draft), as xul does not require
validation (less future-proof); 2) use setattributens() to put custom attributes in a non-xul namespace (serializable and future-proof); 3) use setuserdata() (future-proof and clean, but not easily serializable).
menulist - Archive of obsolete content
be aware, however, that some elements, such as textbox will display the value visually, so in order to merely associate data with an element, you could 1) use another attribute like "value2" or "data-myatt" (as in the html5 draft), as xul does not require
validation (less future-proof); 2) use setattributens() to put custom attributes in a non-xul namespace (serializable and future-proof); 3) use setuserdata() (future-proof and clean, but not easily serializable).
menupopup - Archive of obsolete content
valid single-word values are after_start, after_end, before_start, before_end, end_after, end_before, start_after, start_before, overlap, at_pointer or after_pointer.
menuseparator - Archive of obsolete content
be aware, however, that some elements, such as textbox will display the value visually, so in order to merely associate data with an element, you could 1) use another attribute like "value2" or "data-myatt" (as in the html5 draft), as xul does not require
validation (less future-proof); 2) use setattributens() to put custom attributes in a non-xul namespace (serializable and future-proof); 3) use setuserdata() (future-proof and clean, but not easily serializable).
notification - Archive of obsolete content
be aware, however, that some elements, such as textbox will display the value visually, so in order to merely associate data with an element, you could 1) use another attribute like "value2" or "data-myatt" (as in the html5 draft), as xul does not require
validation (less future-proof); 2) use setattributens() to put custom attributes in a non-xul namespace (serializable and future-proof); 3) use setuserdata() (future-proof and clean, but not easily serializable).
panel - Archive of obsolete content
valid single-word values are after_start, after_end, before_start, before_end, end_after, end_before, start_after, start_before, overlap, at_pointer or after_pointer.
prefwindow - Archive of obsolete content
it's declared as a <field>, so you can set the value, however i don't believe it's
valid to do that.) lastselected type: string set this to the id of the last selected pane.
radio - Archive of obsolete content
be aware, however, that some elements, such as textbox will display the value visually, so in order to merely associate data with an element, you could 1) use another attribute like "value2" or "data-myatt" (as in the html5 draft), as xul does not require
validation (less future-proof); 2) use setattributens() to put custom attributes in a non-xul namespace (serializable and future-proof); 3) use setuserdata() (future-proof and clean, but not easily serializable).
radiogroup - Archive of obsolete content
be aware, however, that some elements, such as textbox will display the value visually, so in order to merely associate data with an element, you could 1) use another attribute like "value2" or "data-myatt" (as in the html5 draft), as xul does not require
validation (less future-proof); 2) use setattributens() to put custom attributes in a non-xul namespace (serializable and future-proof); 3) use setuserdata() (future-proof and clean, but not easily serializable).
richlistbox - Archive of obsolete content
be aware, however, that some elements, such as textbox will display the value visually, so in order to merely associate data with an element, you could 1) use another attribute like "value2" or "data-myatt" (as in the html5 draft), as xul does not require
validation (less future-proof); 2) use setattributens() to put custom attributes in a non-xul namespace (serializable and future-proof); 3) use setuserdata() (future-proof and clean, but not easily serializable).
richlistitem - Archive of obsolete content
be aware, however, that some elements, such as textbox will display the value visually, so in order to merely associate data with an element, you could 1) use another attribute like "value2" or "data-myatt" (as in the html5 draft), as xul does not require
validation (less future-proof); 2) use setattributens() to put custom attributes in a non-xul namespace (serializable and future-proof); 3) use setuserdata() (future-proof and clean, but not easily serializable).
NSS 3.16.3 release notes
e changes in nss 3.16.3 the following 1024-bit ca certificates were removed cn = entrust.net secure server certification authority sha1 fingerprint: 99:a6:9b:e6:1a:fe:88:6b:4d:2b:82:00:7c:b8:54:fc:31:7e:15:39 cn = gte cybertrust global root sha1 fingerprint: 97:81:79:50:d8:1c:96:70:cc:34:d8:09:cf:79:44:31:36:7e:f4:74 ou = valicert class 1 policy
validation authority sha1 fingerprint: e5:df:74:3c:b6:01:c4:9b:98:43:dc:ab:8c:e8:6a:81:10:9f:e4:8e ou = valicert class 2 policy
validation authority sha1 fingerprint: 31:7a:2a:d0:7f:2b:33:5e:f5:a1:c3:4e:4b:57:e8:b7:d8:f1:fc:a6 ou = valicert class 3 policy
validation authority sha1 fingerprint: 69:bd:8c:f4:9c:d3:00:fb:59:2e:17:93:ca:55:6a:f3:ec:aa:35...
NSS 3.19 release notes
nss now more strictly
validates tls extensions and will fail a handshake that contains malformed extensions (bug 753136).
NSS 3.21 release notes
ckm_tls_mac - computes tls finished mac in secoidt.h nss_use_alg_in_ssl_kx - policy flag indicating that keys are used in tls key exchange in sslerr.h ssl_error_rx_short_dtls_read - error code for failure to include a complete dtls record in a udp packet ssl_error_no_supported_signature_algorithm - error code for when no
valid signature and hash algorithm is available ssl_error_unsupported_signature_algorithm - error code for when an unsupported signature and hash algorithm is configured ssl_error_missing_extended_master_secret - error code for when the extended master secret is missing after having been negotiated ssl_error_unexpected_extended_master_secret - error code for receiving an extended master secret...
NSS 3.28 release notes
the certificate
validation code contains checks to no longer trust certificates that are issued by old wosign and startcom cas, after october 21, 2016.
NSS 3.29.2 release notes
bugs fixed in nss 3.29.2 nss 3.29 and 3.29.1 included a change that reduced the time that nss considered a tls session ticket to be
valid.
NSS 3.41 release notes
a4e6455d7585c60 cn = gts root r3 sha-256 fingerprint: 15d5b8774619ea7d54ce1ca6d0b0c403e037a917f131e8a04e1e6b7a71babce5 cn = gts root r4 sha-256 fingerprint: 71cca5391f9e794b04802530b363e121da8a3043bb26662fea4dca7fc951a4bd cn = uca global g2 root sha-256 fingerprint: 9bea11c976fe014764c1be56a6f914b5a560317abd9988393382e5161aa0493c cn = uca extended
validation root sha-256 fingerprint: d43af9b35473755c9684fc06d7d8cb70ee5c28e773fb294eb41ee71722924d24 the following ca certificates were removed: cn = ac raíz certicámara s.a.
NSS 3.42 release notes
bugs fixed in nss 3.42 bug 1490006 - reject in
valid ch.legacy_version in tls 1.3 bug 1507135 and bug 1507174 - add additional null checks to several cms functions to fix a rare cms crash.
NSS 3.44.1 release notes
54336 - optimize away unneeded loop in mpi.c 1515342 - more thorough input checking (cve-2019-11729) 1540541 - don't unnecessarily strip leading 0's from key material during pkcs11 import (cve-2019-11719) 1515236 - add a sslkeylogfile enable/disable flag at build.sh 1473806 - fix seckey_converttopublickey handling of non-rsa keys 1546477 - updates to testing for fips
validation 1552208 - prohibit use of rsassa-pkcs1-v1_5 algorithms in tls 1.3 (cve-2019-11727) 1551041 - unbreak build on gcc < 4.3 big-endian compatibility nss 3.44.1 shared libraries are backward compatible with all older nss 3.x shared libraries.
NSS 3.46 release notes
ed warning in tls13esni.c bug 1561332 - ec.c:28 warning: comparison of integers of different signs: 'int' and 'unsigned long' bug 1564714 - print certutil commands during setup bug 1565013 - hacl image builder times out while fetching gpg key bug 1563786 - update hacl-star docker image to pull specific commit bug 1559012 - improve gcm perfomance using pmull2 bug 1528666 - correct resumption
validation checks bug 1568803 - more tests for client certificate authentication bug 1564284 - support profile mobility across windows and linux bug 1573942 - gtest for pkcs11.txt with different breaking line formats bug 1575968 - add strsclnt option to enforce the use of either ipv4 or ipv6 bug 1549847 - fix nss builds on ios bug 1485533 - enable nss_ssl_tests on taskcluster this bugzilla quer...
NSS 3.52 release notes
bug 1630925 - guard all instances of nsscmssigneddata.signerinfo to avoid a cms crash bug 1571677 - name constraints
validation: cn treated as dns name even when syntactically in
valid as dns name this bugzilla query returns all the bugs fixed in nss 3.52: https://bugzilla.mozilla.org/buglist.cgi?resolution=fixed&classification=components&query_format=advanced&product=nss&target_milestone=3.52 compatibility nss 3.52 shared libraries are backward compatible with all older nss 3.x shared libraries.
NSS Sample Code Sample1
the administrator of the primary host verifies that the rsa key // that was received belongs to a
valid secondary host.
NSS Sample Code Sample_1_Hashing
mmand line arguments */ optstate = pl_createoptstate(argc, argv, "t:"); while ((status = pl_getnextopt(optstate)) == pl_opt_ok) { switch (optstate->option) { case 't': require_arg(optstate->option, optstate->value); hashname = strdup(optstate->value); break; } } if (!hashname) usage(progname); /* convert and
validate */ hashoidtag = hashnametooidtag(hashname); if (hashoidtag == sec_oid_unknown) { fprintf(stderr, "%s: in
valid digest type - %s\n", progname, hashname); usage(progname); } /* digest it and print the result */ rv = digestfile(pr_stdout, pr_stdin, hashoidtag); if (rv != secsuccess) { fprintf(stderr, "%s: problem digesting data (%d)\n", ...
NSS Sample Code Utilities_1
for (;;) { /* prompt for password */ if (istty) { fprintf(output, "%s", prompt); fflush (output); echooff(infd); } fgets(phrase, sizeof(phrase), input); if (istty) { fprintf(output, "\n"); echoon(infd); } /* stomp on newline */ phrase[port_strlen(phrase)-1] = 0; /*
validate password */ if (!(*ok)(phrase)) { if (!istty) return 0; fprintf(output, "password must be at least 8 characters long with one or more\n"); fprintf(output, "non-alphabetic characters\n"); continue; } return (char*) port_strdup(phrase); } } /* * filepasswd extracts the password from a text file * * storing passwords ...
NSS Sample Code sample6
* since we're using aes in this example, we're specifying * one of the
valid keysizes (16, 24, 32) */ key = pk11_tokenkeygen(slot, ciphermech, 0, 32 /*keysize*/, &keyiditem, pr_true, 0); if (key == null) { fprintf(stderr, "pk11_tokenkeygen failed (err %d)\n", pr_geterror()); pk11_freeslot(slot); return; } fprintf(stderr, "key length of generated key is %d\n", pk11_getkeylength(key)); fprintf(stderr...
Hashing - sample 1
mmand line arguments */ optstate = pl_createoptstate(argc, argv, "t:"); while ((status = pl_getnextopt(optstate)) == pl_opt_ok) { switch (optstate->option) { case 't': require_arg(optstate->option, optstate->value); hashname = strdup(optstate->value); break; } } if (!hashname) usage(progname); /* convert and
validate */ hashoidtag = hashnametooidtag(hashname); if (hashoidtag == sec_oid_unknown) { fprintf(stderr, "%s: in
valid digest type - %s\n", progname, hashname); usage(progname); } /* digest it and print the result */ rv = digestfile(pr_stdout, pr_stdin, hashoidtag); if (rv != secsuccess) { fprintf(stderr, "%s: problem digesting data (%d)\n", ...
Utilities for nss samples
for (;;) { /* prompt for password */ if (istty) { fprintf(output, "%s", prompt); fflush (output); echooff(infd); } fgets(phrase, sizeof(phrase), input); if (istty) { fprintf(output, "\n"); echoon(infd); } /* stomp on newline */ phrase[port_strlen(phrase)-1] = 0; /*
validate password */ if (!(*ok)(phrase)) { if (!istty) return 0; fprintf(output, "password must be at least 8 characters long with one or more\n"); fprintf(output, "non-alphabetic characters\n"); continue; } return (char*) port_strdup(phrase); } } /* * filepasswd extracts the password from a text file * * storing passwords ...
sample1
uments */ optstate = pl_createoptstate(argc, argv, "t:"); while ((status = pl_getnextopt(optstate)) == pl_opt_ok) { switch (optstate->option) { case 't': require_arg(optstate->option, optstate->value); hashname = strdup(optstate->value); break; } } if (!hashname) usage(progname); /* convert and
validate */ hashoidtag = hashnametooidtag(hashname); if (hashoidtag == sec_oid_unknown) { fprintf(stderr, "%s: in
valid digest type - %s\n", progname, hashname); usage(progname); } /* digest it and print the result */ rv = digestfile(pr_stdout, pr_stdin, hashoidtag); if (rv != secsuccess) { fprintf(stderr, "%s: problem digesting data (%d)\n", pr...
nss tech note1
sn1_teletex_string, sec_asn1_t61_string, sec_asn1_videotex_string, sec_asn1_ia5_string, sec_asn1_utc_time, sec_asn1_generalized_time, sec_asn1_graphic_string, sec_asn1_visible_string, sec_asn1_general_string, sec_asn1_universal_string, sec_asn1_bmp_string note that for sec_asn1_set and sec_asn1_sequence types, you must also include the method type macro sec_asn1_constructed to construct a fully
valid tag, as defined by the asn.1 standard .
nss tech note6
the softoken and freebl binaries won't match any nss binaries that may have been submitted to nist for
validation, and thus may not be verified as being the actual fips 140
validated cryptographic module .
PKCS 12 functions
sec_pkcs12decoderiterateinit mxr 3.10 and later sec_pkcs12decoderiteratenext mxr 3.10 and later sec_pkcs12decodersettargettokencas mxr 3.8 and later sec_pkcs12decoderstart mxr 3.2 and later sec_pkcs12decoderupdate mxr 3.2 and later sec_pkcs12decoder
validatebags mxr 3.2 and later sec_pkcs12decoderverify mxr 3.2 and later sec_pkcs12destroyexportcontext mxr 3.2 and later sec_pkcs12enablecipher mxr 3.2 and later sec_pkcs12encode mxr 3.2 and later sec_pkcs12isencryptionallowed mxr 3.2 and later ...
Migration to HG
most parts of the nss build instructions remain
valid, especially the instructions about setting environment variables.
FC_EncryptInit
ckr_slot_id_in
valid the specified slot number is out of the defined range of values.
FC_GetSlotInfo
ckr_slot_id_in
valid the specified slot number is out of the defined range of values.
FC_GetTokenInfo
ckr_slot_id_in
valid the specified slot number is out of the defined range of values.
FC_Verify
ckr_signature_in
valid is returned for signature mismatch.
NSPR functions
pr_geterror pr_seterror calendar time nss certificate verification functions take a prtime parameter that specifies the time instant at which the
validity of the certificate should verified.
NSS tools : pk12util
ncelled o 2 - usage error o 6 - nls init error o 8 - certificate db open error o 9 - key db open error o 10 - file initialization error o 11 - unicode conversion error o 12 - temporary file creation error o 13 - pkcs11 get slot error o 14 - pkcs12 decoder start error o 15 - error read from import file o 16 - pkcs12 decode error o 17 - pkcs12 decoder verify error o 18 - pkcs12 decoder
validate bags error o 19 - pkcs12 decoder import bags error o 20 - key db conversion version 3 to version 2 error o 21 - cert db conversion version 7 to version 5 error o 22 - cert and key dbs patch error o 23 - get default cert db error o 24 - find cert by nickname error o 25 - create export context error o 26 - pkcs12 add password itegrity error o 27 - cert and key safes creation error o 28...
NSS tools : vfychain
options -a the following certfile is base64 encoded -b yymmddhhmmz
validate date (default: now) -d directory database directory -f enable cert fetching from aia url -o oid set policy oid for cert
validation(format oid.1.2.3) -p use pkix library to
validate certificate by calling: * cert_verifycertificate if specified once, * cert_pkixverifycert if specified twice and more.
SSL functions
er ssl_getclientauthdatahook mxr 3.2 and later ssl_getmaxservercachelocks mxr 3.4 and later ssl_getsessionid mxr 3.2 and later ssl_getstatistics mxr 3.2 and later ssl_handshakecallback mxr 3.2 and later ssl_importfd mxr 3.2 and later ssl_inheritmpserversidcache mxr 3.2 and later ssl_in
validatesession mxr 3.2 and later ssl_localcertificate mxr 3.4 and later ssl_optionget mxr 3.2 and later ssl_optiongetdefault mxr 3.2 and later ssl_optionset mxr 3.2 and later ssl_optionsetdefault mxr 3.2 and later ssl_peercertificate mxr 3.2 and later ssl_preencryptedfiletostream mxr 3.2 and ...
NSS Tools modutil
wing system names and platforms are currently defined by nspr: aix (rs6000) bsdi (x86) freebsd (x86) hpux (hppa1.1) irix (mips) linux (ppc, alpha, x86) macos (powerpc) ncr (x86) nec (mips) os2 (x86) osf (alpha) reliantunix (mips) sco (x86) solaris (sparc) sony (mips) sunos (sparc) unixware (x86) win16 (x86) win95 (x86) winnt (x86) here are some examples of
valid platform strings: irix:6.2:mipssunos:5.5.1:sparclinux:2.0.32:x86win95::x86.
NSS Tools pk12util
lowing values: 0 - no error 1 - user cancelled 2 - usage error 6 - nls init error 8 - certificate db open error 9 - key db open error 10 - file initialization error 11 - unicode conversion error 12 - temporary file creation error 13 - pkcs11 get slot error 14 - pkcs12 decoder start error 15 - error read from import file 16 - pkcs12 decode error 17 - pkcs12 decoder verify error 18 - pkcs12 decoder
validate bags error 19 - pkcs12 decoder import bags error 20 - key db conversion version 3 to version 2 error 21 - cert db conversion version 7 to version 5 error 22 - cert and key dbs patch error 23 - get default cert db error 24 - find cert by nickname error 25 - create export context error 26 - pkcs12 add password itegrity error 27 - cert and key safes creation error 28 - pkcs12 add cert and key err...
NSS tools : pk12util
o 8 - certificate db open error o 9 - key db open error o 10 - file initialization error o 11 - unicode conversion error o 12 - temporary file creation error o 13 - pkcs11 get slot error o 14 - pkcs12 decoder start error o 15 - error read from import file o 16 - pkcs12 decode error o 17 - pkcs12 decoder verify error o 18 - pkcs12 decoder
validate bags error o 19 - pkcs12 decoder import bags error o 20 - key db conversion version 3 to version 2 error o 21 - cert db conversion version 7 to version 5 error o 22 - cert and key dbs patch error o 23 - get default cert db error o 24 - find cert by nickname error o 25 - create export context error o 26 - pkcs12 add password itegrity error o...
NSS tools : vfychain
options -a the following certfile is base64 encoded -b yymmddhhmmz
validate date (default: now) -d directory database directory -f enable cert fetching from aia url -o oid set policy oid for cert
validation(format oid.1.2.3) -p use pkix library to
validate certificate by calling: * cert_verifycertificate if specified once, * cert_pkixverifycert if specified twice and more.
Network Security Services
rmation using the window.crypto object from javascript delegation of http download for ocsp tls cipher suite discovery nss certificate download specification fips mode - an explanation format of key log files view all nss-related articles on mdn planning information on nss planning can be found at wiki.mozilla.org, including: fips
validation nss roadmap page nss improvement project community view mozilla security forums...
Rhino JavaScript compiler
the string packagename must be composed of
valid identifier characters optionally separated by periods.
Invariants
so code must check js_
validcontextpointer(ownercx) before dereferencing it.
JSAPI User Guide
a dangling pointer is a pointer that used to point to a
valid object, but no longer does because the object no longer exists.
JSClass.flags
the slots initially contain unspecified
valid jsval values.
JSPropertyDescriptor
value describes the value of the specified property, which can be any
valid javascript value (function, object, string...) configurable declare that the property can be modified and deleted enumerable declare that the property can be enumerated, and the enumerable genus can be traversed by the for...in loop.
JSProtoKey
value prototype in javascript jsproto_null a dummy key for in
valid prototype.
JS_BufferIsCompilableUnit
description given a buffer, return false if the buffer might become a
valid javascript statement with the addition of more lines.
Using the aria-required attribute - Accessibility
"lastname" type="text" aria-required="true" /> <br/> <label for="streetaddress">street address:</label> <input id="streetaddress" type="text" /> </form> working examples: tooltip example (includes the use of the aria-required attribute) notes used in aria roles combobox gridcell listbox radiogroup spinbutton textbox tree related aria techniques using the aria-in
valid attribute compatibility tbd: add support information for common ua and at product combinations additional resources wai-aria specification for aria-required wai-aria authoring practices for forms constraint
validation in html5 ...
Using ARIA: Roles, states, and properties - Accessibility
xtbox toolbar tooltip landmark roles banner complementary contentinfo form main navigation region search live region roles alert log marquee status timer window roles alertdialog dialog states and properties widget attributes aria-autocomplete aria-checked aria-current aria-disabled aria-errormessage aria-expanded aria-haspopup aria-hidden aria-in
valid aria-label aria-level aria-modal aria-multiline aria-multiselectable aria-orientation aria-placeholder aria-pressed aria-readonly aria-required aria-selected aria-sort aria-valuemax aria-valuemin aria-valuenow aria-valuetext live region attributes aria-live aria-relevant aria-atomic aria-busy drag & drop attributes aria-dropeffect aria-dragged relationship att...
ARIA: alert role - Accessibility
<p role="alert" style="display: none;">the alert will trigger when the element becomes visible.</p> while triggering an alert via css alone is possible, it is better to rely on javascript because it has more browser/screen reader support and is often more appropriate as part of a larger user interaction such as inside an event handler or form
validation.
overview - Accessibility
e, part two, part threet (example) creating an accessible, internationalized dojo rating widget tabs enhancing tabview accessibility with wai-aria roles and states, from the yui blog enhancing the jquery ui tabs accordingly to wcag 2.0 and aria tab panel example here on codetalks lightbox wcag 2.0 and aria-conformant lightbox application http://majx-js.digissime.net/js/popin/ form
validation wcag 2.0 and aria-conformant live form
validation tables german tutorial on creating an accessible form simple grid example at codetalks date picker grid at codetalks wcag 2.0 and aria-conformant sortable tables ...
HTML To MSAA - Accessibility
map html element role name value states relations actions events notes a role_system_ link n/a value of @href attribute state_system_ selectable if @name attribute is presented state_system_ linked if @href attribute is presented or click event listener is registered state_system_ traversed if link is traversed n/a "jump" if @href is
valid n/a br role_system_ whitespace '\n' (new line char) state_system_ readonly n/a n/a n/a button role_system_ pushbutton from child nodes n/a state_system_ focusable state_system_ default if @type attribute has value "submit" n/a "press" n/a caption bstr role n/a n/a n/a description_for (0x100f), points to table element div bstr role n/a n/a n/a n/a n/a n/a fieldset r...
Operable - Accessibility
live multiplayer games), and any other activity that requires a time limit and would be in
validated if it were turned off.
Text labels and names - Accessibility
examples the title for the reference article about the <title> element is as follows: <title><title>: the document title element - html: hypertext markup language</title> another example might look like so: <title>fill in your details to register — mygov services</title> to help the user, you can update the page title value to reflect significant page state changes (such as form
validation problems): <title>2 errors — fill in your details to register — mygov services</title> see also <title> embedded content must be labeled make sure that elements that embed content have a title attribute that describes the embedded content.
::first-line (:first-line) - CSS: Cascading Style Sheets
see what i mean?</p> <span>the first line of this text will not receive special styling because it is not a block-level element.</span> css ::first-line { color: blue; text-transform: uppercase; /* warning: do not use these */ /* many properties are in
valid in ::first-line pseudo-elements */ margin-left: 20px; text-indent: 20px; } result specifications specification status comment css pseudo-elements level 4the definition of '::first-line' in that specification.
::placeholder - CSS: Cascading Style Sheets
syntax ::placeholder accessibility concerns color contrast contrast ratio placeholder text typically has a lighter color treatment to indicate that it is a suggestion for what kind of input will be
valid, and is not actual input of any kind.
WeakSet.prototype.add() - JavaScript
examples using add var ws = new weakset(); ws.add(window); // add the window object to the weakset ws.has(window); // true // weakset only takes objects as arguments ws.add(1); // results in "typeerror: in
valid value used in weak set" in chrome // and "typeerror: 1 is not a non-null object" in firefox specifications specification ecmascript (ecma-262)the definition of 'weakset.prototype.add' in that specification.
decodeURI() - JavaScript
exceptions throws an urierror ("malformed uri sequence") exception when encodeduri contains in
valid character sequences.
encodeURIComponent() - JavaScript
// i.e., %27 %28 %29 %2a (note that
valid encoding of "*" is %2a // which necessitates calling touppercase() to properly encode) // the following are not required for percent-encoding per rfc5987, // so we can allow for a little better readability over the wire: |`^ replace(/%(7c|60|5e)/g, (str, hex) => string.fromcharcode(parseint(hex, 16))); } specifications ...
eval() - JavaScript
note that since json syntax is limited compared to javascript syntax, many
valid javascript literals will not parse as json.
isNaN() - JavaScript
thus for non-numbers that when coerced to numeric type result in a
valid non-nan numeric value (notably the empty string and boolean primitives, which when coerced give numeric values zero or one), the "false" returned value may be unexpected; the empty string, for example, is surely "not a number." the confusion stems from the fact that the term, "not a number", has a specific meaning for numbers represented as ieee-754 floating-point values.
parseInt() - JavaScript
, 8) parseint(021, 8) parseint('015', 10) // but `parseint(015, 10)` will return 13 parseint(15.99, 10) parseint('15,123', 10) parseint('fxx123', 16) parseint('1111', 2) parseint('15 * 3', 10) parseint('15e2', 10) parseint('15px', 10) parseint('12', 13) the following examples all return nan: parseint('hello', 8) // not a number at all parseint('546', 2) // digits other than 0 or 1 are in
valid for binary radix the following examples all return -15: parseint('-f', 16) parseint('-0f', 16) parseint('-0xf', 16) parseint(-15.1, 10) parseint('-17', 8) parseint('-15', 10) parseint('-1111', 2) parseint('-15e1', 10) parseint('-12', 13) the following examples all return 4.
Spread syntax (...) - JavaScript
without spread syntax, this is done as: const arr1 = [0, 1, 2]; const arr2 = [3, 4, 5]; // append all items from arr2 onto arr1 arr1 = arr1.concat(arr2); with spread syntax this becomes: let arr1 = [0, 1, 2]; let arr2 = [3, 4, 5]; arr1 = [...arr1, ...arr2]; // arr1 is now [0, 1, 2, 3, 4, 5] // note: not to use const otherwise, it will give typeerror (in
valid assignment) array.prototype.unshift() is often used to insert an array of values at the start of an existing array.
instanceof - JavaScript
this may not make sense at first, but for scripts dealing with multiple frames or windows, and passing objects from one context to another via functions, this will be a
valid and strong issue.
export - JavaScript
note: the following is syntactically in
valid despite its import equivalent: import defaultexport from 'bar.js'; //
valid export defaultexport from 'bar.js'; // in
valid the correct way of doing this is to rename the export: export { default as defaultexport } from 'bar.js'; examples using named exports in a module my-module.js, we could include the following code: // module "my-module.js" function cube(x) { return x * x * x; } ...
try...catch - JavaScript
function is
validjson(text) { try { json.parse(text); return true; } catch { return false; } } the finally-block the finally-block contains statements to execute after the try-block and catch-block(s) execute, but before the statements following the try...catch...finally-block.
Template literals (Template strings) - JavaScript
unicode escapes started by "\u", for example \u00a9 unicode code point escapes indicated by "\u{}", for example \u{2f804} hexadecimal escapes started by "\x", for example \xa9 octal literal escapes started by "\0o" and followed by one or more digits, for example \0o251 this means that a tagged template like the following is problematic, because, per ecmascript grammar, a parser looks for
valid unicode escape sequences, but finds malformed syntax: latex`\unicode` // throws in older ecmascript versions (es2016 and earlier) // syntaxerror: malformed unicode character escape sequence es2018 revision of illegal escape sequences tagged templates should allow the embedding of languages (for example dsls, or latex), where other escapes sequences are common.
<math> - MathML
every
valid mathml instance must be wrapped in <math> tags.
<mmultiscripts> - MathML
prescripts are optional and are separated by the empty tag <mprescripts/> (only one <mprescripts /> element is allowed, otherwise you will get an duplicatemprescripts error in the error console and "in
valid-markup" in your rendering).
<semantics> - MathML
the <semantics> element acts as a container element associating annotations and must have child elements (it will raise an in
valid markup error otherwise).
MathML
mailing list newsgroup rss feed matrix chat room wiki used by mozilla contributors w3c math home www-math w3.org mail archive tools w3c
validator mathzilla firefox add-on collection texzilla — javascript latex to mathml converter (live demo, firefox os webapp, firefox add-on, using in a web page, js program etc) latexml - convert latex documents into html+mathml web pages web equation - turn handwritten equations into mathml or latex mathjax - cross-browser javascript display engine for mathematics.
OpenSearch description format
you must include a text/html url — search plugins including only atom or rss url types (which is
valid, but firefox doesn't support) will also generate the "could not download the search plugin" error.
SVG Event Attributes - SVG: Scalable Vector Graphics
vent attributes onabort, onerror, onresize, onscroll, onunload document element event attributes oncopy, oncut, onpaste global event attributes oncancel, oncanplay, oncanplaythrough, onchange, onclick, onclose, oncuechange, ondblclick, ondrag, ondragend, ondragenter, ondragexit, ondragleave, ondragover, ondragstart, ondrop, ondurationchange, onemptied, onended, onerror, onfocus, oninput, onin
valid, onkeydown, onkeypress, onkeyup, onload, onloadeddata, onloadedmetadata, onloadstart, onmousedown, onmouseenter, onmouseleave, onmousemove, onmouseout, onmouseover, onmouseup, onmousewheel, onpause, onplay, onplaying, onprogress, onratechange, onreset, onresize, onscroll, onseeked, onseeking, onselect, onshow, onstalled, onsubmit, onsuspend, ontimeupdate, ontoggle, onvolumechange, onwaiting grap...
tabindex - SVG: Scalable Vector Graphics
html, body, svg { height: 100%; } <?xml version="1.0"?> <svg viewbox="0 0 260 260" xmlns="http://www.w3.org/2000/svg"> <circle cx="60" cy="60" r="15" tabindex="1" /> <circle cx="60" cy="160" r="30" tabindex="3" /> <circle cx="160" cy="60" r="30" tabindex="2" /> <circle cx="160" cy="160" r="60" tabindex="4" /> </svg> usage notes value
valid integer default value none animatable no
valid integer relative order of the element for the purposes of sequential focus navigation.
target - SVG: Scalable Vector Graphics
the name must be a
valid xml name [xml11], and should not start with an underscore (u+005f low line character), to meet the requirements of a
valid browsing context name from html.
SVG Attribute reference - SVG: Scalable Vector Graphics
tion event attributes onbegin, onend, onrepeat document event attributes onabort, onerror, onresize, onscroll, onunload global event attributes oncancel, oncanplay, oncanplaythrough, onchange, onclick, onclose, oncuechange, ondblclick, ondrag, ondragend, ondragenter, ondragexit, ondragleave, ondragover, ondragstart, ondrop, ondurationchange, onemptied, onended, onerror, onfocus, oninput, onin
valid, onkeydown, onkeypress, onkeyup, onload, onloadeddata, onloadedmetadata, onloadstart, onmousedown, onmouseenter, onmouseleave, onmousemove, onmouseout, onmouseover, onmouseup, onmousewheel, onpause, onplay, onplaying, onprogress, onratechange, onreset, onresize, onscroll, onseeked, onseeking, onselect, onshow, onstalled, onsubmit, onsuspend, ontimeupdate, ontoggle, onvolumechange, onwaiting grap...
<a> - SVG: Scalable Vector Graphics
ctor-effect, visibility xlink attributes most notably: xlink:title aria attributes aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-current, aria-describedby, aria-details, aria-disabled, aria-dropeffect, aria-errormessage, aria-expanded, aria-flowto, aria-grabbed, aria-haspopup, aria-hidden, aria-in
valid, aria-keyshortcuts, aria-label, aria-labelledby, aria-level, aria-live, aria-modal, aria-multiline, aria-multiselectable, aria-orientation, aria-owns, aria-placeholder, aria-posinset, aria-pressed, aria-readonly, aria-relevant, aria-required, aria-roledescription, aria-rowcount, aria-rowindex, aria-rowspan, aria-selected, aria-setsize, aria-sort, aria-valuemax, aria-valuemin, aria-valuenow, aria-...
<circle> - SVG: Scalable Vector Graphics
, stroke-opacity, stroke-width, transform, vector-effect, visibility aria attributes aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-current, aria-describedby, aria-details, aria-disabled, aria-dropeffect, aria-errormessage, aria-expanded, aria-flowto, aria-grabbed, aria-haspopup, aria-hidden, aria-in
valid, aria-keyshortcuts, aria-label, aria-labelledby, aria-level, aria-live, aria-modal, aria-multiline, aria-multiselectable, aria-orientation, aria-owns, aria-placeholder, aria-posinset, aria-pressed, aria-readonly, aria-relevant, aria-required, aria-roledescription, aria-rowcount, aria-rowindex, aria-rowspan, aria-selected, aria-setsize, aria-sort, aria-valuemax, aria-valuemin, aria-valuenow, aria-...
<ellipse> - SVG: Scalable Vector Graphics
, stroke-opacity, stroke-width, transform, vector-effect, visibility aria attributes aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-current, aria-describedby, aria-details, aria-disabled, aria-dropeffect, aria-errormessage, aria-expanded, aria-flowto, aria-grabbed, aria-haspopup, aria-hidden, aria-in
valid, aria-keyshortcuts, aria-label, aria-labelledby, aria-level, aria-live, aria-modal, aria-multiline, aria-multiselectable, aria-orientation, aria-owns, aria-placeholder, aria-posinset, aria-pressed, aria-readonly, aria-relevant, aria-required, aria-roledescription, aria-rowcount, aria-rowindex, aria-rowspan, aria-selected, aria-setsize, aria-sort, aria-valuemax, aria-valuemin, aria-valuenow, aria-...
<foreignObject> - SVG: Scalable Vector Graphics
, stroke-opacity, stroke-width, transform, vector-effect, visibility aria attributes aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-current, aria-describedby, aria-details, aria-disabled, aria-dropeffect, aria-errormessage, aria-expanded, aria-flowto, aria-grabbed, aria-haspopup, aria-hidden, aria-in
valid, aria-keyshortcuts, aria-label, aria-labelledby, aria-level, aria-live, aria-modal, aria-multiline, aria-multiselectable, aria-orientation, aria-owns, aria-placeholder, aria-posinset, aria-pressed, aria-readonly, aria-relevant, aria-required, aria-roledescription, aria-rowcount, aria-rowindex, aria-rowspan, aria-selected, aria-setsize, aria-sort, aria-valuemax, aria-valuemin, aria-valuenow, aria-...
<g> - SVG: Scalable Vector Graphics
, stroke-opacity, stroke-width, transform, vector-effect, visibility aria attributes aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-current, aria-describedby, aria-details, aria-disabled, aria-dropeffect, aria-errormessage, aria-expanded, aria-flowto, aria-grabbed, aria-haspopup, aria-hidden, aria-in
valid, aria-keyshortcuts, aria-label, aria-labelledby, aria-level, aria-live, aria-modal, aria-multiline, aria-multiselectable, aria-orientation, aria-owns, aria-placeholder, aria-posinset, aria-pressed, aria-readonly, aria-relevant, aria-required, aria-roledescription, aria-rowcount, aria-rowindex, aria-rowspan, aria-selected, aria-setsize, aria-sort, aria-valuemax, aria-valuemin, aria-valuenow, aria-...
<line> - SVG: Scalable Vector Graphics
, stroke-opacity, stroke-width, transform, vector-effect, visibility aria attributes aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-current, aria-describedby, aria-details, aria-disabled, aria-dropeffect, aria-errormessage, aria-expanded, aria-flowto, aria-grabbed, aria-haspopup, aria-hidden, aria-in
valid, aria-keyshortcuts, aria-label, aria-labelledby, aria-level, aria-live, aria-modal, aria-multiline, aria-multiselectable, aria-orientation, aria-owns, aria-placeholder, aria-posinset, aria-pressed, aria-readonly, aria-relevant, aria-required, aria-roledescription, aria-rowcount, aria-rowindex, aria-rowspan, aria-selected, aria-setsize, aria-sort, aria-valuemax, aria-valuemin, aria-valuenow, aria-...
<marker> - SVG: Scalable Vector Graphics
, stroke-opacity, stroke-width, transform, vector-effect, visibility aria attributes aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-current, aria-describedby, aria-details, aria-disabled, aria-dropeffect, aria-errormessage, aria-expanded, aria-flowto, aria-grabbed, aria-haspopup, aria-hidden, aria-in
valid, aria-keyshortcuts, aria-label, aria-labelledby, aria-level, aria-live, aria-modal, aria-multiline, aria-multiselectable, aria-orientation, aria-owns, aria-placeholder, aria-posinset, aria-pressed, aria-readonly, aria-relevant, aria-required, aria-roledescription, aria-rowcount, aria-rowindex, aria-rowspan, aria-selected, aria-setsize, aria-sort, aria-valuemax, aria-valuemin, aria-valuenow, aria-...
<path> - SVG: Scalable Vector Graphics
, stroke-opacity, stroke-width, transform, vector-effect, visibility aria attributes aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-current, aria-describedby, aria-details, aria-disabled, aria-dropeffect, aria-errormessage, aria-expanded, aria-flowto, aria-grabbed, aria-haspopup, aria-hidden, aria-in
valid, aria-keyshortcuts, aria-label, aria-labelledby, aria-level, aria-live, aria-modal, aria-multiline, aria-multiselectable, aria-orientation, aria-owns, aria-placeholder, aria-posinset, aria-pressed, aria-readonly, aria-relevant, aria-required, aria-roledescription, aria-rowcount, aria-rowindex, aria-rowspan, aria-selected, aria-setsize, aria-sort, aria-valuemax, aria-valuemin, aria-valuenow, aria-...
<polygon> - SVG: Scalable Vector Graphics
, stroke-opacity, stroke-width, transform, vector-effect, visibility aria attributes aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-current, aria-describedby, aria-details, aria-disabled, aria-dropeffect, aria-errormessage, aria-expanded, aria-flowto, aria-grabbed, aria-haspopup, aria-hidden, aria-in
valid, aria-keyshortcuts, aria-label, aria-labelledby, aria-level, aria-live, aria-modal, aria-multiline, aria-multiselectable, aria-orientation, aria-owns, aria-placeholder, aria-posinset, aria-pressed, aria-readonly, aria-relevant, aria-required, aria-roledescription, aria-rowcount, aria-rowindex, aria-rowspan, aria-selected, aria-setsize, aria-sort, aria-valuemax, aria-valuemin, aria-valuenow, aria-...
<polyline> - SVG: Scalable Vector Graphics
, stroke-opacity, stroke-width, transform, vector-effect, visibility aria attributes aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-current, aria-describedby, aria-details, aria-disabled, aria-dropeffect, aria-errormessage, aria-expanded, aria-flowto, aria-grabbed, aria-haspopup, aria-hidden, aria-in
valid, aria-keyshortcuts, aria-label, aria-labelledby, aria-level, aria-live, aria-modal, aria-multiline, aria-multiselectable, aria-orientation, aria-owns, aria-placeholder, aria-posinset, aria-pressed, aria-readonly, aria-relevant, aria-required, aria-roledescription, aria-rowcount, aria-rowindex, aria-rowspan, aria-selected, aria-setsize, aria-sort, aria-valuemax, aria-valuemin, aria-valuenow, aria-...
<rect> - SVG: Scalable Vector Graphics
, stroke-opacity, stroke-width, transform, vector-effect, visibility aria attributes aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-current, aria-describedby, aria-details, aria-disabled, aria-dropeffect, aria-errormessage, aria-expanded, aria-flowto, aria-grabbed, aria-haspopup, aria-hidden, aria-in
valid, aria-keyshortcuts, aria-label, aria-labelledby, aria-level, aria-live, aria-modal, aria-multiline, aria-multiselectable, aria-orientation, aria-owns, aria-placeholder, aria-posinset, aria-pressed, aria-readonly, aria-relevant, aria-required, aria-roledescription, aria-rowcount, aria-rowindex, aria-rowspan, aria-selected, aria-setsize, aria-sort, aria-valuemax, aria-valuemin, aria-valuenow, aria-...
<svg> - SVG: Scalable Vector Graphics
, stroke-opacity, stroke-width, transform, vector-effect, visibility aria attributes aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-current, aria-describedby, aria-details, aria-disabled, aria-dropeffect, aria-errormessage, aria-expanded, aria-flowto, aria-grabbed, aria-haspopup, aria-hidden, aria-in
valid, aria-keyshortcuts, aria-label, aria-labelledby, aria-level, aria-live, aria-modal, aria-multiline, aria-multiselectable, aria-orientation, aria-owns, aria-placeholder, aria-posinset, aria-pressed, aria-readonly, aria-relevant, aria-required, aria-roledescription, aria-rowcount, aria-rowindex, aria-rowspan, aria-selected, aria-setsize, aria-sort, aria-valuemax, aria-valuemin, aria-valuenow, aria-...
<symbol> - SVG: Scalable Vector Graphics
, stroke-opacity, stroke-width, transform, vector-effect, visibility aria attributes aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-current, aria-describedby, aria-details, aria-disabled, aria-dropeffect, aria-errormessage, aria-expanded, aria-flowto, aria-grabbed, aria-haspopup, aria-hidden, aria-in
valid, aria-keyshortcuts, aria-label, aria-labelledby, aria-level, aria-live, aria-modal, aria-multiline, aria-multiselectable, aria-orientation, aria-owns, aria-placeholder, aria-posinset, aria-pressed, aria-readonly, aria-relevant, aria-required, aria-roledescription, aria-rowcount, aria-rowindex, aria-rowspan, aria-selected, aria-setsize, aria-sort, aria-valuemax, aria-valuemin, aria-valuenow, aria-...
<text> - SVG: Scalable Vector Graphics
ity, stroke-width, text-anchor, transform, vector-effect, visibility aria attributes aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-current, aria-describedby, aria-details, aria-disabled, aria-dropeffect, aria-errormessage, aria-expanded, aria-flowto, aria-grabbed, aria-haspopup, aria-hidden, aria-in
valid, aria-keyshortcuts, aria-label, aria-labelledby, aria-level, aria-live, aria-modal, aria-multiline, aria-multiselectable, aria-orientation, aria-owns, aria-placeholder, aria-posinset, aria-pressed, aria-readonly, aria-relevant, aria-required, aria-roledescription, aria-rowcount, aria-rowindex, aria-rowspan, aria-selected, aria-setsize, aria-sort, aria-valuemax, aria-valuemin, aria-valuenow, aria-...
<textPath> - SVG: Scalable Vector Graphics
, stroke-opacity, stroke-width, transform, vector-effect, visibility aria attributes aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-current, aria-describedby, aria-details, aria-disabled, aria-dropeffect, aria-errormessage, aria-expanded, aria-flowto, aria-grabbed, aria-haspopup, aria-hidden, aria-in
valid, aria-keyshortcuts, aria-label, aria-labelledby, aria-level, aria-live, aria-modal, aria-multiline, aria-multiselectable, aria-orientation, aria-owns, aria-placeholder, aria-posinset, aria-pressed, aria-readonly, aria-relevant, aria-required, aria-roledescription, aria-rowcount, aria-rowindex, aria-rowspan, aria-selected, aria-setsize, aria-sort, aria-valuemax, aria-valuemin, aria-valuenow, aria-...
<tspan> - SVG: Scalable Vector Graphics
ity, stroke-width, text-anchor, transform, vector-effect, visibility aria attributes aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-current, aria-describedby, aria-details, aria-disabled, aria-dropeffect, aria-errormessage, aria-expanded, aria-flowto, aria-grabbed, aria-haspopup, aria-hidden, aria-in
valid, aria-keyshortcuts, aria-label, aria-labelledby, aria-level, aria-live, aria-modal, aria-multiline, aria-multiselectable, aria-orientation, aria-owns, aria-placeholder, aria-posinset, aria-pressed, aria-readonly, aria-relevant, aria-required, aria-roledescription, aria-rowcount, aria-rowindex, aria-rowspan, aria-selected, aria-setsize, aria-sort, aria-valuemax, aria-valuemin, aria-valuenow, aria-...
<use> - SVG: Scalable Vector Graphics
, stroke-opacity, stroke-width, transform, vector-effect, visibility aria attributes aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-current, aria-describedby, aria-details, aria-disabled, aria-dropeffect, aria-errormessage, aria-expanded, aria-flowto, aria-grabbed, aria-haspopup, aria-hidden, aria-in
valid, aria-keyshortcuts, aria-label, aria-labelledby, aria-level, aria-live, aria-modal, aria-multiline, aria-multiselectable, aria-orientation, aria-owns, aria-placeholder, aria-posinset, aria-pressed, aria-readonly, aria-relevant, aria-required, aria-roledescription, aria-rowcount, aria-rowindex, aria-rowspan, aria-selected, aria-setsize, aria-sort, aria-valuemax, aria-valuemin, aria-valuenow, aria-...
SVG 2 support in Mozilla - SVG: Scalable Vector Graphics
reorder smil attribute implementation status unknown made <tspan> and <textpath> graphics elements implementation status unknown allow x, y, width, and height on <symbol> implementation status unknown made <use> element shadow trees consistent with shadow dom spec implementation status unknown role mapping of <a> element depending on whether it is a
valid link implementation status unknown aria state and property attributes animatable implementation status unknown styling change notes contentstyletype attribute removed implementation status unknown linkstyle on svgstyleelement implemented (bug 1239128 (firefox 46.0 / thunderbird 46.0 / seamonkey 2.43)) inner <svg>s and <foreig...
Subresource Integrity - Web security
that can have disastrous consequences if the filename happens to have
valid hex characters in it — because xxd will also decode that and pass it to base64.
Web security
csp: frame-ancestors the http content-security-policy (csp) frame-ancestors directive specifies
valid parents that may embed a page using <frame>, <iframe>, <object>, <embed>, or <applet>.
Using custom elements - Web Components
over in our html, we use it like so: <popup-info img="img/alt.png" data-text="your card
validation code (cvc) is an extra security feature — it is the last 3 or 4 numbers on the back of your card."></popup-info> note: you can see the full javascript source code here.