Winger Jermaine McGillvary's hat-trick enabled Huddersfield to stay top of Super League, but only a disallowed try in the last minute ensured they retained their 100% record.
The Wildcats trailed throughout the match but, after coming from 18-8 down to cut the deficit to two points, thought they had snatched victory when centre Lee Smith went over for a try, only to have it disallowed for a forward pass.
Huddersfield, who gave a debut to former Widnes forward Anthony Mullally, were generally the more impressive side but could never shake off their gritty opponents in a tense, scrappy affair at the Rapid Solicitors Stadium.
Live sports action from the region's football teams today
Hundreds of cyclists and spectators descended on a former Halifax tip for a cycling event with a difference.
Melbourne Storm have regained Rugby League's World Club Challenge title after beating Leeds Rhinos 18-14.