VANCOUVER, British Columbia (AP) The Vancouver Canucks were about a minute from celebrating a hard-earned victory Thursday night. Instead, they were left to ponder what went wrong against an opponent that almost always has their number.
Vancouver had killed off 28 straight power plays until Boyle beat Roberto Luongo with a shot that stood up after a video review.
''This becomes the game, you hear hockey people talk about the hockey gods, where it starts to even out,'' San Jose coach Todd McLellan said. ''We weren't the better team tonight and we have been on the other end of that where we were the better team and found a way not to win it. Tonight we found a way to come back.''
The Sharks have won 10 of their last 11 against the Canucks.
Vancouver led late in the third period until Boyle's flubbed shot from the point found its way to Hertl at the side of the net. The Czech teenager put the puck past a helpless Luongo for his 11th of the season, which leads all rookies.
Canucks captain Henrik Sedin was whistled for hooking in overtime, and the Sharks' power play clicked.
''We played a great game. I thought they got a really lucky break on their tying goal and they get a power play in OT and that's it,'' said Luongo, who made 28 saves. ''That's how close the NHL is. We're a minute away from playing what I thought was a really great game, and all of a sudden it turns into a loss.''
Antti Niemi made 34 saves for the Sharks (12-2-5), who had dropped five of six and were outplayed for long stretches Thursday.
''Sometimes you're on the wrong end of these kind of games,'' said Canucks defenseman Kevin Bieksa, who scored his first goal of the season. ''Getting a point is a positive against the top teams, but two points was right there. It's early in the season. You don't want to get too down on yourself, but we deserved those two points.''
In a scheduling quirk, it was the final meeting of the regular season between the Canucks and Sharks even though both are in the Pacific Division. San Jose won three and lost one.
''It's a kick in the teeth to lose it, but looking at the big picture and some of the things we did against a pretty good hockey club, that's what we are going to take out of this,'' Canucks coach John Tortorella said. ''We played a really good game right on through.''
Bieksa broke the scoreless tie on a power play at 13:40 of the second period when his shot from the point found its way through traffic past Niemi. Canucks forward Alexandre Burrows missed a great chance moments earlier before Sedin fed Bieksa for the one-timer.
The goal snapped a 2-for-28 drought for Vancouver with the man advantage and was just the Canucks' third power-play goal at Rogers Arena all season.
Niemi kept the Canucks from doubling their lead with a big stop on Ryan Kesler with 5 minutes to go in the period.
Canucks forward Chris Higgins had a chance off the rush early in the third that Niemi was equal to before the Sharks, who had just 17 shots through two periods, started to come on.
After Sedin missed a wide-open net off a feed from his brother Daniel, Luongo made a big glove save on San Jose forward James Sheppard with under 8 minutes to go.
''We're trying to find ways,'' Boyle said. ''That's what it's all about and in this league with the extra points they are giving now, it's just going to come down to the end of the year and you never know which extra point is going to solidify your playoff position or have you on the outside.''
The Canucks returned home after a 1-2-1 road trip against Pacific Division rivals, with the only victory coming against the Sharks 4-2 last Thursday. That win snapped Vancouver's nine-game losing streak against the Sharks dating to last season.
The Sharks swept the Canucks four straight in the first round of last season's playoffs, after Vancouver got the better of San Jose in five games in the 2011 Western Conference finals.
Playing their first home game since a 4-0 victory over the Toronto Maple Leafs on Nov. 2, the Canucks had a couple of early chances in a first period that was short on action.
Niemi stopped defenseman Chris Tanev on a chance in the high slot 5 minutes in before shooting out his left pad to stop Mike Santorelli on the doorstep a few moments later.
Vancouver's No. 1-ranked penalty kill was put to the test midway through the period when defenseman Alexander Edler was whistled for interference. The Sharks moved the puck around to Joe Thornton, but the San Jose captain's heavy shot from the top of the faceoff circle rang off the crossbar behind Luongo and stayed out.
''You're not going to win every game you play great, and sometimes you don't deserve to win and you're going to win,'' Luongo said. ''That's the way the NHL is. I think the main thing is we can't put our heads down.''
NOTES: The Canucks' power play entered ranked 28th overall. ... NHL great Gordie Howe was in attendance and got an ovation midway through the second period. ... Vancouver left wing David Booth returned to the lineup after completing a conditioning assignment in the American Hockey League. ... The Sharks play Friday night in Edmonton. ... The Canucks continue their season-high six-game homestand Sunday against Dallas.