WHATWG Weekly: translate attribute and other changes to HTML
Since the last WHATWG Weekly, almost a month ago now, over a hundred changes have been committed to the HTML standard. This is the WHATWG Weekly and it will cover those changes so you don’t have to. Also, remember kids, that fancy email regular expression is non-normative.
To aid translators and automated translation HTML sports a
translate since revision 6971. By default everything can be translated. You can override that by setting the
translate attribute to the "
no" value. This can be used for names, computer code, expressions that only make sense in a given language, etc.
Selector and CSS related changes
In revision 6888 the
:invalid pseudo-classes were made applicable to the
form element. This way you can determine whether all controls in a given form are correctly filled in.
Revision 6898 made the
wbr element less magical. Well, it defined the element fully in terms of CSS rather than using prose.
A new CSS feature was introduced in revision 6935. The
@global at-rule allows for selectors to “escape” scoped stylesheets as it were, by letting them apply to the whole document. It will likely be moved out of HTML and into a CSS once a suitable location has been found.
It turns out that
clearInterval() can be used interchangeably. Revision 6949 makes sure that new implementors make it work that way too.
Per a request from Adrian Bateman revision 6957 added a fourth argument to the
window.onerror callback, providing scripts with the script error column position.
Speaking of scripts, in revision 6964
script elements gained two new events.
beforescriptexecute which is dispatched before the script executes and can be cancelled to prevent execution altogether. And
afterscriptexecute for when script execution has completed.
Revision 6966 implemented a change that allows browsers to not execute
showModalDialog(), and friends during
unload events. This can improve the end user experience.