html: use context instead of nodeName (tree construction)