These forums are currently read-only due to receiving more spam than actual discussion. Sorry.

It is currently Sat Dec 02, 2017 4:08 pm Advanced search

HTML5 & JavaScript relation

Do you think the HTML spec should do something differently? You can discuss spec feedback here, but you should send it to the WHATWG mailing list or file a bug in the W3C bugzilla for it to be considered.

HTML5 & JavaScript relation

Postby JAB Creations » Wed Jun 08, 2011 3:23 pm

I see a bit of JavaScript related work mixed with HTML5 and I'm wondering what the relationship is exactly?
User avatar
JAB Creations
<aside>
 
Posts: 566
Joined: Tue Mar 13, 2007 4:48 am
Location: Sarasota Florida, USA

Re: HTML5 & JavaScript relation

Postby zcorpan » Wed Jun 08, 2011 6:28 pm

JavaScript is defined in ECMA-262, and work on JavaScript happens in TC39. HTML5 specifies that 'this' refers to the WindowProxy object instead of the global object, and has special rules for document.all that affects JavasScript implementations, but otherwise doesn't extend or change JavaScript.

HTML5 (and other specs) have a number of DOM APIs that via WebIDL gets exposed in JavaScript.
zcorpan
<article>
 
Posts: 807
Joined: Tue Feb 06, 2007 8:29 pm
Location: Sweden

Re: HTML5 & JavaScript relation

Postby JAB Creations » Thu Jun 09, 2011 3:45 pm

So would it be more accurate to say that HTML5 clarifies ambiguities between HTML/DOM/JavaScript?
User avatar
JAB Creations
<aside>
 
Posts: 566
Joined: Tue Mar 13, 2007 4:48 am
Location: Sarasota Florida, USA

Re: HTML5 & JavaScript relation

Postby zcorpan » Thu Jun 09, 2011 4:46 pm

WebIDL specifies the mapping between DOM and JavaScript, so there shouldn't be any ambiguities. HTML5 mostly extends HTML and the DOM and specifies in more detail the features that were in previous HTML and DOM specs.
zcorpan
<article>
 
Posts: 807
Joined: Tue Feb 06, 2007 8:29 pm
Location: Sweden


Return to Feedback on the Specs

Who is online

Users browsing this forum: No registered users and 0 guests