bodyFrameTagParser parses frame tag from response
(resp *navigation.Response)
| 208 | |
| 209 | // bodyFrameTagParser parses frame tag from response |
| 210 | func bodyFrameTagParser(resp *navigation.Response) (navigationRequests []*navigation.Request) { |
| 211 | resp.Reader.Find("frame[src]").Each(func(i int, item *goquery.Selection) { |
| 212 | src, ok := item.Attr("src") |
| 213 | if ok && src != "" { |
| 214 | navigationRequests = append(navigationRequests, navigation.NewNavigationRequestURLFromResponse(src, resp.Resp.Request.URL.String(), "frame", "src", resp)) |
| 215 | } |
| 216 | }) |
| 217 | return |
| 218 | } |
| 219 | |
| 220 | // bodyIframeTagParser parses iframe tag from response |
| 221 | func bodyIframeTagParser(resp *navigation.Response) (navigationRequests []*navigation.Request) { |
nothing calls this directly
no test coverage detected