Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

'kill script' feature HTML5

Status
Not open for further replies.

DaveC426913

Programmer
Jul 28, 2003
274
CA
According to w3c, HTML5 has this feature where one can set parameters to have JS kill a script if certain conditions are met. Here's the ref:


Is this a feature *new* in HTML5? i.e. it was not doable before?

If so, how? I haven't found any other references to it out there.
 
Hi

DaveC426913 said:
According to w3c, HTML5 has this feature where one can set parameters to have JS kill a script if certain conditions are met.
I would say, this has nothing to do with HTML. Scripts can be used in other files too, for example in SVG ( see this JavaScript animated SVG example ). And runaway scripts should be killed by the browser regardless where they are embedded.

Browsers used to kill runaway scripts since long time and the only configurable parameter was the time to wait before kill ( [tt]dom.max_script_run_time[/tt] in Mozillas ). That text mentions various reasons and solutions, but in my prediction no browser will implement them in the near future.

The only important in my point of view is the suggested exception to throw when killing a script, QUOTA_EXCEEDED_ERR.


Feherke.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top