Difference between revisions of "Talk:The principles of unobtrusive JavaScript"

From W3C Wiki
Jump to: navigation, search
(Created page with "== Future updates == == About the author == Picture of the article author Peter Paul Koch Peter-Paul Koch is a freelance web developer in Amsterdam, th…")
 
(Future updates)
 
Line 1: Line 1:
 
== Future updates ==
 
== Future updates ==
 +
 +
I think there is a subtle problem with the section on event-handlers being pulled out of the html tags. It uses a GetElementByID example, which should only have one element per page (because it's an ID, not a Class), but then mentions the advantages of using the recommended procedure because it will let the programmer avoid having to update lots of elements on the page. I would suggest either using GetElementByClass as the example instead.
  
 
== About the author ==
 
== About the author ==

Latest revision as of 15:06, 16 February 2013

Future updates

I think there is a subtle problem with the section on event-handlers being pulled out of the html tags. It uses a GetElementByID example, which should only have one element per page (because it's an ID, not a Class), but then mentions the advantages of using the recommended procedure because it will let the programmer avoid having to update lots of elements on the page. I would suggest either using GetElementByClass as the example instead.

About the author

Picture of the article author Peter Paul Koch

Peter-Paul Koch is a freelance web developer in Amsterdam, the Netherlands. He writes and maintains quirksmode.org, currently one of the best JavaScript resources on the Internet.

His W3C DOM Compatibility Tables, especially, have saved web developers from over the world an estimated GBP 5 million on hair implants and hair care products.

Browser vendors such as Microsoft, Opera, and Apple use these tables to solve bugs in their products.