modify parseAttributes to parse svg viewport attributes