Fix segfault when document has failed to open.
Fix <a> specification.
Initial support for preserveAspectRatio attribute.