The WHATWG Blog

Please leave your sense of logic at the door, thanks!

WHATWG Weekly: Path objects for canvas and creating paths through SVG syntax

Jonas Sicking proposed an API for decoding ArrayBuffer objects as strings, and encoding strings as ArrayBuffer objects. The thread also touched on a proposal mentioned here earlier, StringEncoding. This is the mid-March WHATWG Weekly.

Revision 7023 added the Path object to HTML for use with the canvas element, and the next revision made it possible to actually use it:

var path = new Path()
path.rect(1,1,10,10)
context.stroke(path)

A new method addPathData() (introduced in revision 7026) can be used to construct canvas paths using SVG path data. Revision 7025 meanwhile added ellipse support to canvas.

Tune in next week for more additions to canvas.

Posted in Weekly Review | 2 Comments »

WHATWG Weekly: http+aes URL scheme, control Referer, …

Apple's Safari team provided feedback to the Web Notifications Working Group. That group, incidentally, is looking for an active editor to address that and other feedback. Opera Mobile shipped with WebGL support. This is March's first WHATWG Weekly.

Simon Pieters overhauled much of HTML5 differences from HTML4 and the document now provides information on added/changed APIs, differences between HTML and W3C HTML5, content model changes, and more.

Ian Hickson introduced a new URL scheme named http+aes (and also https+aes) in revision 7012 that allows for hosting private data on content distribution networks. Revision 7009 by the way, added the necessary hooks for the DOM mutation observers feature to HTML.

A new "referrer" metadata name for the meta element has been proposed on the WHATWG Wiki. This allows for controlling the Referer header on outgoing links.

Posted in Weekly Review | Comments Off on WHATWG Weekly: http+aes URL scheme, control Referer, …

WHATWG Weekly: New canvas API goodies

A draft for the SPDY protocol has been submitted, the W3C HTML WG mailing list goes crazy over media DRM. This is the WHATWG Weekly.

In response to feedback Adam Barth changed the getRandomValues() method to return the array the method modifies. The method is part of the window.crypto proposal.

Ian Hickson has been busy updating the Canvas Wiki page with proposals for dashed lines, ellipsis, hit regions, using SVG path syntax for paths, and path primitives. Updates to HTML itself seem imminent.

Posted in Weekly Review | Comments Off on WHATWG Weekly: New canvas API goodies

WHATWG Weekly: Unicode for the platform?

In less than a year we reached another arbitrary milestone. HTML is another thousand revisions further, now over 7000 (not quite 9000). This is the WHATWG Weekly.

Over on [email protected], the mailing list used by TC39 (responsible for JavaScript) and the WebApps WG to coordinate development of JavaScript, IDL, and APIs, Brendan Eich launched a mega thread on full Unicode for ES6. The entire platform is currently build around 16-bit code units, which are not quite sufficient to encompass all code points. Some code points therefore require two code units, but string manipulation, length information, etc. is all in code units, making it difficult to deal with code points that require two (in practice nobody seems to bother much). The idea is to introduce some kind of switch which when used would let you deal with code points exclusively, rather than code units.

HTML did not change much last week as its editor was playing in the snow. The DOM meanwhile now has mutation observers defined, the replacement for mutation events. Adam Klein did all the heavy lifting and yours truly cleaned it up a bit. An introduction to DOM events has been added as well.

Posted in Weekly Review | Comments Off on WHATWG Weekly: Unicode for the platform?

WHATWG Weekly: Quirks Mode and Error Recovery for XML

Quirks Mode has its first public draft and a group working on XML Error Recovery just started. This is the WHATWG Weekly.

Simon Pieters published a first draft of the Quirks Mode Standard. This should help align implementations of quirks mode and reduce the overall number of quirks implementations currently have. In other words, making the quirks that are needed for compatibility with legacy content more interoperable.

In a message to the W3C TAG Jeni Tennison introduced the XML Error Recovery Community Group whose charter is about creating a newish version of XML 1.0 that is fault tolerant. Community Groups are open for everyone to join, so if you want to help out, you can!

That is all, be sure to keep an eye on the HTML5 Tracker for recent changes to HTML!

Posted in Weekly Review | 4 Comments »