3 ms·
I don't think it is targeted at complete beginners. Most of the topics are quite advanced and require some background knowledge. On a related note, what do you
by olalonde 10y ago
I don't think it is targeted at complete beginners. Most of the topics are quite advanced and require some background knowledge.
On a related note, what do you mean by "lexical scope" in HTML? Unless I'm misunderstanding, I don't really see the parallel with HTML since it doesn't have variables.
I agree about teaching DOM separately from JavaScript. As someone who learned the DOM and JavaScript simultaneously, it took me a good while to learn which parts of JavaScript really were DOM APIs.
- austincheney 10y agoWhen you declare an element (or attribute) in an XML instance that isn't already defined as a body of the primary document or root schema this declared entity is available only to a limited scope. That limited scope is the element of declaration and its descendant nodes. Typically such declarations occur as the result of referencing a foreign artifact against a namespace. You don't really see this capability in the common forms of HTML, but you can if you run the HTML as an XML serialization (regardless of the HTML doctype in the document). The execution context can be changed in many cases by sending a document with an XML specific media type or in some cases by changing the file extension from .html to .xhtml.