But a spokesman for Parker said Shaw had told the Minister about the comments made during the attack.
Parker was critical of the role social media played in relaying extreme opinions.
"We need to reflect upon what's going on in society that causes people to be so extreme in their reactions to things they disagree with," Parker told reporters this afternoon.
"I have a personal view that the United Kingdom Government and select committee was recently right to be very critical of extreme opinion feeding political biases and causing instability in some people which is fed through social media platforms."
Davidson said there was nothing to indicate at this stage that the attack was because of Shaw's or the Greens' work, though she confirmed the attacker appeared to know who he was.
Shaw remained at hospital for observation this afternoon. He had been grabbed and hit in the face, she said.
"We are all upset for our friend but we are all pulling together."
She said the attacker personally identified Shaw, but there was no indication that the attack was linked to the work of the Green Party.
Davidson said she knew nothing about the man arrested in relation to the attack.
She valued the freedom of access to MPs in New Zealand. "I would hate to see that go."
Shaw's spokesman said the Greens co-leader was walking past Wellington's Botanic Garden just before 8am when a man started talking to him before grabbing him and punching him several times.
The spokesman said Shaw was walking with his headphones on listening to music when the man approached. The attacker seemed to recognise Shaw, he said, but the conversation was brief and somewhat random.
"We understand members of the public have assisted the victim and we believe there may also be other witnesses to the incident," police said in a statement.
PM Ardern on Shaw attack
Prime Minister Jacinda Ardern said the attack on Shaw showed New Zealand couldn't take for granted how accessible its politicians were.
"I think all of us will probably be united in wanting to ensure we have the kind of political environment where everyone can hold their views, but they can do that safely," Ardern said this afternoon.
Ardern said that when she spoke to Shaw afterwards, he told her he was "doing fine".
"I tried to encourage him to take whatever time he needed to recover," she said.
"My thoughts are with James and also [Shaw's wife Annabel]. When you go into politics in New Zealand you just don't expect these things to happen, and I know it will be especially challenging for loved ones.
"I would like to acknowledge the members of the public who quickly came to Minister Shaw's assistance. I understand their quick actions assisted in the arrest.
"We have an environment in New Zealand where politicians are accessible - and that's something we should feel proud of. We are after all, here to serve people. But today's events really show we cannot take that for granted," she said.
Kia ora whānau. First of all - arohanui and thank you for all your messages of kindness for James. We're making sure he's resting up and getting checked out. We'll let you know more later today.
A message from the Official Green Party Twitter page thanked people for their messages of support.
"We're making sure he's resting up and getting checked out. We'll let you know more later today."
As well as being the Greens' co-leader, Shaw is also the Climate Change and Statistics Minister and an associate minister of finance, health and transport.
This is outrageous behaviour and if undertaken by a Wellingtonian, shameful. Elected representatives of all hues show courage to represent New Zealanders & we are lucky to have unparalleled access to them. This is a sad day for democracy. Arohanui James.https://t.co/EaWWLjPJVO
"[We] are supporting him today. All Kiwis should be able to walk to work safely."
Also on Twitter, Wellington Mayor Justin Lester said the assault was "outrageous" and "shameful".
"Elected representatives of all hues show courage to represent New Zealanders & we are lucky to have unparalleled access to them. This is a sad day for democracy. Arohanui James," he said on Twitter.
National Leader Simon Bridges said on Twitter that violence was "never okay".
"From myself and The National Party we wish Shaw] a fast recovery. We're thinking of you & look forward to seeing you back at parliament soon."
Violence is never ok. From myself and the @NZNationalParty we wish @jamespeshaw a fast recovery. We’re thinking of you & look forward to seeing you back at parliament soon.
Ministers don't, as a matter of course, have police protection when they travel. That is reserved for the Prime Minister and ministers who may have received threats.
Minister for Women and fellow Green MP Julie Anne Genter today delivered New Zealand's National Statement at the 63rd Commission on the Status of Women in New York.
The Green Party has also supported the controversial UN Global Compact on Migration, an international agreement to co-operate on migration issues.
Last month, Damian Collins who chairs the British Parliament's Digital, Culture, Media and Sport Select Committee, said: "democracy is at risk from the malicious and relentless targeting of citizens with disinformation and personalised 'dark adverts' from unidentifiable sources, delivered through the major social media platforms we use every day."