Custom non-visible data in HTML 5

July 14th, 2008

Short and sweet: HTML 5 offers custom data attributes on HTML elements, intended to store custom data, which can then be handled on-page by JavaScript, or off-page by other (web-)applications.

John Resig discusses a number of useful benefits.

Category: Javascript, Semantic Web

Author: JJ Halans

Tags: , , , , ,

The practice of POSH

February 7th, 2008

POSH stands for Plain Old Semantic HTML, and lets face it, POSH sounds better than semantic HTML. Check out the POSH checklist.

Poshformats on the other hand are various data formats constructed by using common, semantic class names, which are less formal than microformats. Whenever some one or some organisation creates a common class name, this is considered a ‘poshformat’, like for example the hRelease for pressreleases, or MacroID, a small decentralized verifiable identity format.

Andy Clarke talks about meaningful mark-up over at StuffAndNonsense, on The Fine Art of Markup and discusses What’s in a name, covering the conventions webdevelopers use in naming their id’s for page elements (way back in 2004). So, do you follow convention?

Picture by kk+

Category: Microformats, Semantic Web

Author: JJ Halans

Tags: , , ,

Scraping HTML with innerHTML or jQuery

September 11th, 2007

A couple of nice write-ups on how to scrape HTML using innerHTML at Pathfinder Development:

A common solution has been to proxy and scrape an application with a combination of XQuery and TagSoup (to fix the ugly, broken HTML, dontcha know), but it is possible to do this purely in the browser.

or with jQuery, as Jan Varwig describes:

Fortunately, just the day before, I discovered jQuery, a Javascript framework with strong support for finding DOM-Nodes via CSS, XPath and some custom selectors. The tricky part now was to get jQuery to access the DOM-Tree of the schedule page on kino.de.

Of course, screen scraping would be so much easier using Web Standards.

Category: Javascript, Semantic Web

Author: JJ Halans

Tags: , , , , , ,