Currently the code doesn't fail on wrong positions in the document of <template> and <card> elements - it's blindly accepted. We should create layout tests and handle those errors.
WML support is removed - http://trac.webkit.org/changeset/85256.