Never has a W3C specification had such a rousing impact on the technology world as HTML5. So rousing in fact that not everyone could agree when creating the specification. So now we have the WHATWG version of the HTML5 specification. Then you throw in all the technical religious battles about what technology HTML5 will kill, the HTML5 as a mobile strategy discussions, and you get a lot of hype and misunderstandings. So let’s try and clarify three misunderstandings I have heard and read.
Category Archives: Javascript
Front End Field Guide: CSS and JavaScript – Scripting Stylesheets
So everyone seems to manipulate an elements style properties with JavaScript, but how about actually manipulating the stylesheet or creating one on the fly? In this edition we are going to cover the basics of enabling/disabling stylesheets, manipulating rules, and even creating stylesheets all with JavaScript.
So let’s begin!
Continue reading
Front End Field Guide: HTML5 – JavaScript Selectors
In this edition of the “Front End Field Guide” we are going to take a look at the new HTML5 JavaScript selectors. In the past we had only getElementById(), getElementByTag(), getElementByTagName() as selectors. But now there are two brand new selectors available for you to use and they are querySelectorAll() and querySelector().
Technically the Selector API is not part of the HTML5 spec, but it seems to be lumped in with all the other features of HTML5. Because of this I will keep the misnomer going. So lets examine how we can take advantage of these new selectors with a few simple examples.